Installation
Get EdgeCrab up and running in under two minutes. Choose the method that fits your environment — no Rust toolchain required when installing via npm or pip.
Option A — npm (recommended, no Rust required)
Section titled “Option A — npm (recommended, no Rust required)”npm install -g edgecrab-cliThe postinstall script automatically downloads the correct pre-built native binary for your platform. Requires Node.js 18+. No Rust, GCC, or build tools needed.
Verify:
edgecrab version# EdgeCrab 0.1.0 (rustc 1.85.0, 2025-02-20)# providers: copilot openai anthropic gemini xai deepseek huggingface zai openrouter ollama lmstudioYou can also run without a global install:
npx edgecrab-cli setupnpx edgecrab-cli "summarise the git log for today"Option B — pip (recommended, no Rust required)
Section titled “Option B — pip (recommended, no Rust required)”pip install edgecrab-cliOn first run the package downloads the correct pre-built binary for your platform. Requires Python 3.10+. No Rust or build tools needed.
edgecrab versionedgecrab setupedgecrab "explain this codebase"Tip: Use a virtual environment or
pipxto keep the install isolated:Terminal window pipx install edgecrab-cli
Option C — cargo install (from source)
Section titled “Option C — cargo install (from source)”cargo install edgecrab-cliPulls and compiles the latest stable release from crates.io.
Requires Rust 1.85+. The binary is placed in ~/.cargo/bin/edgecrab.
No Rust? Install it in one command:
Terminal window curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Verify:
edgecrab version# EdgeCrab 0.1.0 (rustc 1.85.0, 2025-02-20)# providers: copilot openai anthropic gemini xai deepseek huggingface zai openrouter ollama lmstudioOption D — Pre-built Binary
Section titled “Option D — Pre-built Binary”Download the archive for your platform from GitHub Releases:
| Platform | Archive |
|---|---|
| macOS arm64 (Apple Silicon) | edgecrab-aarch64-apple-darwin.tar.gz |
| macOS x86_64 (Intel) | edgecrab-x86_64-apple-darwin.tar.gz |
| Linux x86_64 | edgecrab-x86_64-unknown-linux-gnu.tar.gz |
| Linux arm64 | edgecrab-aarch64-unknown-linux-gnu.tar.gz |
| Windows x86_64 | edgecrab-x86_64-pc-windows-msvc.zip |
# macOS examplecurl -L https://github.com/raphaelmansuy/edgecrab/releases/latest/download/edgecrab-aarch64-apple-darwin.tar.gz \ | tar -xz -C /usr/local/binchmod +x /usr/local/bin/edgecrabOption E — Docker
Section titled “Option E — Docker”docker pull ghcr.io/raphaelmansuy/edgecrab:latestdocker run --rm -it \ -e OPENAI_API_KEY="$OPENAI_API_KEY" \ -v ~/.edgecrab:/root/.edgecrab \ ghcr.io/raphaelmansuy/edgecrab:latestSee Docker Deployment for full configuration, docker-compose, and gateway deployment.
Option F — Build from Source
Section titled “Option F — Build from Source”git clone https://github.com/raphaelmansuy/edgecrabcd edgecrabcargo build --release # ~30 s on modern hardware./target/release/edgecrab versionFor development (incremental, unoptimized):
cargo build./target/debug/edgecrab versionInstallation Methods Summary
Section titled “Installation Methods Summary”| Method | Command | Requires |
|---|---|---|
| npm | npm install -g edgecrab-cli | Node.js 18+ |
| pip | pip install edgecrab-cli | Python 3.10+ |
| cargo | cargo install edgecrab-cli | Rust 1.85+ |
| Docker | docker pull ghcr.io/raphaelmansuy/edgecrab:latest | Docker |
| Pre-built binary | Download from GitHub Releases | Nothing |
After Installation
Section titled “After Installation”1. Run the Setup Wizard
Section titled “1. Run the Setup Wizard”edgecrab setupThe wizard:
- Scans your environment for API keys
- Prompts you to choose an LLM provider
- Writes
~/.edgecrab/config.yaml - Creates the memories and skills directories
EdgeCrab Setup Wizard────────────────────────────────────────────────────────────────✓ Detected GitHub Copilot (GITHUB_TOKEN)✓ Detected OpenAI (OPENAI_API_KEY)
Choose LLM provider: [1] copilot (GitHub Copilot — gpt-4.1-mini) ← auto-detected [2] openai (OpenAI — gpt-4o) [3] anthropic (Anthropic — claude-opus-4-5) [4] ollama (local Ollama — llama3.3) ...Provider [1]: 1
✓ Config written to /Users/you/.edgecrab/config.yaml✓ Created /Users/you/.edgecrab/memories/✓ Created /Users/you/.edgecrab/skills/
Run `edgecrab` to start chatting!2. Verify Your Installation
Section titled “2. Verify Your Installation”edgecrab doctorEdgeCrab Doctor────────────────────────────────────────────────────────────────✓ Config file /Users/you/.edgecrab/config.yaml✓ State directory /Users/you/.edgecrab/✓ Memories directory /Users/you/.edgecrab/memories/✓ Skills directory /Users/you/.edgecrab/skills/✓ GitHub Copilot GITHUB_TOKEN set✓ OpenAI OPENAI_API_KEY set✓ Provider ping copilot/gpt-4.1-mini → OK (312 ms)────────────────────────────────────────────────────────────────All checks passed.If any check fails, see the Configuration guide for troubleshooting.
Shell Completion (optional)
Section titled “Shell Completion (optional)”EdgeCrab can generate tab-completion scripts for bash, zsh, fish, and PowerShell:
# zshedgecrab completion zsh >> ~/.zshrc# source ~/.zshrc
# bashedgecrab completion bash >> ~/.bashrc# source ~/.bashrc
# fishedgecrab completion fish > ~/.config/fish/completions/edgecrab.fishWhat’s Next?
Section titled “What’s Next?”- Quick Start — Your first conversation in 90 seconds
- Configuration — Customize models, tools, memory
- CLI Reference — Every flag and subcommand explained
Troubleshooting
Section titled “Troubleshooting”edgecrab: command not found after cargo install
Section titled “edgecrab: command not found after cargo install”~/.cargo/bin is not in your PATH. Fix it:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc # zshecho 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc # bashsource ~/.zshrc # reload immediatelyOr run source $HOME/.cargo/env which Rustup creates.
Cargo build fails with error[E0554]: #![feature] or edition error
Section titled “Cargo build fails with error[E0554]: #![feature] or edition error”You need Rust ≥ 1.85. Upgrade:
rustup update stablerustup default stablerustc --version # confirm 1.85+edgecrab doctor shows provider ping failure
Section titled “edgecrab doctor shows provider ping failure”This usually means the API key is set in a different shell than the one running edgecrab. Persistent fix: add the key to ~/.edgecrab/.env:
echo 'OPENAI_API_KEY=sk-...' >> ~/.edgecrab/.envEdgeCrab reads this file automatically at every startup.
Docker: permission denied on ~/.edgecrab
Section titled “Docker: permission denied on ~/.edgecrab”The container user (root by default) and your host user have different UIDs. Fix with explicit UID mapping:
docker run --rm -it \ -u "$(id -u):$(id -g)" \ -e OPENAI_API_KEY="$OPENAI_API_KEY" \ -v ~/.edgecrab:/root/.edgecrab \ ghcr.io/raphaelmansuy/edgecrab:latestBuild from source is slow
Section titled “Build from source is slow”Use cargo build --release only for production. For development, cargo build (debug) is 5-10× faster. The first build downloads and compiles all deps (~30 s on fast hardware). Subsequent builds are incremental (seconds).
Pre-built binary: Illegal instruction on macOS Intel
Section titled “Pre-built binary: Illegal instruction on macOS Intel”You downloaded the Apple Silicon binary by mistake. Use edgecrab-x86_64-apple-darwin.tar.gz for Intel Macs. Verify your arch: uname -m (returns x86_64 for Intel, arm64 for Apple Silicon).
Frequently Asked Questions
Section titled “Frequently Asked Questions”Q: Do I need to keep Rust installed after cargo install?
No. The binary is fully self-contained. The Rust toolchain is only needed to compile. After cargo install edgecrab-cli, you can remove Rust if you want (though you’ll need it for updates via cargo).
Q: How do I install a specific version?
cargo install edgecrab-cli --version 0.1.0Or download a tagged release from GitHub Releases.
Q: Can I install EdgeCrab system-wide (for all users)?
Yes. Build from source and copy the binary to /usr/local/bin:
cargo build --releasesudo cp target/release/edgecrab /usr/local/bin/Q: How much disk space does EdgeCrab use?
- Binary: ~15 MB
- State database: grows with session history, typically < 100 MB per year of heavy use
- Skills directory: ~1 KB per skill (just Markdown files)
- Total:
~/.edgecrab/is typically < 50 MB