Configuration
~/.agent-bridge/config.json (all keys optional; per-agent sections override the top level; env vars override both). Running sessions pick up changes within a few seconds; name, delivery and the dashboard port need a restart; use the connect wizard to reload network settings live:
{ "autoWake": false, "wakeOnDirect": true, "maxHops": 6, "maxJobs": 8, "maxDelegateDepth": 2, "autoApproveTools": ["pair-desk.get_*", "pair-desk.list_*"], "codexApprovalsReviewer": "auto_review", "codexSubagents": 6, "lingerSec": 300, "codex": { "name": "codex-main", "claudeBin": "claude", "claudePermissionMode": "default", "claudeModel": "opus" }, "claude": { "delivery": "auto", "codexBin": "codex", "codexSandbox": "read-only", "codexModel": "gpt-6-sol" }, "opencodeModel": "anthropic/claude-sonnet-5", "opencodeAutoApprove": false}codexSubagents sets the default native Codex child-thread budget per delegated job
(6 by default, integers 0–32; 0 disables). Override it with native_subagents on
spawn_codex, ask_codex or message_subagent. This is separate from bridge job
concurrency and delegation depth. See native subagent settings and dashboard APIs.
| Env var | Meaning |
|---|---|
AGENT_BRIDGE_HOME |
Data directory (default ~/.agent-bridge) |
AGENT_BRIDGE_NAME |
Peer name |
AGENT_BRIDGE_AUTO_WAKE |
on / off |
AGENT_BRIDGE_WAKE_ON_DIRECT |
Wake idle Claude, Codex and opencode for messages addressed to their session name when supported (default on); wakeOnDirect in config |
AGENT_BRIDGE_MAX_HOPS |
Loop limit |
AGENT_BRIDGE_MAX_JOBS |
Subagents running at once per top-level session, including blocking asks and every nested generation (default 8, max 50); maxJobs in the config file. Continuing a finished subagent while all slots are taken queues it; it starts when one frees up. Mid-session, ask the top supervisor to change it (“allow 10 subagents”): the max_subagents tool applies it at once, with save=true also for new sessions |
AGENT_BRIDGE_MAX_DELEGATE_DEPTH |
Maximum delegation depth (maxDelegateDepth in config), default 2, allowed range 1–3. A top session has depth 0; its child has depth 1 and can start depth 2 children. Every generation shares the top session’s subagent budget. |
AGENT_BRIDGE_LINGER_SEC |
Listen window after sending (0 disables) |
AGENT_BRIDGE_DELIVERY |
Claude only: auto, channel, hooks |
AGENT_BRIDGE_CLAUDE_BIN / AGENT_BRIDGE_CODEX_BIN / AGENT_BRIDGE_OPENCODE_BIN |
Paths of the CLIs used for delegation |
AGENT_BRIDGE_LOG_LEVEL |
File log level: debug, info (default), warn, error, silent |
AGENT_BRIDGE_LOG_CONSOLE |
stderr log level (default warn) |
AGENT_BRIDGE_PIPE |
Override the pipe / socket path |
Logs are written to ~/.agent-bridge/logs/agent-bridge.log.