_____ _ _ ____
| ____|_ _(_) |_| __ ) _____ __
| _| \ \/ / | __| _ \ / _ \ \/ /
| |___ > <| | |_| |_) | (_) > <
|_____/_/\_\_|\__|____/ \___/_/\_\
By Cloud Exit / https://cloud-exit.com
Multi-Agent Container Sandbox by Cloud Exit
Run AI coding assistants (Claude, Codex, Copilot, Cursor, Kimi, OpenCode, Pi, Qwen) in isolated containers with defense-in-depth security.
# Install (Linux/macOS) — download the latest release binary
# See Installation section below for full instructions
mkdir -p ~/.local/bin
curl -fsSL https://github.com/Cloud-Exit/ExitBox/releases/latest/download/exitbox-$(uname -s | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') -o ~/.local/bin/exitbox
chmod +x ~/.local/bin/exitbox
# Run the setup wizard (first time)
exitbox setup
# Navigate to your project
cd /path/to/your/project
# Run an agent (builds image automatically on first run)
exitbox run claude
# Or run other agents
exitbox run codex
exitbox run copilot
exitbox run cursor
exitbox run kimi
exitbox run opencode
exitbox run pi
exitbox run qwenExitBox automatically:
- Builds the container image if needed
- Imports your existing config (
~/.claude,~/.codex, etc.) on first run - Mounts your project directory
- Sets up the network firewall (Squid proxy)
- Rootless Containers — runs without host root privileges using Podman's user namespaces (Docker fallback supported)
- Squid Proxy Firewall — strict domain allowlisting with hard egress isolation; agents can only reach approved destinations
- Runtime Domain Requests — agents request access to new domains at runtime via
exitbox-allow; host user approves via popup - Encrypted Vault — AES-256 + Argon2id encrypted secret storage with per-access approval popups; agents can read and write secrets from inside the container
- Sandbox-Aware Agents — automatic instruction injection tells agents about container restrictions, vault usage, and security rules
- Named Resumable Sessions — save and resume agent conversations by name across container restarts
- Multi-Agent Support — run Claude Code, OpenAI Codex, GitHub Copilot CLI, Cursor CLI, Kimi Code CLI, OpenCode, Pi Coding Agent, or Qwen Code in the same isolated environment
- Workspace Isolation — named contexts (personal, work, client) with separate credentials, tools, and vault per workspace
- Codex Account Switching — save and switch between multiple Codex logins inside a workspace with
exitbox codex accounts - IDE Integration — Unix socket relay connects host editors (VS Code, Cursor, Windsurf) to agents inside the container for go-to-definition, diagnostics, and code actions
- Full Git Support — optional mode that mounts host
.gitconfigand SSH agent for seamless git operations inside the container - GitHub CLI Authentication — pre-flight vault import for
GITHUB_TOKENwith automatic in-container export soghand HTTPS git work transparently - RTK Token Optimizer (Experimental) — optional rtk integration reduces CLI output token consumption by 60-90%
- Graphify Knowledge Graph (Experimental) — optional graphify external tool; when selected, the
/graphifyskill is auto-installed into compatible agents and removed when deselected - External Tools — configure third-party tools (GitHub CLI, etc.) via the setup wizard; packages are auto-installed at image build time
- Supply-Chain Hardened Installs — Claude Code and OpenCode installed via direct download with SHA-256 checksum verification
- Alpine Base Image — minimal ~5 MB base with 3-layer image hierarchy and incremental rebuilds
- Setup Wizard — interactive TUI that configures roles, languages, tools, agents, firewall, and vault in one pass
- Cross-Platform — native binaries for Linux, macOS, and Windows
The project's security posture is rated High / Robust, employing a "Defense in Depth" strategy:
- DNS Isolation (The "Moat"): Containers cannot resolve external domain names directly. This forces all traffic through the proxy, as the container "knows" nothing of the outside internet.
- Mandatory Proxy Usage: Since direct DNS fails, tools are forced to use the configured
http_proxy. Bypassing these variables results in immediate connection failure. - Proxy Access Control: The Squid proxy actively inspects destinations, enforcing a strict allow/deny policy (returning
403 Forbiddenfor blocked domains). - Capability Restrictions:
CAP_NET_RAWand other capabilities are dropped, preventing raw socket creation and network enumeration attacks (e.g.,pingis disabled).
Additional hardening:
- No Privilege Escalation:
--security-opt=no-new-privileges:trueenforced - Capability Dropping:
--cap-drop=ALLremoves all Linux capabilities - Resource Limits: Default 8GB RAM / 4 CPUs to prevent DoS
- Secure Defaults: SSH keys (
~/.ssh) and AWS credentials (~/.aws) are NOT mounted by default
ExitBox automatically injects sandbox instructions into each agent on container start. This tells the agent it is running inside a restricted container so it won't attempt actions that can't work (e.g., running docker, podman, or managing infrastructure).
Instructions are written to each agent's native global instructions file:
| Agent | Instructions file |
|---|---|
| Claude | ~/.claude/CLAUDE.md |
| Codex | ~/.codex/AGENTS.md |
| OpenCode | ~/.config/opencode/AGENTS.md |
If the file already exists (e.g., from your own global instructions), ExitBox appends the sandbox notice once. The instructions inform the agent about network restrictions, dropped capabilities, and the read-only nature of the environment so it can focus on writing and debugging code within /workspace.
ExitBox can relay Unix sockets between the host and container so editors running on the host (VS Code, Cursor, Windsurf, etc.) can communicate with agents inside the sandbox. This enables features like go-to-definition, diagnostics, and code actions to work across the container boundary.
The relay is automatic — when an agent starts, ExitBox detects running IDE instances and establishes a socket tunnel. No manual configuration is needed.
By default, containers have no access to host git credentials. Full git support mode mounts the host .gitconfig and SSH agent into the container so git operations (clone, push, pull) work transparently with your existing configuration.
# Enable per-session:
exitbox run claude --full-git-support
# Or enable permanently in the setup wizard:
exitbox setup
# → Settings → Full Git SupportWhen full git support is enabled and the network firewall is active, SSH traffic (e.g., git push to GitHub) is automatically tunneled through the Squid proxy. This works even without SSH_AUTH_SOCK being set on the host.
External tools are third-party CLI tools (Bun, GitHub CLI, etc.) that can be selected during setup. Their required packages are automatically installed at image build time.
# Configure via the setup wizard:
exitbox setup
# → Settings → External Tools → select toolsWhen GitHub CLI is selected as an external tool and the vault is enabled for the workspace, ExitBox provides seamless gh authentication:
Pre-flight prompt (host side): Before launching an agent, ExitBox checks whether GITHUB_TOKEN exists in the workspace vault. If missing, it offers to import it:
GitHub CLI is enabled but GITHUB_TOKEN is not in your vault.
Import it now? [y/N]: y
Enter vault password: ****
Paste your GitHub token: ****
✓ GITHUB_TOKEN stored in vault for workspace 'default'
Auto-export (container side): On container startup, the entrypoint fetches GITHUB_TOKEN from the vault via IPC (triggering an approval popup on the host), exports it as GH_TOKEN, and runs gh auth setup-git to configure git credential helpers. This means gh commands and HTTPS git operations authenticate transparently.
# Inside the container, these just work:
gh pr list
gh issue create --title "Bug report"
git push origin main # uses gh credential helper for HTTPSThe token is never stored in the container filesystem. Every vault read triggers a host-side approval popup, giving you full control over secret access.
OpenCode supports OAuth login for providers like Google (Gemini). The OAuth flow starts a local callback server inside the container, and ExitBox automatically publishes the callback port (8085) to the host so the browser redirect works.
exitbox run opencode -- auth login # starts OAuth flow, opens browser URL on host
exitbox run opencode -- auth logout # remove stored credentialsWhen the firewall is active, Google OAuth domains (google.com, googleapis.com) are included in the default allowlist. If you use a provider with a different OAuth domain, add it via exitbox-allow <domain> or the -a flag.
Codex CLI stores its login state in .codex, but ExitBox can keep multiple named Codex accounts per workspace and swap the active one without touching the rest of the workspace.
# Save the current login under a name
exitbox codex accounts save personal
# Create an empty slot for another login
exitbox codex accounts add work
# Log into that slot from your host shell
# Do not type /login inside the Codex prompt
exitbox run codex --workspace default -- login
exitbox codex accounts save work
# Switch back later
exitbox codex accounts switch personal
exitbox codex accounts list
exitbox codex accounts currentHow it works:
- The active account for a workspace stays in that workspace's normal Codex config directory.
- Saved accounts are stored as named sidecar copies under the same workspace profile.
save <name>snapshots the currently active Codex login.add <name>creates a new empty active slot and clears the current Codex login so you can runcodex login.switch <name>saves the current active login back to its named slot, then restores the requested one.listshows saved accounts and whether one is current, previous, or still pending login.currentshows the current and previous account names recorded for that workspace.
Notes:
- Account switching is workspace-local.
personalin workspaceworkis separate frompersonalin workspacedefault. - Use
--workspace <name>with any of these commands to manage accounts for a non-active workspace. - If the current Codex login has never been named,
addorswitchwill ask you to save it first withexitbox codex accounts save <name>.
rtk wraps common CLI commands to produce compact, token-optimized output — reducing agent token consumption by 60-90%. When enabled, rtk is built from source at image build time using a musl-native Rust toolchain. It adds zero image size overhead when disabled.
# Enable via the setup wizard:
exitbox setup
# → Settings → RTK → EnableWhen RTK is enabled, sandbox instructions injected into the agent automatically guide it to prefix supported commands with rtk:
rtk git status # compact git output
rtk go test ./... # compact test results
rtk ls /workspace # compact directory listing
rtk gh pr list # compact GitHub CLI output
rtk grep <pattern> # compact search resultsSupported command categories: git, go, gh, grep, ls, curl, cargo, pytest, pnpm, docker, kubectl, and more. See the rtk documentation for the full list.
Agent-level management commands:
exitbox agents list # Show enabled agents and their status
exitbox agents config claude # Open agent config in $EDITORNote: RTK is experimental. If you encounter issues, disable it via
exitbox setupand rebuild withexitbox run <agent> --update.
graphify maps a project (code, docs, PDFs, images) into a queryable knowledge graph you invoke with /graphify inside an agent. It's an ExitBox External Tool: when selected, the graphify CLI is installed into the tools image layer and the /graphify skill is registered into each compatible agent at container start; when deselected, the skill is removed.
# Select via the setup wizard:
exitbox setup
# → Tools → External Tools → GraphifyCompatible agents: Claude, Codex, OpenCode, Copilot, Pi. (Cursor's graphify install is project-scoped and Kimi Code's skill path differs from graphify's kimi target, so they are not auto-wired; Qwen has no graphify platform.)
Note: Graphify is experimental. Selecting/deselecting it rebuilds the tools image layer (
exitbox run <agent> --update).
Plugins extend an agent inside its ExitBox image. They are enabled per workspace, installed into a dedicated plugins image layer, and configured through a menu whose settings are applied when the container starts.
The first plugin is codex-router: a local model router that lets Codex, Claude Code, and Cursor talk to Anthropic, DeepSeek, Kimi, Grok, OpenRouter, and other providers through one gateway running inside the container.
exitbox plugins list # Every plugin, per agent, with status
exitbox plugins codex list # Plugins available for Codex
exitbox plugins enable codex codex-router # Enable it for the active workspace
exitbox plugins edit codex codex-router # Open its configuration menu
exitbox plugins codex show codex-router # Print the stored configurationThe same commands work agent-first (exitbox plugins codex edit codex-router), and -w/--workspace targets a workspace other than the active one. Plugins also have their own step in exitbox setup.
Provider keys stay in the vault. A secret setting stores only a vault key reference (vault:MY_KEY), never the secret itself:
exitbox plugins set codex codex-router anthropic_api_key CODEX_ROUTER_ANTHROPIC_KEY
exitbox vault set CODEX_ROUTER_ANTHROPIC_KEY <your-api-key>At container start the entrypoint resolves the reference through the vault, exports it as the variable the router expects, publishes the routes to the agent, and starts the router service. The provider API hosts a plugin needs are added to the firewall allowlist for that session automatically.
Enabling or disabling a plugin, or pinning a different version, changes the image: apply it with exitbox rebuild <agent> or the next exitbox run <agent>. Editing settings does not rebuild anything.
A workspace can ask for the host's GPUs. Workspaces with gpu: true build on a
different image flavor: an Ubuntu CUDA base instead of Alpine, because the driver
userspace the NVIDIA container toolkit injects, and every CUDA wheel, are built
against glibc and cannot load on musl.
exitbox gpu enable # for the active workspace
exitbox gpu enable ml # or a named one
exitbox gpu status # what the host can actually provide
exitbox gpu disableThe setup wizard carries the same flag under Workspace management → Settings → GPU passthrough, and the review step lists it before saving.
or in config.yaml:
workspaces:
items:
- name: ml
gpu: trueWhat has to be true on the host. exitbox gpu status reports which of these is missing:
- the NVIDIA kernel driver, so
/dev/nvidia*exists andnvidia-smiruns; - the NVIDIA Container Toolkit, which injects the driver userspace into the container:
sudo nvidia-ctk runtime configure --runtime=dockerfor Docker,sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yamlfor Podman; - a workspace with
gpu: true.
ExitBox then runs Docker with --gpus all, or Podman with the CDI device nvidia.com/gpu=all, and always sets NVIDIA_VISIBLE_DEVICES=all and NVIDIA_DRIVER_CAPABILITIES=compute,utility (override with EXITBOX_GPU_CAPABILITIES on the host). Without the compute capability the toolkit injects nvidia-smi and no CUDA libraries at all. If the host cannot provide a GPU, the run continues without one and says exactly what is missing rather than failing later; the container start-up reports what actually arrived.
What the GPU flavor changes. The image chain is the same, built from the CUDA base:
| default | GPU workspace | |
|---|---|---|
| base image | docker.io/library/alpine:<version> |
docker.io/nvidia/cuda:12.6.3-cudnn-runtime-ubuntu24.04 |
| package manager | apk |
apt-get |
| C library | musl | glibc |
| image names | exitbox-<agent>-* |
exitbox-<agent>-*-gpu |
The CUDA release has to match the host driver (12.6 needs 560+). Point ExitBox at another one with EXITBOX_GPU_BASE_IMAGE=docker.io/nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04 and rebuild. Image references are fully qualified because Podman resolves no short names without a containers-registries.conf.
Ubuntu 24.04 ships tmux 3.4, which predates the extended-keys-format option, so on the GPU flavor ExitBox leaves that option out (the config would error on every session start) and modified keys use tmux's xterm encoding. Kitty-protocol agents that need Shift+Enter there still work with exitbox run <agent> --no-tmux.
Package names stay Alpine names everywhere (roles, tool categories, workspace packages); the flavor translates them (postgresql16-client becomes postgresql-client-16, bind-tools becomes dnsutils, and so on). Tools with no Ubuntu package (kubectl, helm, kustomize, k9s, opentofu) are installed from their official binaries instead, and anything else that has no equivalent is reported during the build rather than silently dropped.
Note: GPU passthrough is experimental and off by default. It widens the container's access to host hardware, and the CUDA image is considerably larger than the Alpine one.
Skills are reusable SKILL.md files that give agents specialized capabilities (coding conventions, deploy workflows, review checklists, etc.). ExitBox provides a universal skill installer that works across all agents. Skills are installed once per workspace and automatically linked into each agent's skill directory at container start.
# Install from a GitHub directory (fetches all files recursively)
exitbox skills install https://github.com/anthropics/skills/tree/main/skills/frontend-design
# Install from a raw URL
exitbox skills install https://example.com/path/to/SKILL.md
# Install from a local directory or file
exitbox skills install ./my-skill/
exitbox skills install ./deploy/SKILL.md
# Override the skill name
exitbox skills install https://github.com/user/repo/tree/main/skills/foo --name my-custom-name
# Install into a specific workspace
exitbox skills install ./my-skill -w work
# List and remove
exitbox skills list
exitbox skills remove frontend-designSkills are stored at ~/.config/exitbox/profiles/global/<workspace>/skills/<name>/. On container start, ExitBox symlinks each skill into the active agent's native skill path:
| Agent | Skill path inside container |
|---|---|
| Claude | ~/.claude/skills/<name>/SKILL.md |
| Codex | ~/.agents/skills/<name>/SKILL.md |
| OpenCode | ~/.config/opencode/skills/<name>/SKILL.md (+ ~/.agents/skills/) |
| Pi | ~/.pi/agent/skills/<name>/SKILL.md (+ ~/.agents/skills/) |
| Kimi Code | ~/.kimi-code/skills/<name>/SKILL.md (+ ~/.agents/skills/) |
All agents use the same Agent Skills SKILL.md format with YAML frontmatter, so a single skill works across agents.
When agents like Claude Code and Codex exit, they display a resume token (e.g. claude --resume <id>). ExitBox captures this token and can pass it on the next run, so you seamlessly resume where you left off.
- Named sessions — set a session name explicitly with
--name "<session>"; if omitted, ExitBox auto-generates one using local time (YYYY-MM-DD HH:MM:SS) - Named session resume — when
--name "<session>"is provided, ExitBox resumes that named session automatically if it exists (use--no-resumeto force fresh) - Disabled by default — enable via "Auto-resume sessions" in
exitbox setupor setauto_resume: trueinconfig.yaml - Always shown at exit — ExitBox always prints a resume command after a session ends (e.g.
exitbox run codex --name "2026-02-11 14:51:02" --resume) - Workspace-aware — resume commands include
--workspacewhen running a non-default workspace - Disable per-session with
--no-resumeto start a fresh session - Resume tokens are stored per-workspace, per-agent, per-project, and per-session at
~/.config/exitbox/profiles/global/<workspace>/<agent>/projects/<project_key>/sessions/<session_key>/.resume-token
ExitBox includes a built-in encrypted secret vault so agents can read and write API keys, tokens, and credentials without .env files being exposed inside the container.
- AES-256 encryption with Argon2id key derivation — no external dependencies required
- Per-access approval: Every secret read or write triggers a tmux popup requiring explicit user confirmation
- Agent-initiated writes: Agents can store secrets directly via
exitbox-vault set <KEY> <VALUE>from inside the container — the host user approves each write via popup .envmasking: When vault is enabled, all.env*files are automatically hidden inside the container- Embedded storage: Secrets are stored in an encrypted Badger database per workspace
The first access in a session prompts for the vault password. Subsequent reads only require the per-key approval popup. Inside the container, agents use exitbox-vault to read and write secrets via IPC. See Vault Management for the full CLI reference.
| Agent | Description | Host Requirement |
|---|---|---|
claude |
Anthropic's Claude Code CLI | None (installed in container) |
codex |
OpenAI's Codex CLI | None (downloaded) |
opencode |
OpenCode AI assistant | None (binary download) |
qwen |
Qwen Code AI assistant | None (npm install) |
All agents are installed inside the container. Existing host config (~/.claude, etc.) is imported once into managed storage on first run. Use exitbox config import <agent> (or exitbox config import all) to re-seed from host config. Use --workspace to target a specific workspace. Use --config/-c to import a specific config file. Use exitbox config edit <agent> to open the agent's primary config file in your editor:
exitbox config import codex -c config.toml # Import a config file into Codex workspace
exitbox config import opencode -c opencode.json # Import OpenCode config file
exitbox config import codex -c config.toml -w work # Import into specific workspace
exitbox config edit claude # Edit Claude settings.json in $EDITOR
exitbox config edit codex -w work # Edit Codex config.toml for 'work' workspace
exitbox config edit claude --profile openrouter # Edit profile-scoped settings.json (seeded from default)Named bundles of environment variables stored per-workspace in the KV store. Apply a profile at run time to inject variables via container -e flags. Useful for switching between providers (e.g. OpenRouter, direct Anthropic) without editing config.
exitbox env create openrouter # Opens $EDITOR; paste KEY=VALUE lines, save
exitbox env edit openrouter # Edit existing profile
exitbox env list # List profiles in active workspace
exitbox env show openrouter # Show keys (values redacted)
exitbox env show openrouter --unsafe # Show raw values
exitbox env delete openrouter
exitbox env default openrouter # Auto-load this profile on every run
exitbox env default # Show current default
exitbox env default --clear # Remove the defaultWhen a default profile is set, it is loaded automatically on every exitbox run without needing --profile. CLI --profile overrides the default.
Example profile for routing Claude Code via OpenRouter:
OPENROUTER_API_KEY=sk-or-v1-...
ANTHROPIC_BASE_URL=https://openrouter.ai/api
ANTHROPIC_AUTH_TOKEN=$OPENROUTER_API_KEY
ANTHROPIC_API_KEY=
Apply at run time:
exitbox run claude --profile openrouter # Loads env vars + uses profile-scoped agent config
exitbox run claude -- --profile openrouter # Same (after --)Config files can be scoped per-profile — exitbox config edit claude --profile openrouter creates a copy of the default config under the profile, which takes effect only when --profile openrouter is used at run time. CLI -e KEY=VAL flags override profile values.
- Podman (recommended) or Docker — at least one is required; Podman is preferred for its rootless, daemonless design
- For Windows: Docker Desktop provides the Docker CLI that ExitBox uses
# Install Podman (recommended) or Docker
sudo apt update && sudo apt install -y podman # Ubuntu/Debian
# OR: install Docker - see https://docs.docker.com/engine/install/
# Download the latest release binary
mkdir -p ~/.local/bin
curl -fsSL https://github.com/Cloud-Exit/ExitBox/releases/latest/download/exitbox-linux-amd64 -o ~/.local/bin/exitbox
chmod +x ~/.local/bin/exitbox
# For ARM64: replace exitbox-linux-amd64 with exitbox-linux-arm64
# Run the setup wizard
exitbox setup
# Run an agent
exitbox run claude# Install Podman (recommended) or Docker
brew install podman
podman machine init && podman machine start
# OR: brew install --cask docker
# Download the latest release binary
mkdir -p ~/.local/bin
curl -fsSL https://github.com/Cloud-Exit/ExitBox/releases/latest/download/exitbox-darwin-arm64 -o ~/.local/bin/exitbox
chmod +x ~/.local/bin/exitbox
# For Intel Macs: replace exitbox-darwin-arm64 with exitbox-darwin-amd64
# Run the setup wizard
exitbox setupExitBox runs natively on Windows with Docker Desktop.
- Install Docker Desktop for Windows
- Download the latest
exitbox-windows-amd64.exefrom Releases - Rename to
exitbox.exeand place in a directory on yourPATH(e.g.,C:\Users\<you>\AppData\Local\bin\) - Run the setup wizard:
exitbox setupAlternatively, use ExitBox inside WSL2 for a Linux-native experience:
# In PowerShell as Administrator
wsl --install -d UbuntuThen in WSL2:
sudo apt update && sudo apt install -y podman
mkdir -p ~/.local/bin
curl -fsSL https://github.com/Cloud-Exit/ExitBox/releases/latest/download/exitbox-linux-amd64 -o ~/.local/bin/exitbox
chmod +x ~/.local/bin/exitbox
exitbox setupgit clone https://github.com/Cloud-Exit/exitbox.git
cd exitbox
make build # builds ./exitbox
make install # installs to ~/.local/bin/exitboxA convenience install script is available but not advised from a security perspective. Piping a remote script into your shell executes arbitrary code with your user's full permissions — you cannot review what runs before it runs. If the hosting server, DNS, or CDN is compromised, the script could be replaced with something malicious. You also lose the ability to verify checksums or signatures before execution.
If you still want to use it:
# Review the script first
curl -fsSL https://raw.githubusercontent.com/cloud-exit/exitbox/main/scripts/install.sh -o install.sh
less install.sh
sh install.shPrefer the manual binary download or building from source described above.
exitbox updateThis downloads the latest release binary and replaces the current installation in-place. To update agent images (Claude Code, Codex, etc.) to their latest versions:
exitbox run --update claude # rebuild with latest agent version
exitbox rebuild all # rebuild all enabled agentsTo update the tools and languages installed inside the images (Go, Node.js, Bun, etc.):
exitbox tools update # every managed tool/language to latest
exitbox tools update go # Go to latest
exitbox tools update go 1.35.0 # pin Go to a specific version
exitbox tools update go@1.35.0 node@22 # pin several at once
exitbox tools list # show current tool versionsexitbox tools update saves the versions to config.yaml without rebuilding anything. Add --rebuild to rebuild the tools and project images for every enabled agent, or let the next exitbox run pick up the change. Use exitbox tools update go default to remove a pin and go back to the built-in install.
exitbox setup # Run the interactive setup wizard (recommended first step)exitbox run claude [args] # Run Claude Code
exitbox run codex [args] # Run Codex
exitbox run copilot [args] # Run GitHub Copilot CLI
exitbox run cursor [args] # Run Cursor CLI
exitbox run kimi [args] # Run Kimi Code CLI
exitbox run opencode [args] # Run OpenCode
exitbox run pi [args] # Run Pi Coding Agent
exitbox run qwen [args] # Run Qwen Codeexitbox list # List available agents and build status
exitbox enable <agent> # Enable an agent
exitbox disable <agent> # Disable an agent
exitbox rebuild <agent> # Force rebuild of agent image
exitbox rebuild all # Rebuild all enabled agents
exitbox tools list # List managed tools and versions
exitbox tools update # Update tools/languages to latest or a pinned version
exitbox uninstall <agent> # Remove agent images and config
exitbox update # Update ExitBox to the latest version
exitbox aliases # Print shell aliases for ~/.bashrc
exitbox agents list # List enabled agents and their status
exitbox agents config <agent> # Open agent config in $EDITOR
exitbox codex accounts list # List saved Codex accounts
exitbox codex accounts current # Show current/previous Codex account
exitbox codex accounts save <name> # Save active Codex login
exitbox codex accounts add <name> # Create a new empty Codex login slot
exitbox codex accounts switch <name> # Activate a saved Codex login
exitbox config import <agent|all> # Import agent config from host
exitbox config edit <agent> # Open agent config file in $EDITOR
exitbox skills install <source> # Install a skill from URL/path
exitbox skills list # List installed skills
exitbox skills remove <name> # Remove an installed skill
exitbox env create <profile> # Create a new env profile
exitbox env edit <profile> # Edit env profile in $EDITOR
exitbox env list # List env profiles
exitbox env show <profile> # Show env profile (values redacted)
exitbox env delete <profile> # Delete env profile
exitbox env default [profile] # Get or set the default env profile
exitbox env default --clear # Remove the default env profileexitbox plugins list # All plugins grouped by agent
exitbox plugins list codex # Plugins for one agent
exitbox plugins codex list # Same, agent-first
exitbox plugins enable codex codex-router # Enable for the active workspace
exitbox plugins disable codex codex-router # Disable
exitbox plugins edit codex codex-router # Configuration menu
exitbox plugins show codex codex-router # Stored configuration
exitbox plugins set codex codex-router port 4300 # Set one setting
exitbox plugins set codex codex-router port # Clear it (back to default)
exitbox plugins enable codex codex-router -w work # Target another workspace
# Project-scoped marketplace plugins (Codex)
exitbox plugins install codex https://github.com/org/plugin-repo
exitbox plugins remove codex plugin-nameGenerate agent configuration files for third-party LLM servers (Ollama, vLLM, LM Studio, etc.):
exitbox generate opencode # Configure OpenCode for a custom provider
exitbox generate claude -w work # Configure Claude Code in 'work' workspace
exitbox generate codex # Configure Codex for a custom providerThe wizard prompts for server URL, API key, tests connectivity via GET /v1/models,
lets you pick a model from the discovered list, and writes the correct config file
into the workspace profile directory. Existing config is preserved via deep merge.
When vault is enabled for the workspace, the wizard offers to store the API key in the vault instead of writing it to the config file.
Workspaces are named contexts (e.g. personal, work, client-a) that provide isolated agent configurations, credentials, and development stacks. Each workspace stores its own agent config directories, so API keys and conversation history are kept separate.
exitbox workspaces list # List all workspaces
exitbox workspaces add <name> # Create a new workspace (interactive)
exitbox workspaces remove <name> # Delete a workspace
exitbox workspaces use <name> # Set the active workspace
exitbox workspaces default [name] # Get or set the default workspace
exitbox workspaces status # Show workspace resolution chainNamed sessions are stored per-project. You can list and remove them from the CLI:
exitbox sessions list # List saved sessions for current project/workspace
exitbox sessions list --agent codex # Filter by agent
exitbox sessions list -w work # Inspect another workspace
exitbox sessions rm "2026-02-11 14:51:02" # Remove one named session
exitbox sessions rm "my-session" --agent claude # Remove for a specific agent onlyShell completion:
exitbox sessions rm <Tab>suggests saved session names for the current projectexitbox run <agent> --resume <Tab>suggests saved session names for that agent
exitbox vault init -w <workspace> # Initialize a new vault
exitbox vault set <KEY> -w <workspace> # Set a secret (value prompted securely)
exitbox vault get <KEY> -w <workspace> # Retrieve a secret
exitbox vault list -w <workspace> # List secret keys
exitbox vault delete <KEY> # Delete a secret
exitbox vault import <file> # Import key-value pairs from a .env file
exitbox vault edit # Edit secrets in $EDITOR (KEY=VALUE format)
exitbox vault status # Show vault state for a workspace
exitbox vault destroy # Permanently delete a vaultInside the container, agents use the exitbox-vault binary to interact with the vault over IPC:
exitbox-vault list # List key names
exitbox-vault get <KEY> # Get a secret value (stdout)
exitbox-vault set <KEY> <VALUE> # Store a secret (host approval required)
exitbox-vault env # Print all KEY=VALUE pairsEvery get and set triggers a tmux popup on the host terminal requiring explicit approval before the operation proceeds.
When an agent detects or generates a secret (API key, token, password), it follows this workflow:
- Ask for a key name — the agent prompts the user for a vault key name before attempting to store anything
- Generate and store in one step — the secret is piped directly into
exitbox-vault setso it never appears in command output:exitbox-vault set MY_TOKEN "$(python3 -c "import secrets; print(secrets.token_urlsafe(32))")"
- Host approves — a tmux popup appears on the host terminal; the host user must approve the write
- Use via variable — the agent retrieves the secret into a shell variable and uses it inline:
TOKEN=$(exitbox-vault get MY_TOKEN) curl -H "Authorization: Bearer $TOKEN" https://api.example.com
- Redact output — any command output that might echo the secret is captured and redacted before display
Agents are automatically informed about vault commands and these rules via sandbox instructions injected at container start.
- Isolated credentials: Each workspace has its own agent config directory at
~/.config/exitbox/profiles/global/<workspace>/<agent>/. API keys, auth tokens, and conversation history are not shared between workspaces. - Development stacks: Each workspace can have its own set of dev roles (languages/tools). The setup wizard or
exitbox workspaces addlets you pick the stack for each workspace. - Per-project auto-detection: Workspaces can be scoped to a directory. When you run an agent from that directory, ExitBox automatically uses the matching workspace.
- Default workspace: Set via
exitbox setuporexitbox workspaces default. Used when no directory-scoped workspace matches. - Credential import: When creating a workspace, you can import credentials from the host or copy them from an existing workspace. You can also import later with
exitbox config import <agent> --workspace <name>.
- CLI flag:
exitbox run -w work claude— explicit override for this session - Directory-scoped: If the current directory matches a workspace's
directoryfield inconfig.yaml - Default workspace: The workspace set as default in settings
- Active workspace: The last-used workspace from
config.yaml - Fallback:
default
Inside a running agent session, ExitBox provides two dedicated fzf menus:
- Ctrl+Alt+P — workspace menu (save current session, then switch workspace)
- Ctrl+Alt+S — session menu (switch to another named session or start a new timestamp session)
Note: Credentials are bind-mounted at container start for security isolation. If you switch to a workspace that wasn't mounted, ExitBox warns you that credentials for that workspace aren't available and suggests re-running with the --workspace flag.
# Create workspaces for different contexts
exitbox workspaces add work
exitbox workspaces add personal
# Run claude in a specific workspace
exitbox run -w work claude
exitbox run -w personal claude
# Set the default workspace
exitbox workspaces default work
# Now "exitbox run claude" uses the "work" workspace by default
exitbox run claudeGenerate recommended shell aliases for quick access:
exitbox aliasesOr add custom aliases to your ~/.bashrc or ~/.zshrc:
alias claude-work="exitbox run -w work claude"
alias claude-personal="exitbox run -w personal claude"
alias codex-work="exitbox run -w work codex"exitbox info # Show system information
exitbox logs <agent> # Show latest agent log file
exitbox clean # Clean unused container resources
exitbox clean all # Remove all exitbox images
exitbox projects # List known projectsExitBox provides tab-completion for bash, zsh, and fish:
# Zsh (add to ~/.zshrc)
eval "$(exitbox completion zsh)"
# Bash (add to ~/.bashrc)
eval "$(exitbox completion bash)"
# Fish
exitbox completion fish > ~/.config/fish/completions/exitbox.fishFor faster shell startup, generate a file instead of using eval:
# Zsh
exitbox completion zsh > ~/.zfunc/_exitbox
# then add to ~/.zshrc (before compinit): fpath=(~/.zfunc $fpath)
# Bash
exitbox completion bash > ~/.local/share/bash-completion/completions/exitboxexitbox run -f claude # Disable network firewall *DANGEROUS*
exitbox run -r claude # Mount workspace as read-only (safety)
exitbox run -v claude # Enable verbose output
exitbox run -n claude # Don't pass host environment variables
exitbox run -n -e MY_KEY=val claude # Only pass specific env vars
exitbox run -i /tmp/foo claude # Mount /tmp/foo into /workspace/foo
exitbox run -t nodejs,go claude # Add Alpine packages to image (persisted)
exitbox run -a api.example.com claude # Allow extra domains for this session
exitbox run -u claude # Check for and apply agent updates
exitbox run --no-resume claude # Start a fresh session (don't resume previous)
exitbox run --name "my-session" claude # No --resume needed; resumes if session exists
exitbox run --resume "my-session" claude # Resume by named session (or by session id)
exitbox run -w work claude # Use a specific workspace for this session
exitbox run --full-git-support claude # Mount host .gitconfig and SSH agent
exitbox run --ollama claude # Use host Ollama for local models
exitbox run --memory 16g --cpus 8 claude # Custom resource limits
exitbox run --version 1.0.123 claude # Pin specific agent version
exitbox run --profile openrouter claude # Apply env profile (vars + profile-scoped config)All flags have long forms: -f/--no-firewall, -r/--read-only, -v/--verbose, -n/--no-env, --resume [SESSION|TOKEN], --no-resume, --name, -i/--include-dir, -t/--tools, -a/--allow-urls, -u/--update, -w/--workspace, --profile, --full-git-support, --ollama, --memory, --cpus, --version.
Roles (formerly "profiles") are pre-configured development environments (toolchains, language runtimes, CLI stacks). The setup wizard suggests roles based on the developer role preset you pick (Frontend, Backend, AI Developer, etc.), or you can add them manually.
| Role | Description |
|---|---|
base |
Base development tools |
build-tools |
Build toolchain helpers |
shell |
Shell and file transfer utilities |
networking |
Network diagnostics and tooling |
c |
C/C++ toolchain (gcc, make, cmake) |
node |
Node.js runtime with npm and JS tooling |
python |
Python 3 with pip |
rust |
Rust toolchain with cargo |
go |
Go runtime (arch-aware, checksum verified) |
java |
OpenJDK with Maven and Gradle |
ruby |
Ruby with bundler |
php |
PHP with composer |
database |
Database CLI clients |
devops |
Docker CLI / kubectl / helm / opentofu / kind |
web |
Web server/testing tools |
security |
Security diagnostics tools |
ml |
AI/ML tooling (huggingface-cli, safetensors) — requires python |
flutter |
Flutter SDK |
ExitBox uses YAML configuration files stored in ~/.config/exitbox/ (Linux/macOS) or %APPDATA%\exitbox\ (Windows).
The recommended way to configure ExitBox is through the setup wizard:
exitbox setupThe wizard generates config.yaml and allowlist.yaml tailored to your developer role. It walks you through roles, languages, tools, per-tool versions, packages, workspace name, credentials, agents, settings, firewall (domain allowlist), and review. The settings step includes an Auto-update tools to latest option that sets unpinned managed tools to latest, and the tool-versions step lets you pin Go, Node.js, Bun, etc. individually. Some steps are shown conditionally (e.g., credentials only when other workspaces exist). Re-run it at any time to reconfigure.
The main configuration file controls which agents are enabled, extra packages, and default settings:
version: 1
roles:
- backend
- devops
workspaces:
active: default
items:
- name: default
development:
- go
- python
- name: work
development:
- node
- python
vault:
enabled: true
gpu: false # experimental GPU passthrough for this workspace
plugins: # per-agent plugins, enabled per workspace
codex:
codex-router:
enabled: true
settings:
providers: anthropic-api,deepseek
anthropic_api_key: vault:CODEX_ROUTER_ANTHROPIC_KEY
agents:
claude:
enabled: true
version: "1.0.123" # pin agent version (omit for latest)
codex:
enabled: false
opencode:
enabled: true
tools:
user:
- postgresql-client
- redis
versions: # per-tool version pins ("latest" = track newest)
go: "1.35.0"
node: latest
settings:
auto_update: false
auto_update_tools: false # Set true to track latest for unpinned managed tools
alpine_version: "3.21" # Base image Alpine release (dropdown in setup)
status_bar: true # Show "ExitBox <version> - <agent>" bar at top of terminal
default_workspace: default # Workspace used when no directory match is found
default_flags:
no_firewall: false # Set true to disable firewall by default
read_only: false # Set true to mount workspace as read-only by default
no_env: false # Set true to not pass host env vars by default
auto_resume: false # Set true to auto-resume agent sessionsSettings reference:
status_bar— Thin status bar at the top of the terminal showing agent, workspace, and version. Enabled by default.auto_resume— Automatically resume the last agent conversation on next run. Disabled by default. Enable inexitbox setupor set totrue. Disable per-session with--no-resume.
The network allowlist is organized by category for readability:
version: 1
ai_providers:
- anthropic.com
- claude.ai
- openai.com
# ...
development:
- github.com
- npmjs.org
- pypi.org
# ...
cloud_services:
- googleapis.com
- amazonaws.com
- azure.com
custom:
- mycompany.comAdd extra Alpine packages to your container images:
-
CLI flag (persisted automatically):
exitbox run -t nodejs,python3-dev claude
-
config.yaml:
tools: user: - nodejs - python3-dev
The image rebuilds automatically when tools change.
ExitBox can pin or track versions for the following managed tools and languages:
| Tool | Type | Install | Versioning |
|---|---|---|---|
alpine |
base image | Official Alpine image | Real Alpine releases only, e.g. 3.21 (dropdown in setup) |
| :----- | :----- | :-------- | :----------- |
go |
language | Official tarball (checksum verified) | Exact Go release, e.g. 1.35.0 |
golangci-lint |
tool | GitHub release | Exact release, e.g. 1.64.8 |
bun |
tool | npm | Exact version, e.g. 1.2.3 |
node |
language | Alpine apk | Alpine package version, e.g. 22.14.0-r0 |
python |
language | Alpine apk | Alpine package version, e.g. 3.12.9-r0 |
rust |
language | Alpine apk | Alpine package version |
java |
language | Alpine apk | Alpine package version |
dotnet |
language | Alpine apk | Alpine package version |
ruby |
language | Alpine apk | Alpine package version |
php |
language | Alpine apk | Alpine package version |
latest tracks the newest version at image build time. For apk-managed
languages a concrete version is resolved against the Alpine package index
before saving, so you can ask for a prefix such as node 22 and ExitBox
pins the newest matching package (e.g. nodejs=22.14.0-r0). The special
value default removes a pin and restores the built-in install.
Versions only take effect where the tool is installed: a language must be
part of at least one workspace's development list, and bun must be
selected as an external tool. Tool version changes are included in the image
cache hashes, so images rebuild automatically on the next exitbox run.
exitbox tools update go # go -> latest
exitbox tools update go 1.35.0 # go -> 1.35.0 (checksum verified)
exitbox tools update node 22 # newest Alpine nodejs matching "22"
exitbox tools update python default # back to the built-in Python
exitbox tools update alpine 3.24 # switch the base image to a real Alpine release
exitbox setup # or set per-tool versions in the setup wizardPer-tool versions and the auto-update-to-latest setting can also be managed
from the setup wizard: the tool-versions step appears after Tools when your
roles/languages make a managed tool relevant, and the Settings step has an
"Auto-update tools to latest" toggle that applies latest to every unpinned
managed tool. The same step includes an Alpine base dropdown limited to real
releases available on the official Alpine mirror, and every managed tool
row has a dropdown loaded from its real upstream source: Go from go.dev,
golangci-lint from GitHub releases, Bun from the npm registry, and
Alpine-package languages from the APK index of the selected Alpine release.
Each dropdown starts with default and latest, followed by the published
versions (newest first). The Alpine selection is stored as
settings.alpine_version and is used for the base and squid image FROM
lines, apk package resolution, and image cache hashes.
ExitBox enforces default resource limits to prevent runaway agents:
- Memory: 8GB
- CPU: 4 vCPUs
ExitBox uses managed config (import-only) with per-workspace isolation. On first run, host config is copied into the active workspace's managed directory. Host originals are never modified. Use exitbox config import <agent> to re-seed from host config at any time, optionally with --workspace <name> to target a specific workspace.
All managed paths follow the pattern ~/.config/exitbox/profiles/global/<workspace>/<agent>/. For example, with workspace default and agent claude:
| Agent | Managed Path (under workspace agent dir) | Container Path |
|---|---|---|
| Claude | .claude/ |
/home/user/.claude |
| Claude | .claude.json |
/home/user/.claude.json |
| Claude | .config/ |
/home/user/.config |
| Codex | .codex/ |
/home/user/.codex |
| Codex | .config/codex/ |
/home/user/.config/codex |
| OpenCode | .opencode/ |
/home/user/.opencode |
| OpenCode | .config/opencode/ |
/home/user/.config/opencode |
| OpenCode | .local/share/opencode/ |
/home/user/.local/share/opencode |
| OpenCode | .local/state/ |
/home/user/.local/state |
| OpenCode | .cache/opencode/ |
/home/user/.cache/opencode |
| Qwen | .qwen/ |
/home/user/.qwen |
| Qwen | .config/qwen/ |
/home/user/.config/qwen |
Your project directory is mounted at /workspace.
When Codex is enabled, ExitBox publishes callback port 1455 on the shared exitbox-squid container and relays it to the active Codex container, so OrbStack/private-networking callback flows work reliably.
| Variable | Description |
|---|---|
VERBOSE |
Enable verbose output |
CONTAINER_RUNTIME |
Force runtime (podman or docker) |
EXITBOX_NO_FIREWALL |
Disable firewall (true) |
EXITBOX_SQUID_DNS |
Squid DNS servers (comma/space list, default: 1.1.1.1,8.8.8.8) |
EXITBOX_SQUID_DNS_SEARCH |
Squid DNS search domains (default: . to disable inherited search suffixes) |
Agent images are built on Alpine Linux by default. The base package list is embedded in the binary and shared by all image builds.
Alpine was chosen for:
- Small image size: ~5 MB base vs ~80 MB for Debian slim
- musl libc: Matches the native binaries shipped by Claude Code, git-delta, and yq
- Consistent package manager:
apkis used everywhere: base image, profiles, and user tools
The one exception is a workspace with gpu: true, which builds the same chain on an Ubuntu CUDA base instead. See GPU Support; package names stay Alpine names and are translated per flavor.
base image (Alpine, or Ubuntu CUDA for GPU workspaces)
└── core image (agent-specific install)
└── tools image (global tools and external tools)
└── plugins image (enabled agent plugins, skipped when none)
└── project image (development profiles layered on)
Each flavor has its own chain: a GPU workspace builds exitbox-<agent>-core-gpu,
-tools-gpu and so on, so the two never share a layer.
Each layer uses label-based caching (exitbox.version, exitbox.agent.version, exitbox.tools.hash, exitbox.plugins.hash, exitbox.profiles.hash) so rebuilds are fast and incremental. A workspace with no plugins enabled builds no plugins layer at all: the project image is built straight on the tools image.
Agent binaries are installed via direct download with SHA-256 checksum verification:
- Claude Code: binary download verified against Anthropic's signed manifest. Download URL auto-discovered from the official installer if the hardcoded endpoint changes.
- OpenCode: GitHub release tarball verified against the
digestfield from the GitHub Releases API. - Codex: the official release package (
codex-package-<target>.tar.gz), checksummed on the host and bind mounted into the build so the archive never becomes an image layer. Codex resolvesbin/codex,codex-package.json,codex-path/rgandcodex-resources/bwrapfrom the running executable; installed as a bare binary its app-server daemon refuses to start. Releases older than that asset fall back to the individual binaries. The package's voice resources are left out of the image.
No curl | bash for any agent. Builds abort on any checksum mismatch.
ExitBox uses a Squid Proxy container to enforce strict destination allowlisting:
- Hard egress control: Agent containers run on an internal-only network with no direct internet route.
- Proxy path: Squid is dual-homed (internal + egress networks), so outbound traffic must traverse Squid.
- Allowlist: Only destinations listed in
allowlist.yamlare permitted through the proxy. - Fail closed: Missing or empty allowlist blocks all outbound destinations.
Edit ~/.config/exitbox/allowlist.yaml and add domains to the custom list:
custom:
- mycompany.com
- api.internal.example.comDomain formats:
example.comallowsexample.comand its subdomainsapi.example.comallows only that host scope (and deeper subdomains)*.example.comis accepted as wildcard syntax8.8.8.8allows a specific IPv4 destination2606:4700:4700::1111allows a specific IPv6 destination
Allow extra domains for a single session without editing the allowlist:
exitbox run -a api.example.com,cdn.example.com claudeThe domains are merged into the Squid config and applied via hot-reload (squid -k reconfigure) — no proxy restart, no container restart, no connection drop. These domains do not persist across sessions.
When an agent needs access to a domain not in the allowlist, it (or the user) can request it at runtime from inside the container:
exitbox-allow registry.npmjs.orgThis connects to the host via a Unix socket IPC channel. The host user is prompted on their terminal to approve or deny the request. Approved domains are added to the Squid config and hot-reloaded immediately — no container restart needed.
- Requires firewall mode (not available with
--no-firewall) - The host prompt appears on
/dev/tty, so it works even while the agent is running - Agents are informed about
exitbox-allowvia the sandbox instructions injected at container start
exitbox run --no-firewall claude # *DANGEROUS* - disables all network restrictions| Feature | Podman | Docker |
|---|---|---|
| Rootless by default | Yes | No (requires group) |
| Daemonless | Yes | No (requires daemon) |
| Security | Better isolation | Requires daemon root |
On Windows, Docker Desktop is the primary supported runtime.
sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 $USER
podman system migratepodman machine startsudo usermod -aG docker $USER
newgrp dockerEnsure Docker Desktop is running and the docker CLI is on your PATH. You can verify with:
docker info# Remove the binary
rm -f ~/.local/bin/exitbox
# Remove configuration and data
rm -rf ~/.config/exitbox ~/.cache/exitbox ~/.local/share/exitbox
# Remove container images
podman images | grep exitbox | awk '{print $3}' | xargs podman rmi -f
# OR for Docker:
docker images | grep exitbox | awk '{print $3}' | xargs docker rmi -fOn Windows, delete exitbox.exe and remove %APPDATA%\exitbox\.
AGPL-3.0 - see LICENSE file.
ExitBox is open-source software licensed under the GNU Affero General Public License v3.0. Commercial licensing is available from Cloud Exit for organizations that require proprietary usage terms.
Contributions welcome via pull requests and issues.