CLI Reference

This document contains the help content for the aoe command-line program.

Command Overview:

aoe

Agent of Empires (aoe) is a terminal session manager that uses tmux to help you manage and monitor AI coding agents like Claude Code and OpenCode.

Run without arguments to launch the TUI dashboard.

Usage: aoe [OPTIONS] [COMMAND]

Subcommands:
  • add — Add a new session
  • agents — List supported agents and their install status
  • init — Initialize .agent-of-empires/config.toml in a repository
  • list — List all sessions
  • ps — Show a substrate-agnostic runtime view of in-flight sessions (tmux agent panes and ACP structured-view workers), one row each
  • logs — View the configured AoE log file with a pretty viewer
  • log-level — Get or set the running daemon’s log filter at runtime. Pass a bare level (debug/info/…) for the safe expansion, or --filter <expr> for raw EnvFilter syntax. --get prints the current filter. Changes are ephemeral and lost on daemon restart
  • remove — Remove a session
  • send — Send a message to a running agent session
  • suggest — Suggest a session: it shows under Suggested sessions until started or dismissed
  • status — Show session status summary
  • killall — Force-stop everything aoe is running: the serve daemon, all agent workers, and all aoe tmux sessions. Destructive and unprompted
  • session — Manage session lifecycle (start, stop, attach, etc.)
  • group — Manage groups for organizing sessions
  • plugin — Manage plugins (list, info, enable, disable, install, update, uninstall)
  • profile — Manage profiles (separate workspaces)
  • project — Manage the project registry used by multi-repo session pickers
  • sandbox — Clean up sandbox agent stores and log in sandboxed agents
  • worktree — Manage git worktrees for parallel development
  • tmux — tmux integration utilities
  • sounds — Test the built-in sound effects
  • theme — Manage color themes (list, export, customize)
  • settings — Inspect resolved settings and their provenance
  • cityhall — Export and apply the CityHall config bundle (settings, projects, MCP servers)
  • telemetry — Manage anonymous opt-in usage telemetry
  • mcp — Inspect the effective MCP server set (provenance, conflicts, drift)
  • skill — Query and manage agent skills
  • hooks — Let AoE write agent hooks into each agent’s own config, for every agent and every profile
  • serve — Start the aoe daemon: REST/WebSocket API, plus the web dashboard in builds that embed it
  • daemon — Control the background aoe daemon; each verb is the matching aoe serve flag (--daemon, --stop, --status, --restart)
  • url — Print the URL of a running aoe serve daemon
  • acp — Manage the ACP structured-view workers (doctor, ps, logs, prompt, approve, …)
  • uninstall — Uninstall Agent of Empires
  • update — Update aoe to the latest release
  • migrate — Run pending migrations or restore complete original lifecycle authority. Stop the daemon with aoe serve --stop first. By default, also move eligible sandbox stores and retry deferred ownership recovery
  • completion — Generate shell completions
Options:
  • -p, --profile <PROFILE> — Profile to use (separate workspace with its own sessions). Commands that consume or create profile state require an existing profile: an unknown name is refused, not created (make one with aoe profile create). Profile-independent commands such as list --all and serve --stop ignore it. AGENT_OF_EMPIRES_PROFILE names one too, and an explicit -p wins over it

  • --daemon-url <DAEMON_URL> — Select a Daemon endpoint for commands that use the Daemon API, or for the TUI.

    Explicit endpoints and AOE_DAEMON_URL never fall back to local storage or start a local daemon. Authenticate with AOE_DAEMON_TOKEN or AOE_DAEMON_PASSPHRASE. An unauthenticated daemon needs neither. See the HTTP API reference for transport and authentication rules.

  • --no-autostart — Fail instead of starting a local daemon when none is running

    Also read from AOE_NO_AUTOSTART=1. Has no effect with --daemon-url or AOE_DAEMON_URL, which never start a daemon.

aoe add

Add a new session

Usage: aoe add [OPTIONS] [PATH]

Arguments:
  • <PATH> — Project directory (defaults to current directory). Omit when using --scratch
Options:
  • -t, --title <TITLE> — Session title (defaults to a civilization name, or the worktree branch)
  • -i, --interactive — Prompt for the session name, mirroring the TUI n flow. Shows the generated default; press Enter to accept it. Ignored when –title is given. Requires an interactive terminal
  • -g, --group <GROUP> — Group path (defaults to parent folder)
  • -c, --cmd <COMMAND> — Command to run (e.g., ‘claude’ or any other supported agent)
  • --tool <TOOL> — Named built-in or configured custom agent to run
  • -P, --parent <PARENT> — Parent session (creates sub-session, inherits group, not worktree or path). Without --worktree or --scratch, opens at <path> (default: current directory) on its checked-out branch. --scratch uses a fresh directory
  • --fork-from <FORK_FROM> — Fork an existing session: resume its conversation context in a new, independent session that then diverges. Give the source session’s id or title. Terminal fork; available for agents that support forking (claude, codex, opencode, pi, prime-agent, omp)
  • -l, --launch — Launch the session immediately after creating
  • -w, --worktree <WORKTREE_BRANCH> — Create session in a git worktree for the specified branch
  • -b, --new-branch — Create a new branch (use with –worktree)
  • --generated-name — Use a generated civilization name as the session title and as the {branch} value of the worktree path template, instead of the branch name (use with –worktree). The git branch stays as given. Attaching to an existing worktree keeps its directory and only generates the title. Cannot be combined with –title, –repo or –project
  • --base-branch <BASE_BRANCH> — Branch to base the new worktree branch on (use with –new-branch). Defaults to the repository’s default branch. Useful for stacking work on top of an in-flight PR branch, hot-fixing a release branch, or branching off a teammate’s branch
  • --repo-base <REPO_BASES> — Base branch for one repo of a multi-repo workspace, as <repo>=<branch> (repeatable). <repo> is the repo’s directory name or the path you passed to --repo. Outranks --base-branch, which stays the base for every repo this does not name. Example: --base-branch develop --repo-base api=epic/checkout
  • -r, --repo <EXTRA_REPOS> — Additional repositories for multi-repo workspace (use with –worktree)
  • --project <PROJECTS> — Names of registered projects to include as extra repos (use with –worktree). Resolves against the union of global + profile project registries
  • --no-submodules — Skip git submodule update --init --recursive after creating the worktree, overriding the worktree.init_submodules config (default true). Useful for repos with large or deeply nested submodule trees that you don’t need inside the agent session
  • --workspace — Create the worktree inside a workspace directory (from worktree.workspace_path_template) even with no --repo/--project, so more projects can be attached later without moving the session (use with –worktree). Overrides worktree.workspace_by_default
  • --no-workspace — Create a plain worktree even when worktree.workspace_by_default is on. Ignored when --repo/--project make a multi-repo workspace
  • -s, --sandbox — Run session in a container sandbox
  • --sandbox-image <SANDBOX_IMAGE> — Custom container image for sandbox (implies –sandbox)
  • --hook-env <KEY[=VALUE]> — Env var for the host before_start hook only, never the container (KEY=VALUE or KEY; repeatable; requires –sandbox)
  • -y, --yolo — Enable YOLO mode (skip permission prompts)
  • --trust-hooks — Automatically trust this repository’s hooks and project-local MCP servers without prompting
  • --skip-on-create — Create the session without running its on_create hooks, so a failing setup script does not roll the session back. on_launch hooks still run
  • --extra-args <EXTRA_ARGS> — Extra arguments to append after the agent binary
  • --cmd-override <CMD_OVERRIDE> — Override the agent binary command
  • --structured-view — Render this session in the structured view (ACP-based native rendering) instead of the default terminal view. aoe add defaults to the terminal (raw tmux/PTY) so the CLI matches the TUI; pass this (or --agent) to opt into the structured rendering. Ignored for tools with no ACP adapter
  • --prompt <PROMPT> — First turn sent to the agent once it is ready. A structured session gets it when aoe serve starts the worker. A terminal session keeps it until the agent starts (--launch, or later from the dashboard or TUI) and types it into a known agent: one with a ready marker, or one without, which gets 5 seconds to start. A shell and a --cmd-override command are refused here, with nothing created. A terminal session whose agent times out or shows a dialog carries initial_prompt_error
  • --prompt-file <PATH> — Read the first turn from a file. Same rules as --prompt
  • --agent <AGENT> — Pick a specific ACP agent for the structured view (e.g., claude-code, codex)
  • --model <MODEL> — Override the model used by the ACP agent (e.g., claude-opus-4-7, gpt-5, gemini-2.5-pro). Forwarded to the agent at session start
  • --effort <EFFORT> — Reasoning effort for the ACP agent (e.g., low, medium, high). Checked against the agent’s known thought-level choices when cached. Structured view only
  • --scratch — Create the session in a fresh scratch directory under <app_dir>/scratch/<id>/ instead of a project path. The directory is removed when the session is deleted (unless aoe rm is given --keep-scratch). Mutually exclusive with worktree-related flags

