Installation
Prerequisites: tmux. Docker (or another container runtime) is optional, for sandboxing.
Node.js is needed only for:
- Structured view adapters that run on Node: 22 or newer, and 22.6 or newer for adapters that ship sources (
aoe acp doctor --fixcan download a private copy). Agents with native ACP, such asopencode acpandgemini --acp, need no adapter. - Plugins with a Node worker.
- Building the web dashboard from source: 22.12 or newer.
Building also needs a C toolchain for native dependencies; a stock cc covers most platforms, and targets without pre-generated AWS-LC bindings also need CMake.
Install
# Quick install (Linux and macOS)
curl -fsSL \
https://raw.githubusercontent.com/agent-of-empires/agent-of-empires/main/scripts/install.sh \
| bash
# Homebrew
brew install aoe
Nightly Channel
Nightly builds are daily prereleases of main, versioned like 1.22.2-nightly.20261108 and tagged nightly-20261108. The newest seven stay available. Use them to try changes before the next stable release and to report regressions early.
# Latest nightly
curl -fsSL \
https://raw.githubusercontent.com/agent-of-empires/agent-of-empires/main/scripts/install.sh \
| bash -s -- --channel nightly
# A specific nightly or stable release, e.g. to step back a day
curl -fsSL \
https://raw.githubusercontent.com/agent-of-empires/agent-of-empires/main/scripts/install.sh \
| bash -s -- --version nightly-20261107
On an install-script install, aoe update switches channels too:
aoe update --channel nightly # newest nightly
aoe update --version nightly-20261107 # one exact release, e.g. to step back a day
aoe update --channel stable # back to the newest stable
A nightly build’s update check only offers newer nightlies. aoe update on a stable build mentions a newer nightly on stderr but never installs one without --channel or --version. Homebrew, Nix and Cargo installs refuse both flags.
Moving to a nightly can be one-way until the next stable release. If a nightly includes a data migration, an older stable binary refuses to start against the migrated data and says so. Stepping back to an earlier nightly has the same limit. Back up your app directory first if you need a way back.
Other install methods:
- Nix:
nix run github:agent-of-empires/agent-of-empires/nightly-20261108, or/mainfor the latest commit. - Cargo:
cargo install --locked --git https://github.com/agent-of-empires/agent-of-empires --tag nightly-20261108. - Homebrew: no nightly formula yet;
brew install --HEAD aoebuilds the latestmainfrom source. - Sandbox images:
ghcr.io/agent-of-empires/aoe-sandbox:nightlyandaoe-dev-sandbox:nightly.
Nix, Cargo and Homebrew --HEAD builds report the stable version they build on, so their update check follows the stable channel.
Build from Source
git clone https://github.com/agent-of-empires/agent-of-empires
cd agent-of-empires && cargo build --release
Add --features web for the dashboard, which requires Node and npm. The default-enabled vendored feature selects OpenSSL and SQLite vendoring.
For system libraries, install pkg-config and compatible libgit2, OpenSSL and SQLite development packages. SQLite must provide JSON functions. Then build with vendoring disabled and system libgit2 required:
LIBGIT2_NO_VENDOR=1 cargo build --release --no-default-features --features default-plugins
--no-default-features disables all defaults; explicitly selecting default-plugins retains that default feature selection independently of vendored. Add web to the feature list for the dashboard. LIBGIT2_NO_VENDOR=1 fails the build if compatible system libgit2 is unavailable, instead of falling back to a source build. Other native dependencies are unaffected, and system libgit2 may still link OpenSSL transitively. The passkey sign-in dependency also links OpenSSL, which then comes from the system.
A source build leaves the binary at target/release/aoe. Verify any install with aoe --version.
Updating
aoe update
aoe update detects how aoe was installed (Homebrew, the install script, Nix, or Cargo) and dispatches to the right mechanism. For Nix and Cargo it prints the manual command instead, since those need external tooling. A Nix profile install updates with nix profile upgrade agent-of-empires (see nix profile list for the entry name); if aoe comes from a flake input, run nix flake update <input> (your flake’s name for aoe) and rebuild your system or home-manager configuration. In the TUI, press u while the update bar is visible to run the same flow, or Ctrl+x to dismiss the bar.
If you installed shell completions as a static file, regenerate it afterwards so it picks up new commands and flags; see Shell completions for the always-fresh setup that avoids this.
If an upgrade stops at a schema or Daemon check, see Upgrades and recovery.
Uninstalling
aoe uninstall
It prompts before removing the binary, the app data directory, and the tmux settings.