Installation
Documented for Akmon 2.0.0.
Who this is for
Engineers installing Akmon on macOS or Linux for local development, CI, or remote shell usage.
What you will have at the end
- A runnable
akmonbinary onPATH. - A verified installation (
akmon --version). - A clear fallback path for source builds.
Prerequisites
- Shell access on macOS or Linux.
curlavailable.Rust 1.88+only if building from source.
Steps
- Install from a release binary (recommended).
Requirements
- Git — for project context and git operations
- Rust 1.88+ — only if building from source
- Ollama — optional, for local offline models
Option 1 — Pre-built binary (recommended)
Releases on GitHub include akmon-darwin-arm64, akmon-darwin-x86_64, and akmon-linux-x86_64. They are slim builds (--no-default-features, no bundled semantic index).
Install without sudo (recommended)
Put the binary in ~/bin and ensure it is on your PATH:
macOS — Apple Silicon
mkdir -p ~/bin
curl -fsSL -L https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-darwin-arm64 \
-o ~/bin/akmon && chmod +x ~/bin/akmon
macOS — Intel
mkdir -p ~/bin
curl -fsSL -L https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-darwin-x86_64 \
-o ~/bin/akmon && chmod +x ~/bin/akmon
Linux — x86_64
mkdir -p ~/bin
curl -fsSL -L https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-linux-x86_64 \
-o ~/bin/akmon && chmod +x ~/bin/akmon
Shell PATH (zsh example) — if akmon is not found:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Install to /usr/local/bin (needs admin)
sudo curl -fsSL -L https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-darwin-arm64 \
-o /usr/local/bin/akmon && sudo chmod +x /usr/local/bin/akmon
(Use the correct asset name for your platform.)
Troubleshooting downloads
| Symptom | Cause / fix |
|---|---|
Permission denied writing to /usr/local/bin | Use ~/bin + PATH, or prefix sudo on both curl and chmod. |
Small file / Not: command not found when running akmon | GitHub returned an HTML error page (often 404). Ensure a release exists with that asset name (tag the repo so the release workflow uploads binaries). Check with file ~/bin/akmon — it should say “Mach-O” or “ELF”, not “HTML”. |
curl: (56) Failure writing output | Destination directory missing or not writable; use mkdir -p ~/bin or fix permissions. |
Verify
akmon --version
# e.g. akmon 2.0.0
- If binary install fails, build from source.
Option 2 — From source
git clone https://github.com/radotsvetkov/akmon
cd akmon
# Slim build — no semantic indexing, smaller binary
cargo build --release --no-default-features
# Full build — with semantic indexing
cargo build --release
mkdir -p ~/bin
cp target/release/akmon ~/bin/
- (Optional) Install from crates.io if available in your workflow.
Option 3 — cargo install
cargo install akmon
Verification
command -v akmon
akmon --version
akmon --help
Expected result: all commands succeed and print usage/version output.
Troubleshooting
- If
akmonis not found, add~/bintoPATHand restart your shell. - If downloaded file is HTML, verify the release asset name and tag availability.
- For provider failures after install, run
akmon doctor providers.
Using over SSH
Akmon is a single static binary. Copy it to any remote machine:
scp ~/bin/akmon user@remote:~/bin/
ssh user@remote
export PATH="$HOME/bin:$PATH"
akmon chat
Using in Docker
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fsSL -L \
https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-linux-x86_64 \
-o /usr/local/bin/akmon && chmod +x /usr/local/bin/akmon
WORKDIR /workspace
ENTRYPOINT ["akmon"]
Using in CI
# GitHub Actions example
- name: Install Akmon
run: |
sudo curl -fsSL -L https://github.com/radotsvetkov/akmon/releases/latest/download/akmon-linux-x86_64 \
-o /usr/local/bin/akmon && sudo chmod +x /usr/local/bin/akmon
- name: Run task
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
akmon --yes --output json \
--task "run tests and summarize failures" \
| jq .result
Uninstalling
rm -f ~/bin/akmon /usr/local/bin/akmon
rm -rf ~/.akmon # removes config, sessions, audit logs