aoe agents

List supported agents and their install status

Usage: aoe agents

aoe init

Initialize .agent-of-empires/config.toml in a repository

Usage: aoe init [PATH]

Arguments:
  • <PATH> — Directory to initialize (defaults to current directory)

    Default value: .

aoe list

List all sessions

Usage: aoe list [OPTIONS]

Options:
  • --json — Output as JSON

  • --all — List sessions from all profiles

  • --state <STATE> — Filter by session state. Defaults to all, every persisted session, which is what aoe list has always shown. Pass --state=live to skip trashed and archived rows; the vocabulary matches the REST API’s GET /api/sessions?state=

    Default value: all

    Possible values:

    • live: Only sessions that are neither archived nor trashed
    • trashed: Only sessions currently in the trash
    • all: Every persisted session in the profile (default)

aoe ps

Show a substrate-agnostic runtime view of in-flight sessions (tmux agent panes and ACP structured-view workers), one row each

Usage: aoe ps [OPTIONS] [SESSION]

Arguments:
  • <SESSION> — Show one session in detail, including dead runtimes (id, id prefix, title, or path)
Options:
  • --json — Output as JSON

  • --tmux — Show only tmux-backed sessions

  • --acp — Show only ACP (structured-view) workers, with their ACP-specific columns (BUILD, MODEL, CWD, SOCKET); --json adds substrate, state, age_secs, and model to the keys the removed aoe acp ps emitted, but sorts by substrate, then title, then id rather than by started_at. Dead and orphaned workers are hidden unless --dead is also passed; the worker registry is global, so with an explicit -p the workers of other profiles surface as orphans (also hidden without --dead)

  • --dead — Include dead sessions and orphaned substrate entries (hidden by default)

  • --watch — Redraw continuously until Ctrl-C; with --json, print one compact JSON array per line instead of clearing the screen

  • --interval <INTERVAL> — Seconds between --watch redraws

    Default value: 2

aoe logs

View the configured AoE log file with a pretty viewer

Usage: aoe logs [OPTIONS]

Options:
  • -f, --follow — Live-tail the log
  • -n, --lines <N> — Show only the last N lines (fallback viewers; lnav handles its own)
  • --no-pager — Skip viewer detection; write plain log to stdout
  • --path — Print the resolved log file path and exit (no viewing)

aoe log-level

Get or set the running daemon’s log filter at runtime. Pass a bare level (debug/info/…) for the safe expansion, or --filter <expr> for raw EnvFilter syntax. --get prints the current filter. Changes are ephemeral and lost on daemon restart

Usage: aoe log-level [OPTIONS] [LEVEL]

Arguments:
  • <LEVEL> — Bare level (trace|debug|info|warn|error). Expands to all known target roots, avoiding the firehose of dependency logs you would get from RUST_LOG=debug
Options:
  • --filter <FILTER> — Raw EnvFilter directive. Use this for per-target tuning, e.g. --filter acp.protocol=trace,info. Bare --filter debug is rejected; use the positional level form instead
  • --get — Print the current filter without changing it

aoe remove

Remove a session

Usage: aoe remove [OPTIONS] <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title to remove
Options:
  • --delete-worktree — With –purge, delete the worktree directory (default: keep it).

    Without –purge, trashing moves a managed worktree into a sibling .aoe-trash folder, unless another session uses it.

  • --delete-branch — Delete git branch after worktree removal (default: per config)

  • --force — Force worktree removal even with untracked/modified files

  • --keep-container — Keep container instead of deleting it (default: delete per config)

  • --keep-scratch — For scratch sessions, keep the scratch directory on disk instead of removing it. The session record is still deleted; the kept path is logged so you can find the files later. No effect on non-scratch sessions

  • --purge — Permanently delete instead of moving to trash.

    By default rm moves the session to the trash (when session.delete_to_trash is enabled, the default) so it can be restored; --purge forces the irreversible teardown (worktree/branch/container cleanup per the other flags) and removes the session’s structured-view transcript. Removing the sandbox container also attempts to remove its private agent stores, including its config home; keeping the container keeps those stores. Host agent conversation history outside these stores is not removed.

aoe send

Send a message to a running agent session

Usage: aoe send [OPTIONS] <IDENTIFIER> <MESSAGE>

Arguments:
  • <IDENTIFIER> — Session ID or title
  • <MESSAGE> — Message to send to the agent
Options:
  • --no-revive — Fail loud on dead/stopped sessions instead of auto-respawning. Default behavior is to revive the session so a send after a crash or stop just works; pass this for scripts that want the previous bail-out

aoe suggest

Suggest a session: it shows under Suggested sessions until started or dismissed

Usage: aoe suggest [OPTIONS] --prompt <PROMPT> <TITLE>

Arguments:
  • <TITLE> — Short title of the suggested session
Options:
  • --prompt <PROMPT> — The first prompt the suggested session starts with

  • --reason <REASON> — Why this is worth doing now

    Default value: ``

  • --project <PROJECT> — Registered Project name or path the session belongs in

  • --id <ID> — A stable key; suggesting the same one again replaces that suggestion

aoe status

Show session status summary

JSON takes precedence over quiet, which takes precedence over verbose.

Usage: aoe status [OPTIONS]

Options:
  • -v, --verbose — Show detailed session list
  • -q, --quiet — Only output waiting count (for scripts)
  • --json — Output as JSON

aoe killall

Force-stop everything aoe is running: the serve daemon, all agent workers, and all aoe tmux sessions. Destructive and unprompted

Usage: aoe killall [OPTIONS]

Options:
  • --timeout-secs <TIMEOUT_SECS> — Grace period in seconds before force-killing agent workers. tmux sessions and the daemon use their own built-in grace

    Default value: 5

  • --keep-daemon — Leave the aoe serve daemon running; stop only workers and tmux sessions

aoe session

Manage session lifecycle (start, stop, attach, etc.)

Usage: aoe session <COMMAND>

