aide CLI Reference
aide
aide [flags] [-- agent-args...]
Resolves profile, decrypts secrets, and launches a coding agent. Without a config file, auto-detects agents on PATH and passes arguments through. With a config file, resolves the matching profile and applies environment, secrets, and sandbox policy.
Persistent Flags (available to all subcommands):
| Flag | Default | Description |
|---|---|---|
--resolve | false | Show detailed startup info (agent path, env sources, sandbox) |
--format | human | Output format for read/query commands: human or json. Also settable via $AIDE_FORMAT. |
Local Flags:
| Flag | Default | Description |
|---|---|---|
--agent <name> | Override which agent (harness) to launch, for this run only | |
--profile <name> | Use this profile instead of the one matched for the directory | |
--gateway <name|none> | Use this gateway for this run (one value; none is the harness’s own login); replaces the saved choice. A plain credentials: binding name selects that binding instead | |
--auth <mode> | api | Deprecated: --auth login is --gateway none |
--with <caps> | Activate capabilities for this session (e.g., --with k8s,docker) | |
--without <caps> | Disable profile capabilities for this session | |
--auto-approve | false | Run agent without permission checks (replaces --yolo) |
--no-auto-approve | false | Override config: require permission checks |
--yolo | false | Alias for --auto-approve (kept for backwards compatibility) |
--no-yolo | false | Alias for --no-auto-approve (kept for backwards compatibility) |
--clean-env | false | Start agent with only essential environment variables |
--ignore-project-config | false | Launch without applying .aide.yaml |
--no-session-host | false | Disable the interactive PTY session host and run the agent directly |
--resume [<id>] | "latest" when bare --resume | Resume a previous aide or harness session (pass a session UUID, harness ID, or 'latest') |
--unrestricted-network, -N | false | Allow unrestricted network access, ignoring config port rules |
--diagnose | false | Wrap the run and write a redacted post-mortem on exit |
--diagnose-trace | false | Implies --diagnose; also capture macOS sandbox denials (Darwin only) |
--variant <cap=variant> | Pin variants for capabilities in --with (repeatable; must match a --with capability) | |
--version, -v | Print aide version, commit, and build timestamp and exit | |
--yes | false | Auto-approve variant consent prompts (non-interactive workflows) |
aide -- --no-permissions
One-time flags never change saved preferences. Precedence:
- Profile:
--profile, else match rules, elsedefault_profile..aide.yamlprofile:never selects a profile; a mismatch prints a note suggesting--profile. - Harness:
--agent, else the repository preference saved withaide project set, else a trusted.aide.yamlagent:, else the profile’sagent:. - Gateway:
--gateway, else the repository preference (aide gateway use --repo,aide project set --gateway), else the profile’sgateway_choice:, else the harness’s own login when no gateway is marked for it.claudeandcodexwith gateways marked and no choice open a picker on a terminal and exit78otherwise. aide never picks a gateway on its own. See Gateways. - Credentials: plain
credentials:bindings selected bydefault_credentials:or a saved repository selection are injected into the harnesses they serve, skipping bindings restricted to other agents;--gateway <credential>replaces that selection and--gateway noneinjects none. Bindings outside it are not injected.
Exit codes: 78 (EX_CONFIG) when a claude or codex gateway
choice is unset in a script (stderr names the gateways and the command
to choose one: aide gateway use <name|none> --agent <a> or
--gateway <name|none>), and when aide session apply, aide restart,
or --restart runs non-interactively or from the target session’s own
TTY without --ui-bridge-stdin. Other failures exit 1.
aide which
aide which
Shows which profile matches the current directory. Accepts the persistent
--resolve flag from the root command to also decrypt and display secret keys
and expanded env values.
aide which --resolve
Pass --agent <name> to report what aide --agent <name> would launch:
that agent, and the profile directory it gets when the profile sets
profile:.
aide which --agent pi
aide status
aide status
Shows current profile, active capabilities, sandbox state, and auto-approve status for the working directory.
aide status
--agent <name> works as for aide which.
aide which and aide status also accept --profile, --gateway
and --auth, and report where each choice came from
(profile_source, harness_source, credential_source and
credential_selection in --format json).
aide usage
aide usage [--all | --profile NAME] [--] [ccusage-args...]
aide usage --setup [--force]
aide usage --help
Runs the external ccusage binary against aide profile data. With no report
arguments, runs ccusage daily. Install ccusage first for reports:
brew install ccusage or nixpkgs: pkgs.ccusage. Help and setup work without
the binary; a missing binary on the report path prints an install hint.
| Flag | Description |
|---|---|
--all | Merge existing profile data directories; mutually exclusive with --profile |
--profile NAME | Report a named profile regardless of the current directory (shell completion lists configured names) |
--setup | Write or refresh named pi stores in ~/.claude/ccusage.json, then exit |
--force | With --setup, write without a TTY confirmation prompt |
--help, -h | Show aide usage help; -- --help shows ccusage help instead |
aide usage # CWD-matched profile's daily report
aide usage blocks --active # ccusage report flags pass through
aide usage --profile work daily # work profile, from any directory
aide usage --all daily --json # merged data, JSON report on stdout
aide usage --setup # preview config diff, confirm on a TTY
aide usage --setup --force # non-interactive setup
aide usage -- --help # ccusage help, not aide help
aide usage -- --all # ccusage's --all, not aide's scope flag
Aide consumes its own flags only before the first report argument or --.
After that, arguments belong to ccusage: aide usage daily --json passes
--json through; use -- to disambiguate colliding flags such as --all
and --help. --setup accepts no scope or report arguments; --force alone
is an error.
In profile scope, aide resolves the CWD match (or the explicit name), removes
inherited ccusage data-directory variables, and sets each source’s computed
profile directory even if it does not exist. Missing data may give an empty
unified report or a visible source error, not another profile’s data.
--all merges only existing directories. It combines Claude, Codex, OpenCode,
and Gemini roots where supported, but ccusage’s COPILOT_HOME accepts a
single directory: aide takes the first in profile-name order and warns on
stderr naming skipped profiles. Warnings do not contaminate JSON stdout.
For pi, --all deliberately leaves PI_AGENT_DIR unset. Run --setup first
to add isolated profiles’ named pi stores (and an existing omp sessions store)
to ~/.claude/ccusage.json; otherwise the merged view may omit isolated pi
sessions. The default pi store is never added as a named store: ccusage rejects
paths overlapping its default store. A profile-scoped report instead sets its
own PI_AGENT_DIR and does not use the merged store labels. Setup validates
paths and existing JSON before writing, preserves unrelated settings, shows a
diff and requires TTY confirmation unless --force is given. Check the diff
before accepting; --force bypasses that protection.
Version 1 supports ccusage only. To add another reporting tool, add one
Backend entry with its environment mappings and optional Setup hook in
internal/usage/usage.go, with tests; there is no plugin or backend-selection
flag yet. ccusage estimates usage from local logs; server-side quota and
authoritative 5-hour/weekly percentages remain in the agent’s own /usage.
aide rtk gain
aide rtk gain
aide rtk gain --profile NAME [--] [rtk-gain-args...]
Shows rtk’s token savings. With no
arguments it prints one row per profile’s rtk database
(<rtk data dir>/profiles/<profile>), a row for usage recorded outside
aide (rtk’s shared history.db), and a total; the savings % of the total
is recomputed from the summed tokens. A database that cannot be read
shows as an unreadable row, with the reason below the table; the
other rows still count.
With --profile, it runs rtk’s own rtk gain on that profile’s
database and passes every following argument through, for example
--graph, --history, --project or --format json. Any other
argument without --profile is an error.
Run it outside an aide session: inside one, the sandbox only grants the
current profile’s rtk dir. aide sets RTK_DB_PATH, RTK_TEE_DIR and
RTK_RECALL_DB for each session when the rtk capability is on (see
capabilities).
aide gateway
aide gateway add [<preset>|<name>] [--url <url>] [--api <protocol>] [--no-auth] [--region <r>] [--project <p>] [--from-env[=VAR] | --key-stdin] [--key <name>] [--secret-store <name>] [--age-key <key>] [--generate-age-key] [--model <id>] [--refresh-ttl <dur>] [--agents <list>] [--default | --default-for <a>]... [--force] [--profile <name>]
aide gateway list [--all] [--models] [--format json]
aide gateway use [<name|none>] --agent <a> [--repo] [--unset]
aide gateway edit [<name>] [--name <new>] [--url <url>] [--ttl <dur>] [--agents <list>] [--rotate-token] [--token-stdin] [--token-env <var>] [--store <name>] [--key <name>] [--age-key <key>] [--force] [--profile <name>]
aide gateway sync [<name>]
aide gateway remove <name> [--keep-secret]
Registers LLM gateways on a profile, stores their keys in the profile’s
age secret store, and writes aide-<name> provider entries into each
marked agent’s config. --profile (default: the profile matched for
the directory) applies to every subcommand.
addencrypts the key (creating a default age identity on a terminal, or with--generate-age-key), savesgateways:and recordsgateway_choice: nonefor any markedclaudeorcodexwhose choice was unset, unless--defaultor--default-for <a>makes the new gateway the choice. It fetches/v1/modelsand syncs the agent files. The key is read from a hidden prompt,--key-stdinor--from-env, never from a flag value.--token-stdin,--token-env,--ttl,--storeand--harnessesremain as deprecated aliases;--no-credentialsis removed.Flag Default Description --url <url>Gateway base URL ( https://, orhttp://for localhost only)--api <protocol>Wire protocol for a custom gateway ( anthropic-messages,openai-chat, oropenai-responses)--no-authfalse Gateway takes no key (loopback URLs only) --region <r>Cloud region for a provider switch ( bedrock,vertex)--project <p>Cloud project for a provider switch ( vertex)--from-env[=VAR]Read the key from VAR(bare--from-envreads the preset’s usual variable)--key-stdinfalse Read the key from stdin --key <name><name>_tokenSecret key name inside the secret store --secret-store <name>profile store or profile name Secret store for the gateway key --age-key <key>discovered age identity age1...recipient for a new secret store--generate-age-keyfalse Create an age identity when none exists, even without a terminal --model <id>none Model the agents start on --refresh-ttl <dur>"24h"Launch-time model refresh interval (e.g. 12h,24h,168h)--agents <list>preset’s, else claude,pi,omp,opencode,codexComma-separated agents to configure --defaultfalse Make this gateway the choice for every agent it serves --default-for <agent>Make this gateway the choice for these agents (repeatable) --forcefalse Replace a gateway of the same name with another URL, or overwrite an existing secret key --profile <name>matched profile Target profile usesets the choice for one agent in the profile (or this repository with--repo);noneis the agent’s own login and--unsetremoves the choice (--harnessis a deprecated alias for--agent). On a terminal without a name it shows the picker. Pass--restart(with optional--ui-bridge-stdinand target flags--pid,--pane,--rex-block,--cwd) to hot-restart a matching active session after saving; confirmation proof runs before mutating config and rolls back on failure.edit --name <new>renames a gateway (there is norename), migrating its key, cache, choices and agent entries.listshows each gateway’s URL, store and key name, cache age, file status per agent and the agents it is chosen for. Values are never printed.removedeletes the gateway, cache and agent entries, and the key unless--keep-secretor another user of the key remains. Choices that named it become unset.
A launch with an unset claude or codex choice and no terminal exits 78.
Full behaviour, presets and migration: Gateways.
aide project
User-local preferences for the current repository, keyed by profile
and the normalized origin remote, stored in
~/.local/state/aide/preferences.json. Worktrees and clones of the
same repository share them under the same profile. They hold names
only, never secret values, and never touch .aide.yaml or
config.yaml. In a directory without an origin remote, set and
clear refuse; launches use the profile defaults.
aide project set [--profile <name>] [--agent <agent>] [--gateway <name|none>]
aide project clear [--profile <name>] [--agent [<agent>]] [--gateway]
aide project clear --reset
aide project show [--profile <name>] [--format json]
setchanges only the fields it names and checks them the way a launch would (agent known and supported by the profile’s config dir, credentials defined in the profile and allowed for the agent).--gateway nonesaves the agent’s own login;--agentsays which agent the gateway applies to (or uses the saved default agent).--no-credentialsis removed;--auth loginis the deprecated form of--gateway none.clearwith--agentor--gatewayclears that field (--gateway --agent <a>clears one agent’s choice); with neither, both. Cleared fields fall back to.aide.yamland the profile defaults.clear --resetmoves the whole preferences file aside to<file>.corrupt-<timestamp>(nothing is deleted) and starts empty; use it when aide reports the file unreadable.show --format jsonprintsprofile,repository,agent,credentials(nullwhen unset,[]for an explicit empty selection) andfile.
aide prompt
aide prompt [--starship-config] [--compact] [--gateway]
Output a compact profile line for shell prompt integration.
Flags:
--starship-config: Print a ready-to-usestarship.tomlsnippet to stdout--compact: Remove spaces between prompt segments--gateway: Include the active harness’s gateway choice segment (⇄<gw>,⇄login, or⇄?, omitted on harnesses without gateway support; also enabled bypreferences.prompt_gateway: true)
Output format:
profile [profile-icon] [agent-icon] [⇄<gw>|⇄login|⇄?] [status]
Status indicators:
🛡: sandbox is active⚠:.aide.yamlis present but untrusted (runaide trust)🚫:.aide.yamlhas been denied
Exits 1 with no output when no profile matches the current directory. Starship hides the module automatically on non-zero exit.
Starship setup:
aide prompt --starship-config >> ~/.config/starship.toml
aide validate
aide validate
Checks config structure, verifies agent binaries exist on PATH, confirms secret files exist on disk, and flags profile match rules that can never activate. Exits non-zero if errors are found.
aide validate
aide explain
aide explain [topic] [--format human|agent|json]
Explains how to configure aide using embedded recipes plus a redacted,
read-only snapshot of your current configuration. Secret values are never shown;
only {{ .secrets.X }} template references and store names appear. Passing an
optional [topic] prints that single recipe and exits.
| Flag | Default | Description |
|---|---|---|
--format <fmt> | human | Output format: human, agent (markdown for injection), or json |
aide explain
aide explain --format agent
aide explain --format json
aide doctor
aide doctor [--profile <name>] [--agent <name>] [--gateway <name|none>] [--fix] [--format human|json]
Reports what launch would use in the current directory (profile and why it
matched, agent, secret store, capabilities with their variants, sandbox guards
and network, the trust state of each .aide.yaml, and capabilities whose
project markers are present), then every problem found here and in the rest
of the config. Each finding has a severity (error, warning or tip) and either
an aide command that fixes it or written steps.
| Flag | Description |
|---|---|
--profile <name> | Use this profile instead of the one matched for this directory |
--agent <name> | Report as if launched with --agent (agent and profile directory) |
--gateway <name|none> | Use this gateway (or none for the harness’s own login) for this run; replaces the saved and default choice |
--fix | Run each finding’s fix command, asking before each one |
--auth <mode> | Deprecated: use --gateway none instead of --auth login |
It changes nothing, never prompts and never decrypts secrets. It exits
non-zero only when it finds an error, as aide validate does. Inside an aide
session (AIDE_SANDBOX=on) the report says so; on Linux the sandbox hides the
config, and the report asks you to run aide doctor in a separate terminal.
--fix offers each finding’s command one at a time, shows what it changes
and its side effects (and whether it widens what the agent can reach), and
runs it only after a yes. Without a terminal it runs nothing. After each fix
the checks run again; the first failing fix stops the run. --fix refuses to
run inside an aide session, when the config does not load, on the legacy
single-file layout, or while a gateway migration is pending. The report then
lists each fix as ran, failed, skipped or not-run.
--format json prints the report with a schema_version for scripts and the
Claude Code plugin. To explain a run that already failed, use
aide --diagnose.
aide init
aide init [--force] [--ui]
Creates an initial config file. Detects agents on PATH and prompts for the
primary agent. Optionally sets up a secrets file. With --force, backs up the
existing config to <path>.bak before overwriting. With --ui, opens the
interactive onboarding wizard in the Standalone Configuration Dashboard
(requires a TTY on stdin and stdout).
| Flag | Description |
|---|---|
--force | Overwrite existing config, creating a .bak backup |
--ui | Launch the interactive onboarding wizard TUI |
aide init --force
aide init --ui
aide setup
aide setup
When run on an interactive terminal (TTY on both stdin and stdout), aide setup
opens the Standalone Configuration Dashboard (aide config). In non-interactive or
scripted runs, it prints the legacy deprecation notice pointing to
aide profile bind or aide profile create.
aide setup
aide use
aide use [agent] [flags]
Binds the current directory to an agent or profile in global config. Without
--profile, creates or updates a profile named after the current directory
basename.
| Flag | Description |
|---|---|
--match <pattern> | Glob pattern to match instead of CWD |
--profile <name> | Add a match rule to an existing named profile |
--secret <name> | Set a secret on the profile |
--sandbox <profile> | Set a sandbox profile name (e.g. strict, none) |
aide use claude --match "~/work/*" --secret personal
aide cap
Manage capabilities – reusable bundles of sandbox paths, environment allowlists, and deny rules that can be composed and activated per session.
aide cap list
aide cap list [flags]
Lists all capabilities (built-in and user-defined).
| Flag | Description |
|---|---|
--profile <name> | Show enabled/disabled status for a specific profile instead of the current one |
aide cap list
aide cap show
aide cap show <name>
Shows capability details with resolved inheritance.
aide cap show k8s
aide cap create
aide cap create <name> [flags]
Creates a custom capability.
| Flag | Description |
|---|---|
--extends <cap> | Inherit from an existing capability |
--combines <caps> | Compose multiple capabilities together |
--readable <path> | Add a readable path (repeatable) |
--writable <path> | Add a writable path (repeatable) |
--deny <path> | Add a denied path (repeatable) |
--env-allow <var> | Allow an environment variable (repeatable) |
--description <text> | Human-readable description |
aide cap create my-k8s --extends k8s --writable ~/.kube --description "K8s with local kubeconfig"
aide cap edit
aide cap edit <name> [flags]
Modifies a user-defined capability. Cannot edit built-in capabilities.
| Flag | Description |
|---|---|
--add-readable <path> | Add a readable path (repeatable) |
--add-writable <path> | Add a writable path (repeatable) |
--add-deny <path> | Add a denied path (repeatable) |
--remove-deny <path> | Remove a denied path (repeatable) |
--add-env-allow <var> | Allow an environment variable (repeatable) |
--remove-env-allow <var> | Remove an environment variable allowance (repeatable) |
--description <text> | Update description |
aide cap edit my-k8s --add-writable /tmp/helm-cache --description "K8s with Helm"
aide cap enable
aide cap enable <capability>[,capability...] [flags]
Adds one or more capabilities to the current profile (or globally with --global).
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of the project |
--profile <name> | Target a specific profile name (requires --global) |
--main | In a linked git worktree, edit the main checkout’s .aide.yaml instead of the worktree’s own |
--restart | Hot-restart the matching active aide session after saving (confirmation proof runs before config mutation) |
--ui-bridge-stdin | Read ui-bridge.key confirmation proof from stdin (with --restart) |
--pid <pid> | Target aide host PID (with --restart) |
--pane <id> | Target multiplexer pane ID (with --restart) |
--rex-block <id> | Target Rex block ID (with --restart) |
--cwd <dir> | Target session working directory or project root (with --restart) |
aide cap enable docker
aide cap enable docker,k8s --restart
aide cap disable
aide cap disable <capability>[,capability...] [flags]
Removes one or more capabilities from the current profile (or globally with --global).
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of the project |
--profile <name> | Target a specific profile name (requires --global) |
--main | In a linked git worktree, edit the main checkout’s .aide.yaml instead of the worktree’s own |
--restart | Hot-restart the matching active aide session after saving (confirmation proof runs before config mutation) |
--ui-bridge-stdin | Read ui-bridge.key confirmation proof from stdin (with --restart) |
--pid <pid> | Target aide host PID (with --restart) |
--pane <id> | Target multiplexer pane ID (with --restart) |
--rex-block <id> | Target Rex block ID (with --restart) |
--cwd <dir> | Target session working directory or project root (with --restart) |
aide cap disable docker
aide cap disable docker,k8s --restart
aide cap never-allow
aide cap never-allow <path> [flags]
Adds a global deny path that applies across all capabilities and profiles.
| Flag | Description |
|---|---|
--env | Treat argument as an environment variable name instead of a path |
--list | List current global deny entries |
--remove | Remove the entry instead of adding it |
aide cap never-allow ~/.ssh/id_ed25519
aide cap never-allow --env AWS_SECRET_ACCESS_KEY
aide cap never-allow --list
aide cap never-allow --remove /tmp/scratch
aide cap check
aide cap check <capability>[,capability...]
Previews the composed result of one or more capabilities without modifying config. Shows the merged readable, writable, denied paths and env allowlist. Capabilities are comma-separated, not space-separated.
aide cap check k8s,docker
aide cap audit
aide cap audit [flags]
Shows the current profile’s resolved capabilities – the effective set of paths and environment allowlists after composing all enabled capabilities.
| Flag | Description |
|---|---|
--profile <name> | Audit a specific profile instead of the current one |
aide cap audit
aide cap suggest-for-path
aide cap suggest-for-path <path>
Maps a filesystem path to capability names that would grant access to it.
aide cap suggest-for-path /var/run/docker.sock
aide cap variants
aide cap variants
Lists every (capability/variant) pair across all capabilities (--format json
supported).
aide cap variants
aide cap consent
Manages detection consents (granted variant selections) recorded for a project.
aide cap consent list
aide cap consent list [--project <path>]
Lists granted consents for a project (default: current directory). Supports
--format json.
| Flag | Description |
|---|---|
--project <path> | Project root (defaults to current directory) |
aide cap consent revoke
aide cap consent revoke <capability>
Revokes all granted consents for <capability> in the current project.
aide cap consent list
aide cap consent revoke python
aide profile
Manages profiles. Earlier releases called them contexts: aide context <subcommand> still works as a deprecated alias (it prints aide context is deprecated; use aide profile (same subcommands) to stderr), and
--context <name> still works on every command that took it, as a
hidden, deprecated alias of --profile <name>.
aide profile list
aide profile list
Lists all configured profiles with their agent, secret, match rules, and env var keys.
aide profile list
aide profile bind
aide profile bind [name] [--scope <scope>]
Attach the current folder to an existing profile. On an interactive terminal inside a git repository, presents a numbered menu to select the match scope (exact repository, parent team/subgroup prefix, organization glob, or local folder path) and interactively resolves any cross-profile match rule conflicts before saving. In non-interactive mode without --scope, binds the exact repository remote when inside a git repo whose origin has a host, or the exact folder path otherwise. Credentials embedded in the remote URL are never saved.
| Flag | Description |
|---|---|
--scope <scope> | Match scope without prompting: repo, org, <org>/<subteam> (or full <host>/<prefix>/*), or path. Supports shell tab-completion. |
aide profile bind work # interactive scope menu on TTY, else repo/path
aide profile bind work --scope repo # bind exact git repository remote
aide profile bind work --scope org # bind all repos in the git remote organization
aide profile bind work --scope acme/team # bind all repos in a git remote team/subgroup
aide profile bind work --scope path # bind exact folder path
aide profile bind # interactive picker over existing profiles
aide profile create
aide profile create [name]
Create a new profile. In TTY mode, prompts for any missing fields. In
non-interactive use, supply --agent and either --here or --no-here.
| Flag | Description |
|---|---|
--agent <name> | Set the agent without prompting. |
--secret-store <name> | Bind a secret store at create time. |
--here | Bind this folder as a match rule (auto-detect). |
--no-here | Skip cwd binding entirely. |
aide profile create work --agent claude --secret-store personal --here
aide profile create work --agent claude --no-here
aide profile set-secret
aide profile set-secret <secret-name> [--profile name]
Sets the secret on a profile.
| Flag | Description |
|---|---|
--profile <name> | Target profile (default: CWD-matched) |
aide profile set-secret personal --profile work
aide profile remove-secret
aide profile remove-secret [--profile name]
Removes the secret from a profile. Warns if env vars reference secret templates.
| Flag | Description |
|---|---|
--profile <name> | Target profile (default: CWD-matched) |
aide profile remove-secret --profile work
aide profile migrate
aide profile migrate [--write]
Converts config.yaml from contexts: to profiles:. Without --write
it prints the converted file and a summary; nothing is written. With
--write it keeps the original as config.yaml.bak (or
config.yaml.bak-<timestamp> when that exists), writes the new file
atomically and updates provisioning state so the rewrite is not reported
as drift. .aide.yaml is never changed. A contexts: section using YAML anchors, aliases or merge keys is
refused; expand it by hand first.
| Flag | Description |
|---|---|
--write | Write the migrated config (default: preview only) |
See Profiles § Migrating from contexts.
aide profile set-default
aide profile set-default [name] [--profile name]
Sets the fallback profile used when no match rules apply. Without an argument,
uses --profile, else the CWD-matched profile.
aide profile set-default personal
aide profile rename
aide profile rename <old-name> <new-name>
Renames a profile, updating the default if needed.
aide profile rename myproject acme
aide profile remove
aide profile remove <name>
Removes a profile. Warns if the profile’s agent is then unreferenced.
aide profile remove old-project
aide env
aide env set
aide env set KEY [VALUE] [flags]
Sets an environment variable on a profile. Provide a literal value as the
second argument, or use --secret-key, --secret-store, or --pick to
generate a template referencing a key in the profile’s bound secret store.
--global is required when using any secret flag.
| Flag | Description |
|---|---|
--secret-key <key> | Reference a key inside the bound (or explicit) secret store |
--secret-store <name> | Override which secret store to read from (without changing the profile binding) |
--pick | Interactively pick a key from the resolved store |
--profile <name> | Target profile (default: CWD-matched) |
--global | Apply to user-level config instead of the project |
--main | In a linked git worktree, edit the main checkout’s .aide.yaml instead of the worktree’s own |
aide env set ANTHROPIC_API_KEY --secret-key api_key --profile work --global
aide env list
aide env list [--profile name]
Lists env vars for a profile, annotating each with its source (literal value, secret key, or template).
| Flag | Description |
|---|---|
--profile <name> | Target profile (default: CWD-matched) |
aide env list --profile work
aide env remove
aide env remove KEY [--profile name]
Removes an env var from a profile.
| Flag | Description |
|---|---|
--profile <name> | Target profile (default: CWD-matched) |
--global | Apply to user-level config instead of the project |
--main | In a linked git worktree, edit the main checkout’s .aide.yaml instead of the worktree’s own |
aide env remove ANTHROPIC_API_KEY
aide secrets
aide secrets create
aide secrets create <name> --age-key <key>
Creates a new encrypted secrets file at ~/.config/aide/secrets/<name>.enc.yaml.
| Flag | Description |
|---|---|
--age-key <key> | Age public key for encryption (required) |
aide secrets create personal --age-key age1...
aide secrets edit
aide secrets edit <name>
Opens the secrets file in your editor (decrypts to a temp file, re-encrypts on save). Shows added and removed keys after editing.
aide secrets edit personal
aide secrets keys
aide secrets keys <name>
Lists key names in an encrypted secrets file without revealing values.
aide secrets keys personal
aide secrets list
aide secrets list
Lists all secrets files with recipients and which profiles reference each file.
aide secrets list
aide secrets rotate
aide secrets rotate <name> [--add-key key] [--remove-key key]
Rotates age recipients for a secrets file. At least one of --add-key or
--remove-key is required.
| Flag | Description |
|---|---|
--add-key <key> | Age public key to add as recipient (repeatable) |
--remove-key <key> | Age public key to remove as recipient (repeatable) |
aide secrets rotate personal --add-key age1new... --remove-key age1old...
aide trust
aide trust [path]
Trusts a .aide.yaml (default: the one in the current directory). The approval is keyed on the file’s location (parent directories symlink-resolved; a symlinked .aide.yaml is approved as itself, never via its target) and its contents, so any modification resets trust. In a linked git worktree the main checkout’s file is approved separately; pass its path.
aide trust
aide trust ~/src/project/.aide.yaml
aide deny
aide deny [path]
Permanently blocks a .aide.yaml (default: the one in the current directory) from being applied, regardless of content changes. aide trust on the file lifts the block.
aide deny
aide untrust
aide untrust [path]
Removes trust for a .aide.yaml (default: the one in the current directory) without blocking it. The next launch will show the untrusted warning.
aide untrust
aide sandbox
aide sandbox show
aide sandbox show [--profile name] [--with <caps>] [--without <caps>]
Shows the effective sandbox policy (writable, readable, denied paths; network mode) for the current or named profile.
| Flag | Description |
|---|---|
--profile <name> | Show policy for a specific profile |
--with <caps> | Additional capabilities to enable |
--without <caps> | Capabilities to disable |
aide sandbox show --profile work
aide sandbox show --with k8s,docker
aide sandbox test
aide sandbox test [--profile name] [--with <caps>] [--without <caps>]
Generates and prints the platform-specific sandbox profile without launching the agent. Useful for auditing what the OS sandbox will enforce.
| Flag | Description |
|---|---|
--profile <name> | Generate the sandbox profile for a specific profile |
--with <caps> | Additional capabilities to enable |
--without <caps> | Capabilities to disable |
aide sandbox test
aide sandbox test --with gpu
aide sandbox list
aide sandbox list
Lists all named sandbox profiles defined in config, plus the built-in default
profile.
aide sandbox list
aide sandbox create
aide sandbox create <name> [--from profile]
Creates a new named sandbox profile interactively (writable paths, denied paths, network mode). Optionally inherits from an existing profile.
| Flag | Description |
|---|---|
--from <profile> | Base profile to inherit from |
aide sandbox create strict --from default
aide sandbox edit
aide sandbox edit <name> [flags]
Edits an existing named sandbox profile by adding or removing paths and setting network mode. Cannot edit built-in profiles.
| Flag | Description |
|---|---|
--add-writable <path> | Add a writable path (repeatable) |
--add-readable <path> | Add a readable path (repeatable) |
--add-denied <path> | Add a denied path (repeatable) |
--remove-writable <path> | Remove a writable path (repeatable) |
--remove-readable <path> | Remove a readable path (repeatable) |
--remove-denied <path> | Remove a denied path (repeatable) |
--network <mode> | Set network mode (outbound, none, unrestricted) |
aide sandbox edit strict --add-denied ~/Downloads --network none
aide sandbox remove
aide sandbox remove <name>
Removes a named sandbox profile. Warns if any profiles reference it.
aide sandbox remove strict
aide sandbox allow
aide sandbox allow <path> [--write] [--remove] [--profile name] [flags]
Adds a path to readable_extra (default) or writable_extra for a profile’s
inline sandbox policy (project-level by default; --global applies to user
config). When the profile’s agent supports it (currently Claude), the path is
also granted in the agent’s own permission store; pass --no-agent-grant to
skip this.
| Flag | Description |
|---|---|
--write | Add to writable_extra instead of readable_extra |
--remove | Remove the exact path from readable_extra (or writable_extra with --write) instead of adding it. Changes config only; the agent’s permission store keeps the path. A profile using a named sandbox is left alone: use aide sandbox edit <name> --remove-readable or --remove-writable |
--global | Apply to user-level config instead of project |
--profile <name> | Target profile (requires --global) |
--no-agent-grant | Skip granting/revoking this path in the agent’s own permission store (e.g. Claude’s additionalDirectories) |
--restart | Hot-restart the matching active aide session after saving |
--ui-bridge-stdin | Read ui-bridge.key confirmation proof from stdin (with --restart) |
--pid <pid> | Target aide host PID (with --restart) |
--pane <id> | Target multiplexer pane ID (with --restart) |
--rex-block <id> | Target Rex block ID (with --restart) |
--cwd <dir> | Target session working directory or project root (with --restart) |
aide sandbox allow ~/shared-docs --write
aide sandbox allow ~/shared-docs --write --restart
aide sandbox deny
aide sandbox deny <path> [--profile name] [flags]
Adds a path to denied_extra for a profile’s inline sandbox policy. When the
profile’s agent supports it (currently Claude), the path is also revoked from
the agent’s own permission store; pass --no-agent-grant to skip this.
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of project |
--profile <name> | Target profile (requires --global) |
--no-agent-grant | Skip granting/revoking this path in the agent’s own permission store (e.g. Claude’s additionalDirectories) |
--restart | Hot-restart the matching active aide session after saving |
--ui-bridge-stdin | Read ui-bridge.key confirmation proof from stdin (with --restart) |
--pid <pid> | Target aide host PID (with --restart) |
--pane <id> | Target multiplexer pane ID (with --restart) |
--rex-block <id> | Target Rex block ID (with --restart) |
--cwd <dir> | Target session working directory or project root (with --restart) |
aide sandbox deny ~/private
aide sandbox network
aide sandbox network <mode> [--profile name] [flags]
Sets the network mode for a profile’s inline sandbox policy. Mode must be one of
outbound, none, or unrestricted.
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of project |
--profile <name> | Target profile (requires --global) |
--restart | Hot-restart the matching active aide session after saving |
--ui-bridge-stdin | Read ui-bridge.key confirmation proof from stdin (with --restart) |
--pid <pid> | Target aide host PID (with --restart) |
--pane <id> | Target multiplexer pane ID (with --restart) |
--rex-block <id> | Target Rex block ID (with --restart) |
--cwd <dir> | Target session working directory or project root (with --restart) |
aide sandbox network none --profile restricted --global
aide sandbox guards
aide sandbox guards [--profile name] [--with caps] [--without caps]
Lists all built-in and custom guards with type (always, default, opt-in),
status, and description. Supports --format json.
aide sandbox guard
aide sandbox guard <name> [--global] [--profile name]
Enables an opt-in or disabled guard on a project (default) or profile (--global).
aide sandbox unguard
aide sandbox unguard <name> [--global] [--profile name]
Disables a default or opt-in guard on a project (default) or profile (--global). Refuses always guards.
aide sandbox types
aide sandbox types
Lists the built-in guard types (always, default, opt-in) with their default state and description.
aide sandbox ports
aide sandbox ports <port>... [--global] [--profile name]
Sets the allowed outbound ports for a profile’s inline sandbox policy (implies
network mode outbound, project-level by default).
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of project |
--profile <name> | Target profile name (requires --global) |
aide sandbox ports 443 8080
aide sandbox reset
aide sandbox reset [--global] [--profile name]
Resets a profile’s sandbox configuration to defaults by removing its inline sandbox ref (project-level by default).
| Flag | Description |
|---|---|
--global | Apply to user-level config instead of project |
--profile <name> | Target profile name (requires --global) |
aide sandbox reset
aide agents
aide agents list
aide agents list
Lists configured agents (with binary path and which profiles use them) and agents detected on PATH that are not yet configured.
Supported launchable agents (12): Agy, Aider, Amp, Claude, Codex, Copilot,
Cursor (cursor-agent), Gemini, Goose, OMP, OpenCode, Pi. (hermes is also
recognized for hook provisioning.)
aide agents list
aide agents add
aide agents add <name> [--binary path]
Registers a new agent in config. If --binary is omitted, the binary name
defaults to the agent name.
| Flag | Description |
|---|---|
--binary <path> | Binary name or path (defaults to agent name) |
aide agents add my-agent --binary /usr/local/bin/my-agent
aide agents edit
aide agents edit <name> --binary <path>
Updates an agent’s binary path. --binary is required.
| Flag | Description |
|---|---|
--binary <path> | New binary name or path (required) |
aide agents edit claude --binary /opt/homebrew/bin/claude
aide agents remove
aide agents remove <name>
Removes an agent from config. Warns if any profiles still reference it.
aide agents remove old-agent
aide sync
aide sync [--profile <name>] [--plan] [--yes] [--force-secrets]
Reconciles the declared plugins: and mcp_servers: sets for a
profile against what is installed in the agent. See
Provisioning for the full model.
Flags:
--profile <name>: operate on a specific profile (default: match by CWD).--plan: print the plan, exit without mutating state.--yes: non-interactive (skip confirmation).--force-secrets: force re-resolving secret-templated MCP env values even if neitherconfig.yamlnor the encrypted secrets file changed. Sync normally skips decryption in that case, trusting the agent’s already-installed values; use this to repair a manually-edited/corrupted installed value.
State is persisted to ~/.local/state/aide/managed.json atomically and
only on full success. On any failure, the engine rolls back via an
in-memory inverse journal.
aide skillshare targets
aide skillshare targets [--write]
Generates Skillshare account targets
(agent: + config_dir:), named aide-<profile>-<harness>, for every
profile and harness (claude, codex, omp, pi) that launches from a
config dir of its own. Without --write it prints the targets, what
would change, and what is not written and why; nothing is written.
With --write it merges them into Skillshare’s config
($SKILLSHARE_CONFIG, else $XDG_CONFIG_HOME/skillshare/config.yaml,
else ~/.config/skillshare/config.yaml) atomically, keeping the
original as config.yaml.bak, then tells you to run skillshare sync.
Unrelated configuration and your own targets are kept; stale aide-*
targets are removed. No credential is written.
| Flag | Description |
|---|---|
--write | Merge the targets into Skillshare’s config (default: preview only) |
See Skillshare.
aide adopt
aide adopt [--profile <name>] [--yes]
Walks agent-installed but undeclared plugins / MCP servers /
marketplaces and prompts to add them to provisioning.yaml, then records
them as managed in state. Use this to bring a hand-installed setup
under aide management.
Flags:
--profile <name>: defaults to current-CWD match.--yes: accept everything without prompting.
aide plugin
aide plugin list
aide plugin list [--profile <name>]
Three-column view (declared / installed / managed) per profile. For
marketplace-class agents, includes a MARKETPLACES section first with
the agent’s canonical marketplace name and any installed-but-unmanaged
entries flagged as unmanaged.
aide mcp
aide mcp list
aide mcp list [--profile <name>]
Three-column view (declared / installed / managed) for MCP servers.
Same shape as aide plugin list.
aide hook
aide hook list
aide hook list [--profile <name>]
Shows hooks declared in provisioning.yaml and profiles/<name>.yaml for the profile, with a MANAGED column
indicating whether the hook is currently written to the agent’s config. The
list is sourced from the config files, not from the agent’s live state, so it
reflects what aide knows about rather than what the agent actually runs.
Flags:
--profile <name>: operate on a specific profile (default: match by CWD).
aide hook add
aide hook add --event <event> --command <cmd> [--matcher <matcher>] [--profile <name>]
Appends a hook entry to profiles/<name>.yaml under the profile’s hooks.extra
block. Does not write anything to the agent: run aide sync to apply.
Flags:
--event <event>: hook event (required):pre_tool,post_tool,session_start,session_end,notification,stop.--command <cmd>: shell command to run (required). Shell metacharacters (;|&\$(){}` etc.) are rejected to prevent injection.--matcher <matcher>: narrow the hook to a tool class (optional).shelltargets the Bash/shell tool only (mapped to the agent’s native name, e.g.Bashfor Claude).--profile <name>: defaults to CWD match.
aide hook remove
aide hook remove --event <event> --command <cmd> [--matcher <matcher>] [--profile <name>]
Removes the matching hook entry from profiles/<name>.yaml. Does not touch the agent
until you run aide sync.
Flags mirror hook add. The hook is identified by the (event, matcher, command) triple: all three must match the entry to remove.
aide hook session-track
aide hook session-track
Records the active harness session ID from a hook event (SessionStart) read
from stdin ({"session_id": "..."}). Validates the ID, writes
$AIDE_RUNTIME_DIR/session_id atomically (0600), and updates
$XDG_STATE_HOME/aide/sessions/$AIDE_SESSION_ID.json when running inside an
aide session. Always exits 0 safely outside active sessions so hooks never
block agent startup.
aide config
aide config [section] [--section <name>] [--tab <name>] [--area <name>] [--profile <name>]
With no subcommand, opens the full-screen 5-area Standalone Configuration and
Onboarding Dashboard (also reachable mid-session via <prefix> u — default
Ctrl+B u — or Ctrl+O inside the modal). Requires a real interactive TTY on
both stdin and stdout; exits 1 in non-TTY runs.
| Section / Flag | Description |
|---|---|
[section] | Optional positional section: home/auto (default), onboarding (1/onboard/init/secrets/vault), profiles (2/profile/agents/gateways/gateway), capabilities (3/cap/caps/sandbox), provision (4/provisioning/sync/doctor/health/keys/mux/preferences), usage (5/spend) |
--section <name> | Initial section (equivalent to positional [section]) |
--tab <name> | Alias for --section |
--area <name> | Alias for --section |
--profile <name> | Initial profile to focus |
aide config
aide config profiles --profile work
aide config --tab usage
aide config capabilities
aide config sandbox
aide config gateways
aide config secrets
aide config doctor
aide config keys
aide config show
aide config show
Prints the contents of all existing global config files (config.yaml, sandbox.yaml, provisioning.yaml, and profiles/*.yaml) with their paths as headers and YAML syntax highlighting when stdout is a terminal.
aide config show
aide config edit
aide config edit
Opens config.yaml in $EDITOR (falls back to $VISUAL, then vi).
Validates the config after saving.
aide config edit
aide config migrate
aide config migrate [--write]
Also converts legacy gateways (base_url:), LLM provider credentials, env: provider
switches and endpoints, and default_credentials: into gateways: plus an explicit gateway_choice:;
backups go to ~/.local/state/aide/migrations/<UTC-timestamp>/. aide does this
on its own at the next launch or config write; on a read-only config it prints
a hint to run this command. Splits a single-file config.yaml (upgrading contexts: to profiles: if needed) into the modular layout (config.yaml, sandbox.yaml, provisioning.yaml, and profiles/<name>.yaml). Without --write it prints the preview of each file (with YAML syntax highlighting on a terminal) and a summary; nothing is written. With --write it backs up the original as config.yaml.bak (or config.yaml.bak-<timestamp>), writes the split files atomically, and updates provisioning state (managed.json) so the split is not reported as drift.
| Flag | Description |
|---|---|
--write | Write the split config files (default: preview only) |
aide config migrate
aide config migrate --write
aide config schema
Inspect, export, or stamp embedded JSON Schemas (Draft 2020-12) for aide’s five YAML configuration file shapes (config, profile, sandbox, provisioning, project).
aide config schema show
aide config schema show <kind>
Prints the embedded JSON Schema for <kind> (config, profile, sandbox, provisioning, or project) to stdout.
aide config schema export
aide config schema export [--dir <path>]
Writes all five embedded *.schema.json files atomically to <path> (default: ~/.config/aide/schemas). Supports --format json.
| Flag | Description |
|---|---|
--dir <path> | Target directory (default: ~/.config/aide/schemas) |
aide config schema stamp
aide config schema stamp [--local] [--dir <path>] [--project] [--force]
Prepends # yaml-language-server: $schema=... to existing global config files (config.yaml, sandbox.yaml, provisioning.yaml, profiles/*.yaml). Files that already have a # yaml-language-server: header are skipped unless --force is set. When --project is passed and .aide.yaml is already trusted, its trust entry is updated after stamping (untrusted files are never auto-trusted). Supports --format json.
| Flag | Description |
|---|---|
--local | Export schemas locally and stamp file:// URIs instead of hosted GitHub URLs |
--dir <path> | Local export directory when used with --local (default: ~/.config/aide/schemas) |
--project | Also stamp the current project’s .aide.yaml if present |
--force | Replace existing # yaml-language-server: directives |
aide config schema show profile
aide config schema export
aide config schema stamp --project
aide config schema stamp --local --force
aide statusline
aide statusline [agent]
aide statusline [agent] [flags]
aide statusline claude [flags]
Renders the current aide session state as a compact statusline string for use
with a coding agent’s statusline feature (e.g. Claude Code’s statusLine
setting). Reads session state from AIDE_* environment variables injected by
aide before exec. claude is currently the only agent with rendering
support; any other resolved agent name (explicit --agent, positional
argument, or AIDE_AGENT) returns an error instead of silently rendering.
Piped mode (when stdin is a pipe: a coding agent’s invocation path):
- Reads all of stdin (JSON from the invoking agent).
- Reads
AIDE_*env vars for session state. - Loads merged config (
~/.config/aide/config.yaml→.aide.yaml). - Walks the configured module order, renders each active module to a string.
- Joins with
|and writes to stdout.
TTY mode (when stdin is a terminal: a human previewing the statusline
directly): stdin is not read at all in this mode. Since there’s no
aide-launched session to read real AIDE_* env vars from, TTY mode instead
simulates one: it resolves the CWD-matched aide profile and computes what
a real aide launch would set (sandbox, network, capabilities, trust,
auto-approve) without actually launching: no secret decryption, no
interactive capability-variant prompts. The agent is resolved via
--agent/positional argument, AIDE_AGENT, the aide profile matched to the
current working directory, or claude as the final default.
--profile <name> forces this same simulation for an explicitly named
profile, in both TTY and piped mode: useful for checking what the
statusline would look like under a profile other than the one CWD would
match. Errors if the name doesn’t exist. Unlike the CWD-matched TTY case,
a named profile is looked up directly with no .aide.yaml project-override
merge (matching aide cap list/aide cap audit’s treatment of a named
profile). When --agent isn’t also given, the agent comes from the named
profile’s own configuration.
Bare aide statusline (no positional argument, no --agent, no
--profile) auto-detects the agent: AIDE_AGENT when set (an
aide-launched session), otherwise the shape of piped stdin JSON identifies
Claude Code, otherwise (TTY only) the CWD-matched aide profile’s configured
agent, otherwise claude.
| Flag | Description |
|---|---|
--agent <name> | Coding agent to render for (default: auto-detected) |
--module <name> | Render only this module; repeatable (--module sandbox --module network). Valid names: sandbox, network, caps, trust, context (the profile name), gateway (opt-in gateway choice ⇄<gw>, ⇄login, ⇄?), auto_approve. An unrecognized name is an error, not a silently blank widget. |
--install | Patch the target profile’s settings.json to set statusLine.command |
--remove | Clear the statusLine key from the target profile’s settings.json |
--profile <name> | For --install/--remove: target a specific aide profile (default: matched by CWD), resolving the correct CLAUDE_CONFIG_DIR for profiles with their own config dir automatically. For render mode: preview that profile’s simulated session instead of the CWD-matched one, in both TTY and piped mode. |
Install behaviour:
Existing statusLine.command | Action |
|---|---|
| Not set | Set to "aide statusline claude" |
"aide statusline claude" | No-op; prints confirmation |
| Anything else | Generate ~/.config/aide/statusline-wrapper.sh that pipes stdin to both the existing command and aide; update settings to point to wrapper |
Sample output:
🔒 | 🌐 | ⚡ k8s,docker # sandbox on, outbound, caps active
🔒 | 🌐 | ⚡ none | ⚠️ # untrusted .aide.yaml
🚨 | 🔓 | 🌍 | ⚡ none # auto-approve on, sandbox off, unrestricted
aide statusline claude --install # one-time setup (CWD-matched profile)
aide statusline claude --install --profile work # install for a specific profile
aide statusline claude --remove # undo
aide statusline claude --remove --profile work # undo for a specific profile
aide completion
Generates shell completion scripts. Supported shells: bash, zsh, fish, powershell.
aide completion bash|zsh|fish|powershell
Outputs shell completion script for the specified shell. Source the output or follow the instructions printed with the script.
aide completion fish | source
aide session
Inspect and control running interactive aide PTY session hosts via their
daemonless per-instance Unix socket ($XDG_STATE_HOME/aide/ctl/<pid>/api.sock).
Target resolution precedence (shared across inspect, stage, apply,
discard, aide restart, and --restart):
--pid > --rex-block > --pane (REX_BLOCK, HERDR_PANE_ID,
TMUX_PANE, WEZTERM_PANE, ZELLIJ_PANE_ID, KITTY_WINDOW_ID) > --cwd
(matching cwd or project_root).
aide session list
aide session list [--format json]
Lists active aide session hosts discovered from ctl/*/meta.json (pruning dead
PIDs and PID-reuse mismatches). Displays PID, HARNESS, PROFILE,
PROJECT_ROOT, TTY, and PANES.
aide session inspect
aide session inspect [--pid <pid> | --rex-block <id> | --pane <id> | --cwd <dir>] [--format json]
Prints the live policy, active capabilities, guards, and any staged ChangeSet
for the target session (schema_version: 1 in JSON).
aide session stage
aide session stage [target-flags] [change-flags] [--open-tui]
Stages permission or runtime changes on the target session without restarting
the child agent, and emits OSC 7501 state=blocked (rejected with 409 Conflict while the session host is restarting or exiting). Pass --open-tui to
open the centered mid-session modal to review and confirm staged changes.
| Flag | Description |
|---|---|
--with <caps> | Capabilities to enable (repeatable / comma-separated) |
--without <caps> | Capabilities to disable |
--variant <cap=variant> | Pin capability variants |
--allow-read <paths> | Extra readable paths to allow |
--allow-write <paths> | Extra writable paths to allow |
--allow-deny <paths> | Extra paths to deny |
--network <mode> | Network mode (outbound, none, or unrestricted) |
--allow-port <ports> | Allowed outbound TCP ports (alias --port) |
--unguard <guards> | Default guards to disable |
--reguard <guards> | Default guards to re-enable |
--gateway <name|none> | LLM gateway name (or 'none') |
--agent <name> | Target agent/harness name (alias --harness) |
--auto-approve | Enable or disable agent auto-approve (--auto-approve=true|false) |
--scope <scope> | Where changes apply: session, project, or profile |
--open-tui | Open the in-session centered modal to review staged changes |
aide session apply
aide session apply [target-flags] [change-flags] [--ui-bridge-stdin] [--quiet]
Confirms and applies staged or flag-supplied changes, hot-restarting the agent in
place. On a separate interactive TTY, prints the diff and resume summary and
prompts [y/N]. With --ui-bridge-stdin, reads ui-bridge.key from stdin to
compute the HMAC-SHA256 confirmation proof. With --quiet (-q), suppresses
the in-pane restarting banner during hot restart. Non-TTY callers and same-TTY
callers without --ui-bridge-stdin exit with code 78 (EX_CONFIG). Requests
sent while a restart is already in flight or the session host is exiting are
rejected with 409 Conflict.
aide session discard
aide session discard [target-flags]
Clears any staged changes on the target session and emits OSC 7501
state=clear.
aide restart
aide restart [--pid <pid> | --rex-block <id> | --pane <id> | --cwd <dir>] [--with <caps>] [--ui-bridge-stdin] [--quiet]
Confirms and hot-restarts an active aide session (reloading config from disk,
plus optional --with capabilities or any staged ChangeSet). Uses the same
separate-TTY [y/N] prompt or --ui-bridge-stdin proof as aide session apply
(exits 78 otherwise), and supports --quiet (-q) to suppress the in-pane
restarting banner.
aide mux
aide mux <name> <install|remove|status> [--wire] [--force]
Manages native keybindings and UI bridges across supported terminal multiplexers:
rex, herdr, tmux, wezterm, zellij, kitty. Behavior is configurable per
multiplexer under top-level mux.<name> (enabled, resume, actions, prefix,
keys) in config.yaml.
install [--wire] [--force]: Installs the multiplexer’s native integration snippet/plugin and initializesui-bridge.key.- For
rex, writes~/.config/rex/aide.lua(resume.trust.aideplus Command Palette actionsaide_capabilities,aide_sandbox,aide_gateway,aide_diagnostics, andaide_reload, along with aliasesaide_permissions,aide_allow_path,aide_runtime, andaide_restart), and with--wireaddsrequire("aide").setup()into~/.config/rex/init.lua. - Zero keybindings are bound by default so
aidenever collides with existing multiplexer bindings. Configuremux.<name>.prefix/mux.<name>.keysinconfig.yamlto bind keys. Pre-flight conflict checks abort if a configured Rex binding collides with Rex built-ins orinit.luaunless--forceis passed;--forcealso overridesmux.<name>.enabled: false.
- For
remove: Removes managed integration files and wiring without clobbering unrelated user configuration.status: Shows installation status (--format jsonsupported on all actions).
aide mux rex install --wire
aide mux herdr install
aide mux tmux install
aide mux wezterm install
aide mux zellij install
aide mux kitty install
aide mux tmux status
aide mux tmux remove