Skip to content

Installation

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.

Terminal window
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash

The script requires no external dependencies beyond curl (or wget) and standard Unix tools.

Terminal window
# Install specific version
curl -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 completions
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --completions zsh
# Force reinstall
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --force
# Dry run — see what would happen without making changes
curl -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-source
FlagShortDescriptionDefault
--version VERSION-vInstall specific versionlatest
--dir DIR-dInstall directory~/.local/bin
--channel CHANNEL-cRelease channel (stable, nightly)stable
--force-fForce reinstall even if already installed
--quiet-qSuppress non-essential output
--verbose-VEnable debug output
--dry-run-nShow what would happen without doing it
--no-colorDisable colored output
--no-verifySkip SHA-256 checksum verification
--completions SHELLInstall shell completions (bash, zsh, fish)
--from-sourceBuild from source instead of downloading binary
--uninstallRemove agentzero and its data
--help-hShow help message

Short flags can be combined: -fqV is equivalent to --force --quiet --verbose.

VariableDescription
AGENTZERO_INSTALL_DIROverride install directory
AGENTZERO_VERSIONOverride version to install
NO_COLORDisable colored output (standard)

Pre-built binaries are provided for these platform/architecture combinations:

OSArchitectureArtifact Name
Linuxx86_64agentzero-v*-linux-x86_64
Linuxaarch64 (ARM64)agentzero-v*-linux-aarch64
macOSaarch64 (Apple Silicon)agentzero-v*-macos-aarch64
macOSx86_64 (Intel)agentzero-v*-macos-x86_64
Windowsx86_64agentzero-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.

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

If you have Rust installed, you can install directly from crates.io:

Terminal window
cargo install agentzero

This builds and installs the agentzero binary to ~/.cargo/bin/.

Terminal window
git clone https://github.com/auser/agentzero.git
cd agentzero
cargo build --release

The binary is at target/release/agentzero.

  • Rust 1.80+ and Cargo (install via rustup.rs)
  • An OpenAI-compatible API key (OpenRouter, OpenAI, Anthropic, or local provider)

Shell completions can be installed via the install script:

Terminal window
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --completions zsh

Or generated manually after installation:

Terminal window
# Bash
agentzero completions --shell bash > ~/.local/share/bash-completion/completions/agentzero
# Zsh
agentzero completions --shell zsh > ~/.zfunc/_agentzero
# Fish
agentzero completions --shell fish > ~/.config/fish/completions/agentzero.fish
# PowerShell
agentzero completions --shell power-shell > $HOME/.config/powershell/agentzero.ps1
Terminal window
curl -fsSL https://raw.githubusercontent.com/auser/agentzero/main/scripts/install.sh | bash -s -- --uninstall

This removes the binary and shell completions. You will be asked whether to also remove the ~/.agentzero data directory (config, memory database, plugins).

Terminal window
agentzero --version
agentzero --help

Some functionality requires compile-time feature flags (only applies to source builds):

FeatureDescription
hardwareHardware discovery and peripheral commands
whatsapp-webWhatsApp Web channel support
Terminal window
cargo build -p agentzero --release --features hardware

For development with debug assertions:

Terminal window
cargo build -p agentzero

Run commands without installing:

Terminal window
cargo run -p agentzero -- --help
cargo run -p agentzero -- status