Beyond the default OS sandbox, aide manages per-project accounts, model gateways, encrypted config, and terminal integrations from a single launcher.
Start with code-only access and grant named capabilities like docker, aws, k8s, or ssh only when needed. Changes require human confirmation and never modify the running process in place.
Debugging a deployment without an OS sandbox.$ claude --dangerously-skip-permissions ● Let me check the AWS configuration. ● Bash(cat ~/.aws/credentials) [default] aws_access_key_id = AKIA…Cloud credentials are read and sent into the model context.With interactive prompts enabled instead: Allow Bash(ls)? Allow Allow Read(main.go)? Allow Allow Bash(go test)? Allow⚠ 200+ prompts per session cause approval fatigue.
Declare the tools needed for the task at launch.$ aide --with docker,aws ✓ docker ~/.docker ← --with ✓ aws ~/.aws ← --withMid-session, an ungranted tool is blocked by the OS. ● Bash(kubectl get pods) permission deniedPermission denied (read): ~/.kube/config — press Ctrl+B m to allowCtrl+B m [x] k8s scope: ▸ session↻ Restarting claude with updated permissions… ● Bash(kubectl get pods) okDisable a capability for a single run.$ aide --without dockerBlock sensitive paths permanently with never-allow.$ aide cap never-allow ~/.kube/prod-config$ aide --with k8s ✗ denied /Users/you/.kube/prod-config (never-allow)
aide --with docker,awsaide --without dockerCtrl+B), then pick scope: session, project, or profileaide restart --with dockeraide cap enable docker / aide cap disable dockeraide sandbox allow ~/datasets (add --write for write access)aide sandbox deny ~/notesaide sandbox network noneaide cap never-allow ~/.kube/prod-configaide statusSession control sockets and secrets/ are inaccessible to the agent, and aide's config and the project's .aide.yaml are write-protected. The agent cannot edit its own policy.
Mid-session permission changes are staged, shown to you, and applied only after you confirm them from the keyboard.
When a cloned repository includes a .aide.yaml, aide displays it and applies nothing until you explicitly trust it.
aide trust$ aide sandbox test (version 1) (deny default) …
Prints the exact policy the operating system will enforce before launching the agent.
Outbound network access is enabled by default so agents can reach package registries and APIs. Disable it with aide sandbox network none.
Git over SSH requires --with ssh. Adding a capability mid-session restarts the agent and resumes the conversation.
macOS (Seatbelt) and Linux 6.7+ (Landlock ABI ≥ 4) enforce both file rules and per-port TCP filtering. Older Linux kernels (5.13–6.6) enforce file rules via Landlock and full network blocking (network: none) via bubblewrap. If neither Landlock nor bubblewrap is available, aide prints a warning and runs without OS isolation.
Under Linux Landlock, a rule cannot block a single file inside an already-writable directory. As a result, project-local .env files, .git/hooks, .aide.yaml, and never-allow paths inside writable folders are enforced on macOS and under bubblewrap, not under Landlock. Modified .aide.yaml files still lose trust until re-approved, and aide sandbox test flags unenforced rules. See Platform details.
aide is a launcher, not a replacement. It starts the coding agent you already use with its existing login and model, after resolving the profile and building the OS sandbox.
aide instead of claude or codex. Arguments after -- pass straight to the agent.aide which shows the matched profile, agent binary, secrets, and environment variables without starting the agent.
aide doctor checks for configuration or sandbox problems in the current directory and suggests the command to fix each one.
$ aide whichProfile: workMatched: path glob match: ~/work/*Agent: claude (/usr/local/bin/claude)Secret: workEnv: AWS_PROFILE ← from secrets.aws_profile
By default, a coding agent stores its login, session history, plugins, and MCP servers in one shared home directory. aide gives each profile its own isolated home folder and blocks access to other profiles inside the sandbox.
Only the active profile's directory is readable inside the sandbox; other profile directories are denied by the OS.
Work repository using the company account.$ export ANTHROPIC_API_KEY=sk-ant-…work$ cd ~/work/api && claude … session uses an MCP server connected to the staging databasePersonal repository later, sharing the same agent home directory.$ cd ~/code/my-app && claude MCP servers: staging-db connected Recent sessions: ~/work/api (2 hours ago)Work MCP servers, history, and API keys carry over into personal repos.
Work repository matched to the work profile.$ cd ~/work/api && aide🔧 aide · work (🤖 claude → /usr/local/bin/claude (dir: ~/.claude-work)) 📁 remote match: github.com/acme/*Personal repository matched to a separate personal profile.$ cd ~/code/my-app && aide🔧 aide · personal (🤖 claude → /usr/local/bin/claude (dir: ~/.claude-personal)) 📁 remote match: github.com/you/*Separate login, history, and MCP servers; the work directory is blocked. ● Bash(ls ~/.claude-work) Operation not permitted
Bind a profile to a single repository, a whole git organization, or a directory path. Matching by git remote ensures fresh clones and worktrees automatically inherit the right profile.
Forgotten shell exports are stripped at launch so personal repositories do not accidentally bill a company key.
$ aide profile create work --agent claude --no-here$ aide profile bind workSelect match scope: [1] This repository only (github.com/acme/api) (default) [2] All repositories in github.com/acme/* [3] This folder path only (/home/you/work/api)Choose [1]: 2Bound this folder to profile "work" (matched by remote github.com/acme/*)$ aide whichProfile: workMatched: remote match: github.com/acme/*
Each agent stores custom endpoints and model lists in a different file and format. With aide, you register a corporate proxy, OpenRouter, Bedrock, Vertex, or local server once; aide encrypts the key and syncs configuration across supported agents.
Configuring a corporate LLM gateway manually across agents.$ vim ~/.claude/settings.json "ANTHROPIC_BASE_URL": "https://llm.example.com"$ vim ~/.codex/config.toml base_url = "https://llm.example.com"$ vim ~/.config/opencode/opencode.json "baseURL": "https://llm.example.com"Three config files, three schemas, and plaintext tokens in each.Token rotation requires editing every file again.
Register the gateway once, piping the token from a password manager (e.g. 1Password CLI).$ op read op://Eng/Gateway/credential | aide gateway add corp --url https://llm.example.com --key-stdinaide writes native gateway config for each supported agent.$ aide gateway list corp https://llm.example.com claude synced codex synced opencode synced pi synced omp syncedRotate the token across all five agents with one command.$ aide gateway edit corp --rotate-token
aide never silently picks a gateway, even when only one is configured. Interactive sessions prompt with nothing preselected, and non-interactive runs exit with an error.
Keys are passed via stdin rather than CLI flags so they stay out of shell history, stored encrypted, and decrypted only in memory at launch.
Supported agents (claude, codex, pi, omp, and opencode) each receive native gateway settings and model lists. Add another agent later and sync with one command.
aide gateway syncBuilt-in presets cover Anthropic, OpenAI, OpenRouter, Bedrock, Vertex, and keyless local servers like Ollama. Bypass a gateway for one run with aide --gateway none. Read the Gateways guide →
Profiles, sandbox rules, and encrypted credentials live in small YAML files under ~/.config/aide/. Commit them to git to reproduce the same setup on a new laptop, container, or teammate's machine.
~/.config/aide/ ├── profiles/ repo → account mapping ├── sandbox.yaml default sandbox & custom capabilities ├── secrets/ age-encrypted credentials ├── provisioning.yaml plugins, MCP servers, hooks └── config.yaml defaults and preferences
Plain YAML that you can review in git. Commands like aide cap enable --global and aide sandbox deny --global update these files directly (without --global, they update the current repo's .aide.yaml).
Clone your aide config on a new machine.$ git clone git@github.com:you/aide-config.git ~/.config/aideProvide your age private key locally; git stores only encrypted files.$ cd ~/work/api && aide🔧 aide · work (🤖 claude → /usr/local/bin/claude (dir: ~/.claude-work)) 📁 remote match: github.com/acme/* 🛡 sandbox: primary (Seatbelt), network outbound only ✓ docker ~/.docker ✗ denied /Users/you/.kube/prod-config (never-allow)Same profiles, capabilities, and deny rules on every machine.
A repository can include a .aide.yaml declaring the capabilities its tasks require.
aide shows the requested rules and applies nothing until you run aide trust. If the file changes later, trust is invalidated and you are prompted again.
# .aide.yaml committed with the projectcapabilities: [docker, k8s] $ aide trust# approve this version of the file$ aide deny# or block it permanently
API keys are encrypted with the age encryption tool via SOPS and decrypted in memory at launch, making the files safe to commit.
aide secrets create workAdd a teammate's public age key so everyone decrypts with their own private key without sharing plaintext tokens.
aide secrets rotate work --add-key age1…Ship your config in an image and inject the private key at runtime to apply the same sandbox boundaries to unattended runs.
aide --agent claude -- -p "run tests"Display active profile, sandbox status, network mode, and enabled capabilities directly in Claude Code's status bar.
aide statusline claude --installIntegrate keybindings and menus with tmux, WezTerm, Zellij, kitty, Rex, and herdr while blocking sandboxed agents from controlling other panes.
Multiplexers guide →Predefined bundles for cloud CLIs, Docker, Kubernetes, Terraform, language runtimes, and more, plus custom capability extensions.
Capabilities reference →Checks your sandbox backend and enforcement level, profile match, and credentials in the current directory and offers step-by-step fixes.
aide doctor --fixGenerate a shareable, secret-redacted diagnostic report when an agent fails to launch or behaves unexpectedly.
aide --diagnoseTrack token usage and cost per profile or across all accounts in an interactive dashboard or as plain text.
aide usage