Subcommands:
  • start — Start a session’s tmux process
  • stop — Stop session process
  • restart — Restart session (or all sessions with --all)
  • attach — Attach to session interactively
  • show — Show session details
  • wait — Block until a session’s agent activity status matches one of the --until values. Exits 0 on a match, 124 on timeout (like timeout(1)), and 1 if the session stops. Tmux sessions only
  • rename — Rename a session
  • move — Move sessions to another profile. Sessions that look active when the command starts are refused; one that starts mid-batch can still move. Each keeps its title, group and worktree; the target profile’s config applies from the next start
  • set-worktree-name — Edit a managed worktree session’s workdir directory name (and, optionally, its git branch). Moves the worktree directory in place; the session must not be running. See #1723
  • capture — Capture tmux pane output
  • current — Auto-detect current session
  • add-project — Attach another repo to an existing session, creating a worktree for it and restarting the agent. Moving the session’s working directory is refused while its resume target is a known conversation bound to that directory. Explicitly clear the resume target to start a new conversation after attaching. An implicitly preallocated ID is re-linked. See #3103
  • set-session-id — Set the resume target for a session; an agent whose exact native resume AoE cannot resolve is refused
  • set-base — Set or clear the per-session diff base branch. The diff view compares the worktree against this ref instead of the auto-detected default. Useful when the PR target differs from the project default (stacked PRs, hotfix off release/*, renamed default branch). See #970
  • snooze — Snooze a session for a duration (temporary archive, auto wakes)
  • unsnooze — Wake a snoozed session immediately
  • pin — Pin a session to the top of its header in the session list and the web dashboard, under every sort, with the sessions sharing its worktree. Pinning cancels archive, ignore and snooze; archiving, ignoring or snoozing it clears the pin
  • unpin — Unpin a session
  • archive — Archive a session: move it to the Archived section and tear down its tmux sessions. Worktree, branch, container preserved. --no-kill skips tmux teardown. See #1868
  • unarchive — Unarchive a session, returning it to its place in the list
  • restore — Restore a trashed session, returning it to its prior bucket with its transcript and metadata intact. See #2489
  • import — Import existing Claude Code sessions from disk. Scans the given path(s) (default: current directory) for Claude Code conversations whose working directory is at or under a path, and creates an AoE session for each: a terminal/tmux session that resumes the conversation with claude --resume <id> (default), or a structured-view session with --structured
  • list-trash — List the sessions currently in the trash
  • empty-trash — Permanently purge every trashed session in the profile (irreversible)

aoe session start

Start a session’s tmux process

Usage: aoe session start <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session stop

Stop session process

Usage: aoe session stop <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session restart

Restart session (or all sessions with --all)

Usage: aoe session restart [OPTIONS] [IDENTIFIER]

Arguments:
  • <IDENTIFIER> — Session ID or title (required unless --all is passed)
Options:
  • --all — Restart every session in the active profile. Useful after aoe update, after editing sandbox.environment, after a Docker hiccup, or after changing a hook. Mutually exclusive with identifier. When run from an agent session, the caller is skipped so the command can finish

  • --parallel <PARALLEL> — Concurrency cap for --all. Restarting many sandboxed sessions in parallel pressures dockerd, so the default is intentionally modest. Ignored when --all is not set

    Default value: 3

  • --tool <TOOL> — Restart as this tool, through the Daemon. Swapping between tools that run the same agent under different [session.agent_config_dir] accounts keeps the conversation (Claude). Any other swap starts a fresh conversation. Use aoe acp switch-account to refuse instead

  • --to-profile <TO_PROFILE> — Move the session to this existing profile while restarting, through the Daemon

aoe session attach

Attach to session interactively

Usage: aoe session attach <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session show

Show session details

Usage: aoe session show [OPTIONS] [IDENTIFIER]

Arguments:
  • <IDENTIFIER> — Session ID or title (optional, auto-detects in tmux)
Options:
  • --json — Output as JSON

aoe session wait

Block until a session’s agent activity status matches one of the --until values. Exits 0 on a match, 124 on timeout (like timeout(1)), and 1 if the session stops. Tmux sessions only

Usage: aoe session wait [OPTIONS] --until <UNTIL> <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title
Options:
  • --until <UNTIL> — Activity status to wait for; repeat to accept any of several

    Possible values: running, waiting, idle, error

  • --timeout <TIMEOUT> — Give up after this many milliseconds

    Default value: 300000

aoe session rename

Rename a session

Usage: aoe session rename [OPTIONS] [IDENTIFIER]

Arguments:
  • <IDENTIFIER> — Session ID or title (optional, auto-detects in tmux)
Options:
  • -t, --title <TITLE> — New title for the session
  • -g, --group <GROUP> — New group for the session (empty string to ungroup)
  • --rename-branch — When the session is tied (session.tie_workdir_to_name) and an aoe-managed worktree, also rename the underlying git branch to match. Off by default; ignored for untied / non-worktree sessions
  • --branch <BRANCH> — Rename the Git branch without moving the worktree directory

aoe session move

Move sessions to another profile. Sessions that look active when the command starts are refused; one that starts mid-batch can still move. Each keeps its title, group and worktree; the target profile’s config applies from the next start

Usage: aoe session move --to-profile <TO_PROFILE> <IDENTIFIERS>...

Arguments:
  • <IDENTIFIERS> — Session IDs or titles to move
Options:
  • --to-profile <TO_PROFILE> — Destination profile; it must already exist

aoe session set-worktree-name

Edit a managed worktree session’s workdir directory name (and, optionally, its git branch). Moves the worktree directory in place; the session must not be running. See #1723

Usage: aoe session set-worktree-name [OPTIONS] --name <NAME> [IDENTIFIER]

Arguments:
  • <IDENTIFIER> — Session ID or title (optional, auto-detects in tmux)
Options:
  • --name <NAME> — New workdir (worktree directory) name
  • --rename-branch — Also rename the underlying git branch to match the new name

aoe session capture

Capture tmux pane output

Usage: aoe session capture [OPTIONS] [IDENTIFIER]

Arguments:
  • <IDENTIFIER> — Session ID or title (auto-detects in tmux if omitted)
Options:
  • -n, --lines <LINES> — Number of lines to capture

    Default value: 50

  • --strip-ansi — Strip ANSI escape codes

  • --json — Output as JSON

aoe session current

Auto-detect current session

Usage: aoe session current [OPTIONS]

Options:
  • -q, --quiet — Just session name (for scripting)
  • --json — Output as JSON

aoe session add-project

Attach another repo to an existing session, creating a worktree for it and restarting the agent. Moving the session’s working directory is refused while its resume target is a known conversation bound to that directory. Explicitly clear the resume target to start a new conversation after attaching. An implicitly preallocated ID is re-linked. See #3103

Usage: aoe session add-project [OPTIONS] <IDENTIFIER> <PROJECT>

Arguments:
  • <IDENTIFIER> — Session ID or title
  • <PROJECT> — Repo to attach: a path, or the name of a registered project (aoe project list)
Options:
  • --attach-existing-branch — Check out a branch that already exists in the repo being attached instead of refusing. A same-named branch in another repo can hold unrelated commits, so this is off by default. When set, aoe records the branch as not its own and leaves it in place when the session is deleted

aoe session set-session-id

Set the resume target for a session; an agent whose exact native resume AoE cannot resolve is refused

Usage: aoe session set-session-id [OPTIONS] <IDENTIFIER> <SESSION_ID>

Arguments:
  • <IDENTIFIER> — Session ID or title
  • <SESSION_ID> — Conversation to resume. An empty string requests a one-shot fresh start, which only a terminal session can take: a structured session keeps its ACP conversation and needs the native ID plus an explicit --store and a bound Claude conversation
Options:
  • --store <STORE> — Assert the native store: the Claude config root (the directory containing projects/), or a Pi/OMP transcript file

aoe session set-base

Set or clear the per-session diff base branch. The diff view compares the worktree against this ref instead of the auto-detected default. Useful when the PR target differs from the project default (stacked PRs, hotfix off release/*, renamed default branch). See #970

Usage: aoe session set-base [OPTIONS] <IDENTIFIER> [BRANCH]

Arguments:
  • <IDENTIFIER> — Session ID or title
  • <BRANCH> — Branch ref to diff against (short name like main or remote-qualified like upstream/main). Required unless --clear is passed
Options:
  • --clear — Clear the override and fall back to the recorded creation base, then the profile default, then the auto-detected base
  • --repo <REPO> — Workspace repo to set the base for, by directory name (as shown in the diff panel and aoe list --json). Required on a multi-repo workspace session, where each repo has its own base; omit it on a single-repo session
  • --expected-generation <EXPECTED_GENERATION> — Refuse the write unless the target’s diff base generation equals this (shown by aoe session show --json). Without it the write is unconditional

aoe session snooze

Snooze a session for a duration (temporary archive, auto wakes)

Usage: aoe session snooze [OPTIONS] <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title
Options:
  • --minutes <MINUTES> — Snooze duration in minutes; if omitted, the Daemon uses session.snooze_duration_minutes from the session’s profile config (default 30)

aoe session unsnooze

Wake a snoozed session immediately

Usage: aoe session unsnooze <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session pin

Pin a session to the top of its header in the session list and the web dashboard, under every sort, with the sessions sharing its worktree. Pinning cancels archive, ignore and snooze; archiving, ignoring or snoozing it clears the pin

Usage: aoe session pin <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session unpin

Unpin a session

Usage: aoe session unpin <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session archive

Archive a session: move it to the Archived section and tear down its tmux sessions. Worktree, branch, container preserved. --no-kill skips tmux teardown. See #1868

Usage: aoe session archive [OPTIONS] <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title
Options:
  • --no-kill — Skip tmux teardown on archive

aoe session unarchive

Unarchive a session, returning it to its place in the list

Usage: aoe session unarchive <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session restore

Restore a trashed session, returning it to its prior bucket with its transcript and metadata intact. See #2489

Usage: aoe session restore <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe session import

Import existing Claude Code sessions from disk. Scans the given path(s) (default: current directory) for Claude Code conversations whose working directory is at or under a path, and creates an AoE session for each: a terminal/tmux session that resumes the conversation with claude --resume <id> (default), or a structured-view session with --structured

Usage: aoe session import [OPTIONS] [PATHS]...

Arguments:
  • <PATHS> — Directories to scan. Only Claude sessions whose recorded working directory is at or under one of these are imported. Defaults to the current directory. Cannot be combined with --all
Options:
  • --all — Import every discoverable Claude session, ignoring the path filter
  • --structured — Import as structured-view sessions (rendered in the web dashboard and the structured TUI view) instead of terminal/tmux sessions. Structured sessions replay their transcript under aoe serve
  • --group <GROUP> — Place imported sessions under this session group
  • --launch — Start terminal sessions immediately after importing (spawns the tmux pane running claude --resume <id>). Ignored for structured imports
  • --dry-run — List what would be imported without creating anything
  • -y, --yes — Skip the confirmation prompt when importing more than one session

aoe session list-trash

List the sessions currently in the trash

Usage: aoe session list-trash

aoe session empty-trash

Permanently purge every trashed session in the profile (irreversible)

Usage: aoe session empty-trash

aoe group

Manage groups for organizing sessions

Usage: aoe group <COMMAND>

Subcommands:
  • list — List all groups
  • create — Create a new group
  • delete — Delete a group
  • move — Move session to group

aoe group list

List all groups

Usage: aoe group list [OPTIONS]

Options:
  • --json — Output as JSON

aoe group create

Create a new group

Usage: aoe group create [OPTIONS] <NAME>

Arguments:
  • <NAME> — Group name
Options:
  • --parent <PARENT> — Parent group for creating subgroups

aoe group delete

Delete a group

Usage: aoe group delete [OPTIONS] <NAME>

Arguments:
  • <NAME> — Group name
Options:
  • --force — Force delete by moving sessions to default group

aoe group move

Move session to group

Usage: aoe group move <IDENTIFIER> <GROUP>

Arguments:
  • <IDENTIFIER> — Session ID or title
  • <GROUP> — Target group

aoe plugin

Manage plugins (list, info, enable, disable, install, update, uninstall)

Usage: aoe plugin <COMMAND>

Subcommands:
  • list — List every known plugin with version, validation, and state
  • info — Show one plugin’s manifest details
  • logs — Print the path of a plugin worker’s most recent log
  • enable — Enable a plugin’s contributions
  • disable — Disable a plugin; its settings stay on disk for re-enabling
  • install — Install an external plugin from a gh:owner/repo[@ref] slug or a local directory. With no @ref, installs the repo’s latest release; an explicit @ref installs unverified, un-audited code. Community plugins run at your own risk
  • update — Update an installed external plugin from its recorded source and restart its worker in a running daemon. Prompts to re-approve capabilities if the update changes the capability set
  • uninstall — Uninstall an external plugin, removing its files and capability grant
  • job — Observe an accepted plugin job without submitting another operation
  • hash — Print the deterministic source tree hash for a plugin directory, the value a maintainer pins in the featured index
  • discover — Search GitHub’s aoe-plugin topic for installable plugins
  • outdated — List installed external plugins that have an update available
  • call — Call a provider method the plugin’s manifest declares and print its JSON result

aoe plugin list

List every known plugin with version, validation, and state

Usage: aoe plugin list

aoe plugin info

Show one plugin’s manifest details

Usage: aoe plugin info <ID>

Arguments:
  • <ID> — Plugin id, e.g. aoe.web

aoe plugin logs

Print the path of a plugin worker’s most recent log

Usage: aoe plugin logs <ID>

Arguments:
  • <ID> — Plugin id

aoe plugin enable

Enable a plugin’s contributions

Usage: aoe plugin enable <ID>

Arguments:
  • <ID> — Plugin id

aoe plugin disable

Disable a plugin; its settings stay on disk for re-enabling

Usage: aoe plugin disable <ID>

Arguments:
  • <ID> — Plugin id

aoe plugin install

Install an external plugin from a gh:owner/repo[@ref] slug or a local directory. With no @ref, installs the repo’s latest release; an explicit @ref installs unverified, un-audited code. Community plugins run at your own risk

Usage: aoe plugin install [OPTIONS] <SOURCE>

Arguments:
  • <SOURCE> — gh:owner/repo (latest release) or gh:owner/repo@ref (unverified) or a local directory path
Options:
  • --yes — Grant all requested capabilities without prompting
  • --dev — Install a local directory as a dev plugin: it may claim a reserved aoe.* / agent-of-empires.* id, is never featured, and is refused under aoe serve --remote

aoe plugin update

Update an installed external plugin from its recorded source and restart its worker in a running daemon. Prompts to re-approve capabilities if the update changes the capability set

Usage: aoe plugin update [OPTIONS] <ID>

Arguments:
  • <ID> — Plugin id
Options:
  • --yes — Re-approve a changed capability set without prompting

aoe plugin uninstall

Uninstall an external plugin, removing its files and capability grant

Usage: aoe plugin uninstall <ID>

Arguments:
  • <ID> — Plugin id

aoe plugin job

Observe an accepted plugin job without submitting another operation

Usage: aoe plugin job <ID>

Arguments:
  • <ID> — Job id returned by install, update, or uninstall

aoe plugin hash

Print the deterministic source tree hash for a plugin directory, the value a maintainer pins in the featured index

Usage: aoe plugin hash <PATH>

Arguments:
  • <PATH> — Path to the plugin directory

aoe plugin discover

Search GitHub’s aoe-plugin topic for installable plugins

Usage: aoe plugin discover [QUERY]

Arguments:
  • <QUERY> — Optional free-text term to narrow the search

aoe plugin outdated

List installed external plugins that have an update available

Usage: aoe plugin outdated

aoe plugin call

Call a provider method the plugin’s manifest declares and print its JSON result

Usage: aoe plugin call [OPTIONS] <ID> <NAME>

Arguments:
  • <ID> — Plugin id
  • <NAME> — Declared provider_calls name
Options:
  • --params <PARAMS> — Request params as a JSON value

    Default value: {}

aoe profile

Manage profiles (separate workspaces)

Usage: aoe profile [COMMAND]

Subcommands:
  • list — List all profiles
  • create — Create a new profile
  • delete — Delete a profile
  • rename — Rename a profile
  • default — Show or set default profile
  • show — Show profile-derived values for scripts

aoe profile list

List all profiles

Usage: aoe profile list

aoe profile create

Create a new profile

Usage: aoe profile create <NAME>

Arguments:
  • <NAME> — Profile name: letters, digits, _ and - only, at most 64 characters; all is reserved

aoe profile delete

Delete a profile

Usage: aoe profile delete <NAME>

Arguments:
  • <NAME> — Profile name

aoe profile rename

Rename a profile

Usage: aoe profile rename <OLD_NAME> <NEW_NAME>

Arguments:
  • <OLD_NAME> — Current profile name
  • <NEW_NAME> — New profile name (same rules as aoe profile create)

aoe profile default

Show or set default profile

Usage: aoe profile default [NAME]

Arguments:
  • <NAME> — Profile name (optional, shows current if not provided)

aoe profile show

Show profile-derived values for scripts

Usage: aoe profile show [OPTIONS]

Options:
  • --status-map <AGENT> — Print the resolved status map for an agent
  • --json — Emit JSON output

aoe project

Manage the project registry used by multi-repo session pickers

Usage: aoe project <COMMAND>

Subcommands:
  • list — List registered projects
  • add — Add a project to the registry
  • remove — Remove a project from the registry

aoe project list

List registered projects

Usage: aoe project list [OPTIONS]

Options:
  • --json — Output as JSON

  • --scope <SCOPE> — Filter by scope (default: all)

    Default value: all

    Possible values: all, global, profile

aoe project add

Add a project to the registry

Usage: aoe project add [OPTIONS] <PATH>

Arguments:
  • <PATH> — Path to the project directory: a git repository, or any directory to run sessions in place
Options:
  • --name <NAME> — Display name (defaults to the directory’s basename)

  • --scope <SCOPE> — Registry scope. When omitted: defaults to GLOBAL, unless -p <profile> was passed at the top level, in which case it defaults to PROFILE (scoping the entry to that profile only)

    Possible values: global, profile

  • --allow-override — Allow the same canonical path in the global and selected profile scopes. The profile entry shadows the global entry in merged views

  • --base-branch <BASE_BRANCH> — Default base branch for new worktree branches created against this project, whether it is the launch repo or an extra repo in a multi-repo workspace. An explicit session base wins; when omitted, falls back to the global/profile worktree.default_base_branch, then the repo’s detected default branch

aoe project remove

Remove a project from the registry

Usage: aoe project remove [OPTIONS] <NAME_OR_PATH>

Arguments:
  • <NAME_OR_PATH> — Project name or path to remove
Options:
  • --scope <SCOPE> — Registry scope to remove from. When omitted: defaults to GLOBAL, unless -p <profile> was passed at the top level, in which case it defaults to PROFILE

    Possible values: global, profile

aoe sandbox

Clean up sandbox agent stores and log in sandboxed agents

Usage: aoe sandbox <COMMAND>

Subcommands:
  • reclaim — Report per-session agent stores whose session no longer exists in any profile, and how much disk they hold. Reports only unless --delete is given: a store can hold a copy of that agent’s credentials
  • login — Log an agent’s sandboxes in (sandbox.shared_credential = “separate_login”): prints a sign-in link, then reads the code shown after sign-in. The login belongs to one shared credential file per profile and tool: an agent with its own session.agent_config_dir entry (a wrapper agent) has its own file, so a session of profile X running tool T waiting for the login needs aoe sandbox login -p X --tool T. The file follows the command T launches (agent_command_override, else custom_agents, else the built-in). Only agents that declare a sandbox login have one; today that is Claude

aoe sandbox reclaim

Report per-session agent stores whose session no longer exists in any profile, and how much disk they hold. Reports only unless --delete is given: a store can hold a copy of that agent’s credentials

Usage: aoe sandbox reclaim [OPTIONS]

Options:
  • --delete — Remove the reported stores instead of only naming them

aoe sandbox login

Log an agent’s sandboxes in (sandbox.shared_credential = “separate_login”): prints a sign-in link, then reads the code shown after sign-in. The login belongs to one shared credential file per profile and tool: an agent with its own session.agent_config_dir entry (a wrapper agent) has its own file, so a session of profile X running tool T waiting for the login needs aoe sandbox login -p X --tool T. The file follows the command T launches (agent_command_override, else custom_agents, else the built-in). Only agents that declare a sandbox login have one; today that is Claude

Usage: aoe sandbox login [OPTIONS]

Options:
  • --tool <TOOL> — The agent whose sandboxes the login is for: the tool name of the sessions waiting for it. Defaults to the profile’s default tool when it has a sandbox login, else the only agent that has one
  • --command <COMMAND> — The command the launch runs for --tool when a session overrides the profile’s: the login lands in the file that launch is gated on. A session that waits for the login names it in the message it stops with; without --command the profile’s command for the tool is used
  • --check — Only report whether the shared credential file needs a login: exit 0 when ok, 2 when needed, 3 when not applicable (host_seed mode, a tool without a shared credential file, or a login that is needed on Apple Container, which cannot run the login helper)
  • --force — Log in again even though the shared credential is usable

aoe worktree

Manage git worktrees for parallel development

Usage: aoe worktree <COMMAND>

Subcommands:
  • list — List all worktrees in current repository
  • info — Show worktree information for a session
  • cleanup — Cleanup orphaned worktrees

aoe worktree list

List all worktrees in current repository

Usage: aoe worktree list

aoe worktree info

Show worktree information for a session

Usage: aoe worktree info <IDENTIFIER>

Arguments:
  • <IDENTIFIER> — Session ID or title

aoe worktree cleanup

Cleanup orphaned worktrees

Usage: aoe worktree cleanup [OPTIONS]

Options:
  • -f, --force — Actually remove worktrees (default is dry-run)

aoe tmux

tmux integration utilities

Usage: aoe tmux <COMMAND>

Subcommands:
  • status — Output session info for use in custom tmux status bar

aoe tmux status

Output session info for use in custom tmux status bar

Add this to your ~/.tmux.conf: set -g status-right “#(aoe tmux status)”

Usage: aoe tmux status [OPTIONS]

Options:
  • -f, --format <FORMAT> — Output format (text or json)

    Default value: text

aoe sounds

Test the built-in sound effects

Usage: aoe sounds <COMMAND>

Subcommands:
  • test — Play a built-in sound on this machine to check that audio works

aoe sounds test

Play a built-in sound on this machine to check that audio works

Usage: aoe sounds test [EVENT]

Arguments:
  • <EVENT> — The sound to play

    Default value: idle

    Possible values:

    • start
    • running
    • waiting
    • idle
    • error
    • approval: A Structured view Session asks for permission or a question; browser only

aoe theme

Manage color themes (list, export, customize)

Usage: aoe theme <COMMAND>

Subcommands:
  • list — List all available themes (built-in and custom)
  • export — Export a built-in theme as a TOML file for customization
  • dir — Show the custom themes directory path

aoe theme list

List all available themes (built-in and custom)

Usage: aoe theme list

aoe theme export

Export a built-in theme as a TOML file for customization

Usage: aoe theme export [OPTIONS] <NAME>

Arguments:
  • <NAME> — Theme name to export
Options:
  • -o, --output <OUTPUT> — Output file path (defaults to custom-<name>.toml for a built-in theme, <name>.toml otherwise, in the themes directory)

aoe theme dir

Show the custom themes directory path

Usage: aoe theme dir

aoe settings

Inspect resolved settings and their provenance

Usage: aoe settings <COMMAND>

Subcommands:
  • explain — Explain where a setting’s effective value comes from. KEY is a core section.field (e.g. acp.default_agent) or a plugin plugin:<id>.<field> (e.g. plugin:acme.kit.retries)

aoe settings explain

Explain where a setting’s effective value comes from. KEY is a core section.field (e.g. acp.default_agent) or a plugin plugin:<id>.<field> (e.g. plugin:acme.kit.retries)

Usage: aoe settings explain <KEY>

Arguments:
  • <KEY> — The setting key to explain

aoe cityhall

Export and apply the CityHall config bundle (settings, projects, MCP servers)

Usage: aoe cityhall <COMMAND>

Subcommands:
  • export — Write a bundle describing this install’s settings and projects
  • apply — Apply a bundle to this install (merge settings, clone and register projects, register MCP servers, install the git identity)

aoe cityhall export

Write a bundle describing this install’s settings and projects

Usage: aoe cityhall export [OPTIONS]

Options:
  • -o, --out <OUT> — Write to a file instead of stdout

aoe cityhall apply

Apply a bundle to this install (merge settings, clone and register projects, register MCP servers, install the git identity)

Usage: aoe cityhall apply <FILE>

Arguments:
  • <FILE> — Bundle to apply; - reads stdin

aoe telemetry

Manage anonymous opt-in usage telemetry

Usage: aoe telemetry <COMMAND>

Subcommands:
  • status — Show the current telemetry opt-in state and install id
  • enable — Opt in to anonymous usage telemetry
  • disable — Opt out of telemetry (deletes the local install id)
  • reset-id — Generate a fresh anonymous install id (only while opted in)

aoe telemetry status

Show the current telemetry opt-in state and install id

Usage: aoe telemetry status

aoe telemetry enable

Opt in to anonymous usage telemetry

Usage: aoe telemetry enable

aoe telemetry disable

Opt out of telemetry (deletes the local install id)

Usage: aoe telemetry disable

aoe telemetry reset-id

Generate a fresh anonymous install id (only while opted in)

Usage: aoe telemetry reset-id

aoe mcp

Inspect the effective MCP server set (provenance, conflicts, drift)

Usage: aoe mcp <COMMAND>

Subcommands:
  • list — List the merged effective MCP server set with provenance, plus any conflicts and servers kept after removal from a native config
  • add — Add an AoE-owned MCP server to the global mcp.json
  • edit — Edit an AoE-owned MCP server. Secrets you do not mention keep their stored value
  • remove — Remove an AoE-owned MCP server
  • config — Print an MCP client config for the running daemon’s /mcp server, ready to paste into an agent’s mcpServers (for example a Claude Code .mcp.json)

aoe mcp list

List the merged effective MCP server set with provenance, plus any conflicts and servers kept after removal from a native config

Usage: aoe mcp list [OPTIONS]

Options:
  • --agent <AGENT> — Agent whose effective set to resolve. Defaults to the configured default tool. MCP forwarding is per-agent because the agent-native layer differs
  • --json — Output machine-readable JSON instead of a table

aoe mcp add

Add an AoE-owned MCP server to the global mcp.json

Usage: aoe mcp add [OPTIONS] <NAME>

Arguments:
  • <NAME> — Server name (letters, digits, ‘.’, ‘_’, ‘-’)
Options:
  • --transport <TRANSPORT>

    Default value: stdio

    Possible values: stdio, http, sse

  • --command <COMMAND> — Executable to run (stdio only)

  • --arg <ARGS> — Argument for the command; repeat for several (stdio only)

  • --env <ENV> — Environment variable as KEY=VALUE; repeatable (stdio only)

  • --url <URL> — Server URL (http and sse only)

  • --header <HEADER> — Request header as KEY=VALUE; repeatable (http and sse only)

aoe mcp edit

Edit an AoE-owned MCP server. Secrets you do not mention keep their stored value

Usage: aoe mcp edit [OPTIONS] <NAME>

Arguments:
  • <NAME> — Name of the AoE-owned server to edit. Its transport cannot change; remove and add instead
Options:
  • --command <COMMAND> — Replace the executable (stdio only)
  • --arg <ARGS> — Replace all arguments; repeat for several (stdio only)
  • --clear-args — Remove all arguments (stdio only)
  • --env <ENV> — Set an environment variable as KEY=VALUE; repeatable (stdio only)
  • --unset-env <UNSET_ENV> — Remove an environment variable by name; repeatable (stdio only)
  • --url <URL> — Replace the URL (http and sse only)
  • --header <HEADER> — Set a header as KEY=VALUE; repeatable (http and sse only)
  • --unset-header <UNSET_HEADER> — Remove a header by name; repeatable (http and sse only)

aoe mcp remove

Remove an AoE-owned MCP server

Usage: aoe mcp remove <NAME>

Arguments:
  • <NAME> — Name of the AoE-owned server to remove

aoe mcp config

Print an MCP client config for the running daemon’s /mcp server, ready to paste into an agent’s mcpServers (for example a Claude Code .mcp.json)

Usage: aoe mcp config

aoe skill

Query and manage agent skills

Usage: aoe skill <COMMAND>

Subcommands:
  • list — List discovered skills and their source roots
  • view — Print one skill’s SKILL.md
  • add — Create a new AoE-managed skill
  • edit — Edit an AoE-managed skill
  • adopt — Copy an external skill into AoE’s managed store
  • remove — Delete an AoE-managed skill
  • sync — Copy AoE-managed skills into the agents’ own skills directories

aoe skill list

List discovered skills and their source roots

Usage: aoe skill list [OPTIONS]

Options:
  • --json — Output machine-readable JSON

aoe skill view

Print one skill’s SKILL.md

Usage: aoe skill view [OPTIONS] <DIRECTORY>

Arguments:
  • <DIRECTORY> — Skill directory name
Options:
  • --source <SOURCE> — Source root id, or aoe-managed

    Default value: aoe-managed

  • --json — Output metadata and content as JSON

aoe skill add

Create a new AoE-managed skill

Usage: aoe skill add [OPTIONS] <DIRECTORY>

Arguments:
  • <DIRECTORY> — Skill directory name
Options:
  • --description <DESCRIPTION> — Short description used in the generated SKILL.md

aoe skill edit

Edit an AoE-managed skill

Usage: aoe skill edit [OPTIONS] <DIRECTORY>

Arguments:
  • <DIRECTORY> — Managed skill directory name
Options:
  • --file <PATH> — Read replacement SKILL.md from this file. Use - for stdin

aoe skill adopt

Copy an external skill into AoE’s managed store

Usage: aoe skill adopt [OPTIONS] <SOURCE> <DIRECTORY>

Arguments:
  • <SOURCE> — External source root id, such as claude-user or agents-standard
  • <DIRECTORY> — Source skill directory name
Options:
  • --as <DESTINATION> — Destination directory name in AoE’s managed store

aoe skill remove

Delete an AoE-managed skill

Usage: aoe skill remove <DIRECTORY>

Arguments:
  • <DIRECTORY> — Managed skill directory name

aoe skill sync

Copy AoE-managed skills into the agents’ own skills directories

Usage: aoe skill sync [OPTIONS]

Options:
  • --root <ID> — Limit the sync to these source roots. Repeatable. Defaults to all of them
  • --replace <DIRECTORY> — Take over this skill in the agents’ directories, overwriting a skill AoE does not manage or a propagated copy that was edited there. Repeatable. Without it a sync never overwrites anything it did not itself write
  • --only <DIRECTORY> — Reconcile only this skill. Repeatable. Defaults to every managed skill
  • --json — Output the per-skill outcomes as JSON

aoe hooks

Let AoE write agent hooks into each agent’s own config, for every agent and every profile

Usage: aoe hooks <COMMAND>

Subcommands:
  • status — Show whether AoE may write agent hooks, and what they resolve for a profile
  • approve — Let AoE write agent hooks for every agent, on every profile

aoe hooks status

Show whether AoE may write agent hooks, and what they resolve for a profile

Usage: aoe hooks status

aoe hooks approve

Let AoE write agent hooks for every agent, on every profile

Usage: aoe hooks approve

aoe serve

Start the aoe daemon: REST/WebSocket API, plus the web dashboard in builds that embed it

Usage: aoe serve [OPTIONS]

Options:
  • --core-only — Serve the private local API without opening TCP or a dashboard

  • --port <PORT> — Port to listen on. Falls back to the AOE_SERVE_PORT environment variable, then [serve] port in config.toml, then 8080 (debug builds default to 8081 so a cargo run instance does not collide with an installed release aoe)

  • --host <HOST> — Host/IP to bind to (use 0.0.0.0 for LAN/VPN access)

    Default value: 127.0.0.1

  • --auth <AUTH> — Authentication mode: token (default, random URL token), passphrase (no token URL, passphrase login wall only), or none (no auth at all, requires –behind-proxy or –tailnet). Mutually exclusive with –no-auth (which aliases –auth=none)

    Possible values: token, passphrase, none

  • --no-auth — Disable authentication (requires –behind-proxy or –tailnet). Alias for –auth=none

  • --behind-proxy — Mark this server as sitting behind a reverse proxy that terminates TLS upstream. Sets cookies as ; Secure and trusts the X-Forwarded-For header from loopback peers. Does NOT auto-spawn a tunnel (unlike –remote). Satisfies the requirement for –auth=passphrase or –auth=none on a non-loopback bind, as does –tailnet

  • --dangerously-allow-plaintext-remote — Accept plain HTTP from non-loopback peers. By default the server answers those with 426 before authentication: bearer tokens and passphrases would cross the network in the clear. A TLS proxy or tunnel in front of a loopback listener (--behind-proxy, --remote) needs no opt-out. This applies to this bind only, is never inferred from the address, and is logged at every start

  • --allowed-host <HOST> — Extra Host header value to accept (repeatable). The DNS-rebinding gate trusts loopback, any routable IP-literal Host (LAN/tailnet IPs can’t be rebound), and a non-wildcard --host by default. A browser Origin is accepted without --allowed-origin only when it is allowlisted or has the exact same authority as Host; add a HOSTNAME or mDNS name here when serving behind a reverse proxy, a custom tunnel, or by name when binding 0.0.0.0 (access by IP needs no flag). Auto-injected tunnel hosts (--remote) need no flag

  • --allowed-origin <ORIGIN> — Extra browser Origin to accept (repeatable, full origin scheme://host[:port], e.g. https://aoe.example.com:8443). Needed only for a reverse proxy on a nonstandard port; standard 80/443 origins for --allowed-host entries are derived automatically

  • --read-only — Read-only mode: view terminals but cannot send keystrokes

  • --cityhall — CityHall client mode: a locked-down, composer-first dashboard for non-technical users (structured view only; no terminal/diff/project management). Equivalent to AOE_CITYHALL_MODE=1; the flag is what the daemon replays to its restart child so the mode survives aoe update and aoe serve --restart. See #7

  • --remote — Expose the daemon over a public HTTPS tunnel. Prefers Tailscale Funnel when tailscale is installed and logged in (stable .ts.net URL, installable PWAs survive restarts). Falls back to a Cloudflare quick tunnel otherwise (fresh URL on every restart)

  • --tunnel-name <TUNNEL_NAME> — Use a named Cloudflare Tunnel (requires prior cloudflared tunnel create). Takes precedence over Tailscale auto-detection

  • --no-tailscale — Skip Tailscale Funnel auto-detection and go straight to Cloudflare. Useful if you have Tailscale installed for unrelated reasons

  • --tunnel-url <TUNNEL_URL> — Hostname for a named tunnel (e.g., aoe.example.com)

  • --funnel-port <PORT> — Public HTTPS port for Tailscale Funnel: 443, 8443 or 10000, so a second daemon on this machine can have its own Funnel. Falls back to [serve] funnel_port, then 443

    Possible values: 443, 8443, 10000

  • --tailnet — Serve HTTPS at https://<machine>.<tailnet>.ts.net, reachable only from inside your tailnet, with tailscale serve (not Funnel). Binds loopback and removes the route on stop. Refuses to start when port 443 already has any Tailscale Serve or Funnel config

  • --daemon — Run as a background daemon (detach from terminal)

  • --stop — Stop a running daemon

  • --status — Print the local daemon’s PID, mode, URLs, and log path. With AOE_DAEMON_URL set, report the remote daemon’s reachability and token state instead. Exits non-zero when no daemon is running. Useful for shell scripts that want to know whether a daemon is up without parsing ps.

    --status is read-only and incompatible with every flag that would change daemon state (--stop, --daemon, --remote, --tailnet) or the bind config of a fresh daemon (--no-auth, --auth, --behind-proxy, --read-only, --passphrase, --passphrase-stdin, --port, --tunnel-name, --no-tailscale, --tunnel-url, --funnel-port, --open, --allowed-host, --allowed-origin). Clap reports the misuse instead of silently ignoring the extras.

  • --passphrase <PASSPHRASE> — Require a passphrase for login (second-factor auth). Can also be set via AOE_SERVE_PASSPHRASE environment variable

  • --passphrase-stdin — Read the passphrase from one line of piped stdin; a terminal is refused. Recommended over –passphrase, which is visible in shell history and process listings

  • --open — Open the dashboard URL in the default browser during Daemon startup. Ignored in a build with no dashboard bundle, under –daemon or –remote, and whenever no browser the user could see is reachable: over SSH without a forwarded display, or on Linux/BSD with no display server. BROWSER overrides the check on platforms whose launcher reads it, which excludes macOS

  • --restart — Restart the running managed daemon with its recorded policy. Missing credentials are rejected before stopping it

  • --rollback — Restore the retained managed launch, including a core replaced by the dashboard

aoe daemon

Control the background aoe daemon; each verb is the matching aoe serve flag (--daemon, --stop, --status, --restart)

Usage: aoe daemon <COMMAND>

Subcommands:
  • start — Start the daemon in the background (aoe serve --daemon)
  • stop — Stop the running daemon (aoe serve --stop)
  • status — Print the daemon’s PID, mode, URLs and log path, or remote reachability with AOE_DAEMON_URL (aoe serve --status)
  • restart — Restart the daemon with its persisted launch config (aoe serve --restart)

aoe daemon start

Start the daemon in the background (aoe serve --daemon)

Usage: aoe daemon start

aoe daemon stop

Stop the running daemon (aoe serve --stop)

Usage: aoe daemon stop

aoe daemon status

Print the daemon’s PID, mode, URLs and log path, or remote reachability with AOE_DAEMON_URL (aoe serve --status)

Usage: aoe daemon status

aoe daemon restart

Restart the daemon with its persisted launch config (aoe serve --restart)

Usage: aoe daemon restart

aoe url

Print the URL of a running aoe serve daemon

Usage: aoe url [OPTIONS]

Options:
  • --all — Print every labeled URL (Tailscale / LAN / localhost) on its own line. The primary URL is printed first as primary\t<url>; alternates use <label>\t<url>. The tab-separated format makes the output easy to parse from shell scripts
  • --token-only — Print only the auth token from the primary URL’s ?token= query parameter. Useful for scripted login flows or pasting into the PWA. Exits non-zero when the URL has no token (e.g. --no-auth server)

aoe acp

Manage the ACP structured-view workers (doctor, ps, logs, prompt, approve, …)

Usage: aoe acp <COMMAND>

Subcommands:
  • doctor — Verify the structured view can start: Node runtime, configured agents, provider auth (claude auth login)
  • agents — List configured agents (claude-code, aoe-agent, etc.)
  • lint-stream — Check a recorded agent-to-client NDJSON stream (one JSON-RPC frame per line) against the _meta.aoe primitive contract. Exits 1 on any finding, so a plugin can run it in CI
  • stop — Stop an agent worker and settle its owned native processes. Unlike aoe serve --stop, this ends the worker rather than detaching
  • recover — Retire unprovable worker ownership after external shutdown confirmation
  • kill — SIGKILL the runner, then settle its native workers
  • logs — Tail the runner’s log file for an agent session
  • restart — Restart a worker, or start a stopped one through aoe serve
  • history — Print the persisted transcript for an agent session
  • status — Print live status for an agent session: highest/lowest seq, and whether the on-disk retention window has truncated history
  • prompt — Send a prompt to an agent session’s agent
  • set-option — Set a config option (model, mode, effort, …) on a running agent session. The agent’s own option id is the config id, e.g. reasoning_effort. A rejection by the agent is reported in the session’s event stream, not here
  • approve — Resolve a pending approval (default: allow). Use –always for a session-scoped allow-list entry, –deny to refuse the request, and –option to answer a request that lists choices
  • cancel — Cancel the in-flight prompt for an agent session
  • tail — Stream the agent broadcast for a session to stdout as JSON lines (one frame per line). Press Ctrl-C to stop
  • attach — Open the TUI structured view directly for a known session id. Combine with AOE_DAEMON_URL (+ AOE_DAEMON_TOKEN, or AOE_DAEMON_PASSPHRASE against a --auth=passphrase daemon) to attach across machines without going through the home session list
  • switch-agent — Switch an agent session to a different ACP agent, keeping the transcript. Valid targets are built-in registry agents and any custom agent configured in [session.agent_acp_cmd]. The new agent starts fresh; use aoe acp agents to list built-in targets. Handy for returning to claude after a rate-limit handoff to codex
  • switch-account — Switch a structured session to another account of the same agent, keeping the conversation. Accounts are tool names with their own [session.agent_config_dir]; the transcript is copied into the new account’s store and the worker resumes it. A session parked on a rate limit continues with the interrupted prompt. Refuses, changing nothing, where the swap would start a fresh conversation (not Claude, no recorded conversation, other agent)
  • switch-provider — Re-route a Claude session to a different LLM provider, keeping the transcript. Refused mid-turn; once idle the worker restarts and resumes the same conversation. Credentials are not provisioned by this: the target provider’s own variables must already be set on the host (for example ANTHROPIC_VERTEX_PROJECT_ID and CLOUD_ML_REGION for vertex). The model resets to the new provider’s default, because model ids differ between providers

aoe acp doctor

Verify the structured view can start: Node runtime, configured agents, provider auth (claude auth login)

Usage: aoe acp doctor [OPTIONS]

Options:
  • --json — Emit machine-readable JSON instead of a human report

  • --fix — Attempt safe remediations: download the bundled Node runtime if none is present, then install the pinned npm ACP adapter into the data dir with that Node’s own npm (no global install, no sudo). Installs claude-agent-acp by default; each adapter is a separate several-hundred-MB tree, so pick others with –adapter

  • --adapter <ADAPTER> — Adapter to install with –fix (repeatable). Defaults to claude-agent-acp

    Possible values: claude-agent-acp, codex-acp, pi-acp, aoe-agent

  • --all-adapters — Install every pinned adapter with –fix instead of just the default one

aoe acp agents

List configured agents (claude-code, aoe-agent, etc.)

Usage: aoe acp agents

aoe acp lint-stream

Check a recorded agent-to-client NDJSON stream (one JSON-RPC frame per line) against the _meta.aoe primitive contract. Exits 1 on any finding, so a plugin can run it in CI

Usage: aoe acp lint-stream [OPTIONS] <PATH>

Arguments:
  • <PATH> — NDJSON file, or - for stdin
Options:
  • --json — Emit findings as JSON instead of a human report
  • --require-hello — Fail a stream with no _meta.aoe.proxy hello

aoe acp stop

Stop an agent worker and settle its owned native processes. Unlike aoe serve --stop, this ends the worker rather than detaching

Usage: aoe acp stop [OPTIONS] [SESSION]

Arguments:
  • <SESSION> — Session id to stop. Mutually exclusive with --all
Options:
  • --all — Stop every running agent worker

  • --timeout-secs <TIMEOUT_SECS> — Seconds to wait after SIGTERM before escalating to SIGKILL

    Default value: 5

aoe acp recover

Retire unprovable worker ownership after external shutdown confirmation

Usage: aoe acp recover [OPTIONS] <SESSION>

Arguments:
  • <SESSION> — Session whose ownership evidence to retire
Options:
  • --confirm-prime-stopped — Confirm native processes are stopped for an identifiable missing-route Prime record
  • --confirm-worker-stopped — Confirm the original runner and all host/container native processes are stopped. Accepts malformed, unattested legacy, or externally settled orphan records

aoe acp kill

SIGKILL the runner, then settle its native workers

Usage: aoe acp kill <SESSION>

Arguments:
  • <SESSION> — Session id to kill

aoe acp logs

Tail the runner’s log file for an agent session

Usage: aoe acp logs [OPTIONS]

Options:
  • --session <SESSION> — Session id whose worker logs to tail
  • --follow — Follow new lines as they arrive

aoe acp restart

Restart a worker, or start a stopped one through aoe serve

Usage: aoe acp restart <SESSION>

Arguments:
  • <SESSION> — Session id whose worker to restart

aoe acp history

Print the persisted transcript for an agent session.

By default prints a readable transcript: streamed agent chunks joined into whole messages, user prompts, and one line per tool call.

Usage: aoe acp history [OPTIONS] <SESSION>

Arguments:
  • <SESSION> — Acp session id
Options:
  • --since <SINCE> — Skip events at or below this seq

    Default value: 0

  • --json — Emit raw frames as JSON (one frame per line)

  • --last <N> — Only the last N transcript entries (after --role filtering)

  • --role <ROLE> — Only entries from these roles (comma-separated)

    Possible values:

    • user
    • agent
    • tool
    • notice: Errors and lifecycle notices

aoe acp status

Print live status for an agent session: highest/lowest seq, and whether the on-disk retention window has truncated history

Usage: aoe acp status [OPTIONS] <SESSION>

Arguments:
  • <SESSION> — Acp session id
Options:
  • --json — Emit machine-readable JSON instead of a human report

aoe acp prompt

Send a prompt to an agent session’s agent

Usage: aoe acp prompt <SESSION> <TEXT>

Arguments:
  • <SESSION> — Acp session id
  • <TEXT> — Prompt text. Pass - to read from stdin

aoe acp set-option

Set a config option (model, mode, effort, …) on a running agent session. The agent’s own option id is the config id, e.g. reasoning_effort. A rejection by the agent is reported in the session’s event stream, not here

Usage: aoe acp set-option <SESSION> <CONFIG_ID> <VALUE>

Arguments:
  • <SESSION> — Acp session id
  • <CONFIG_ID> — Config option id as advertised by the agent
  • <VALUE> — Value to select

aoe acp approve

Resolve a pending approval (default: allow). Use –always for a session-scoped allow-list entry, –deny to refuse the request, and –option to answer a request that lists choices

Usage: aoe acp approve [OPTIONS] <SESSION> <NONCE>

Arguments:
  • <SESSION> — Acp session id
  • <NONCE> — Approval nonce, as printed in the pending-approval banner
Options:
  • --always — Allow this kind of operation for the rest of the session
  • --deny — Refuse the request
  • --option <ID> — Answer with this option id, from the request’s option list. An id the request never offered cancels it instead

aoe acp cancel

Cancel the in-flight prompt for an agent session

Usage: aoe acp cancel <SESSION>

Arguments:
  • <SESSION> — Acp session id

aoe acp tail

Stream the agent broadcast for a session to stdout as JSON lines (one frame per line). Press Ctrl-C to stop

Usage: aoe acp tail [OPTIONS] <SESSION>

Arguments:
  • <SESSION> — Acp session id
Options:
  • --since <SINCE> — Start at this seq (default 0 = full replay then live)

    Default value: 0

aoe acp attach

Open the TUI structured view directly for a known session id. Combine with AOE_DAEMON_URL (+ AOE_DAEMON_TOKEN, or AOE_DAEMON_PASSPHRASE against a --auth=passphrase daemon) to attach across machines without going through the home session list

Usage: aoe acp attach <SESSION>

Arguments:
  • <SESSION> — Acp session id

aoe acp switch-agent

Switch an agent session to a different ACP agent, keeping the transcript. Valid targets are built-in registry agents and any custom agent configured in [session.agent_acp_cmd]. The new agent starts fresh; use aoe acp agents to list built-in targets. Handy for returning to claude after a rate-limit handoff to codex

Usage: aoe acp switch-agent [OPTIONS] <SESSION> <TARGET>

Arguments:
  • <SESSION> — Acp session id
  • <TARGET> — Registry key or configured custom ACP agent name (e.g. claude, codex, my-custom-bridge)
Options:
  • --model <MODEL> — Optional model override forwarded to the new agent

aoe acp switch-account

Switch a structured session to another account of the same agent, keeping the conversation. Accounts are tool names with their own [session.agent_config_dir]; the transcript is copied into the new account’s store and the worker resumes it. A session parked on a rate limit continues with the interrupted prompt. Refuses, changing nothing, where the swap would start a fresh conversation (not Claude, no recorded conversation, other agent)

Usage: aoe acp switch-account <SESSION> <TOOL>

Arguments:
  • <SESSION> — Acp session id
  • <TOOL> — Tool name of the target account, as declared in [session.agent_config_dir] (e.g. claude-b)

aoe acp switch-provider

Re-route a Claude session to a different LLM provider, keeping the transcript. Refused mid-turn; once idle the worker restarts and resumes the same conversation. Credentials are not provisioned by this: the target provider’s own variables must already be set on the host (for example ANTHROPIC_VERTEX_PROJECT_ID and CLOUD_ML_REGION for vertex). The model resets to the new provider’s default, because model ids differ between providers

Usage: aoe acp switch-provider <SESSION> <PROVIDER>

Arguments:
  • <SESSION> — Acp session id

  • <PROVIDER> — Provider to route through

    Possible values: api, bedrock, vertex

aoe uninstall

Uninstall Agent of Empires

Usage: aoe uninstall [OPTIONS]

Options:
  • --keep-data — Keep data directory (sessions, config, logs)
  • --keep-tmux-config — Keep tmux configuration
  • --dry-run — Show what would be removed without removing
  • -y — Skip confirmation prompts

aoe update

Update aoe to the latest release

Usage: aoe update [OPTIONS]

Options:
  • -y, --yes — Skip confirmation prompt

  • --check — Print update status and exit (no install)

  • --dry-run — Detect install method and print what would happen, no download

  • --channel <CHANNEL> — Switch to the newest release of a channel (tarball installs only)

    Possible values: stable, nightly

  • --version <TAG> — Install one exact release, e.g. v1.25.0 or nightly-20261125 (tarball installs only)

aoe migrate

Run pending migrations or restore complete original lifecycle authority. Stop the daemon with aoe serve --stop first. By default, also move eligible sandbox stores and retry deferred ownership recovery

Usage: aoe migrate [OPTIONS]

Options:
  • --restore-purge-journal <FILE> — Restore a complete original purge journal from a consistent application backup
  • --restore-tool-journal <FILE> — Restore complete original tool retirement receipts from a consistent application backup
  • --confirm-complete-original-authority — Attest that FILE contains all original authority, not a stale or partial copy

aoe completion

Generate shell completions

Usage: aoe completion <SHELL>

Arguments:
  • <SHELL> — Shell to generate completions for

    Possible values: bash, elvish, fish, powershell, zsh


This document was generated automatically by clap-markdown.