Installation
Quick Install
Section titled “Quick Install”The recommended way to install AgentZero is with the install script. It automatically detects your platform and architecture, downloads the correct pre-built binary, and verifies its checksum.
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bashThe script requires no external dependencies beyond curl (or wget) and standard Unix tools.
Common Examples
Section titled “Common Examples”# Install specific versioncurl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --version 0.2.0
# Install to /usr/local/bin (may prompt for sudo)curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --dir /usr/local/bin
# Install with zsh completionscurl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --completions zsh
# Force reinstallcurl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --force
# Dry run — see what would happen without making changescurl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --dry-run --verbose
# Build from source (requires Rust 1.80+)curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --from-sourceInstall Options
Section titled “Install Options”| Flag | Short | Description | Default |
|---|---|---|---|
--version VERSION | -v | Install specific version | latest |
--dir DIR | -d | Install directory | ~/.local/bin |
--channel CHANNEL | -c | Release channel (stable, nightly) | stable |
--force | -f | Force reinstall even if already installed | |
--quiet | -q | Suppress non-essential output | |
--verbose | -V | Enable debug output | |
--dry-run | -n | Show what would happen without doing it | |
--no-color | Disable colored output | ||
--no-verify | Skip SHA-256 checksum verification | ||
--completions SHELL | Install shell completions (bash, zsh, fish) | ||
--from-source | Build from source instead of downloading binary | ||
--uninstall | Remove agentzero and its data | ||
--help | -h | Show help message |
Short flags can be combined: -fqV is equivalent to --force --quiet --verbose.
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
AGENTZERO_INSTALL_DIR | Override install directory |
AGENTZERO_VERSION | Override version to install |
NO_COLOR | Disable colored output (standard) |
Supported Platforms
Section titled “Supported Platforms”Pre-built binaries are provided for these platform/architecture combinations:
| OS | Architecture | Artifact Name |
|---|---|---|
| Linux | x86_64 | agentzero-v*-linux-x86_64 |
| Linux | aarch64 (ARM64) | agentzero-v*-linux-aarch64 |
| macOS | aarch64 (Apple Silicon) | agentzero-v*-macos-aarch64 |
| macOS | x86_64 (Intel) | agentzero-v*-macos-x86_64 |
| Windows | x86_64 | agentzero-v*-windows-x86_64.exe |
For other architectures (ARMv7, 32-bit x86), use --from-source to build locally. See the Raspberry Pi guide for detailed ARM instructions.
Platform-Specific Guides
Section titled “Platform-Specific Guides”For detailed instructions on specific platforms:
- Android — Running in Termux, cross-compilation with Android NDK
- Raspberry Pi — Pre-built ARM binaries, building on-device, systemd service setup
Install via Cargo
Section titled “Install via Cargo”If you have Rust installed, you can install directly from crates.io:
cargo install agentzeroThis builds and installs the agentzero binary to ~/.cargo/bin/.
Build from Source
Section titled “Build from Source”git clone https://github.com/auser/agentzero.gitcd agentzerocargo build --releaseThe binary is at target/release/agentzero.
Prerequisites
Section titled “Prerequisites”- Rust 1.80+ and Cargo (install via rustup.rs)
- An OpenAI-compatible API key (OpenRouter, OpenAI, Anthropic, or local provider)
Shell Completions
Section titled “Shell Completions”Shell completions can be installed via the install script:
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --completions zshOr generated manually after installation:
# Bashagentzero completions --shell bash > ~/.local/share/bash-completion/completions/agentzero
# Zshagentzero completions --shell zsh > ~/.zfunc/_agentzero
# Fishagentzero completions --shell fish > ~/.config/fish/completions/agentzero.fish
# PowerShellagentzero completions --shell power-shell > $HOME/.config/powershell/agentzero.ps1Uninstall
Section titled “Uninstall”curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --uninstallThis removes the binary and shell completions. You will be asked whether to also remove the ~/.agentzero data directory (config, memory database, plugins).
Verify Installation
Section titled “Verify Installation”agentzero --versionagentzero --helpFeature Flags
Section titled “Feature Flags”Some functionality requires compile-time feature flags (only applies to source builds):
| Feature | Description |
|---|---|
hardware | Hardware discovery and peripheral commands |
whatsapp-web | WhatsApp Web channel support |
cargo build -p agentzero --release --features hardwareDevelopment Build
Section titled “Development Build”For development with debug assertions:
cargo build -p agentzeroRun commands without installing:
cargo run -p agentzero -- --helpcargo run -p agentzero -- statusNext Steps
Section titled “Next Steps”- Quick Start — Set up config and run your first agent message
- Config Reference — Full annotated configuration file