← Tools Proxy | Process Pool →
Docs: Getting Started · Tutorial · Configuration · Agents · API Reference · Pipelines · Async Jobs · Webhooks · Client Usage · Tools Proxy · Security · Process Pool · Testing · Troubleshooting
Before you expose this to the internet, read this entire page.
Agents run as full subprocesses of the Bridge host, with the Bridge user's permissions. Most agents can execute shell commands, read/write files, and reach any network the host can reach.
- Token compromise ≈ shell compromise. Anyone with
ACP_TOKENcan tell an agent torm -rf, exfiltrate~/.ssh, or hit internal services. Rotate tokens, never commit them, and scopeallowed_ipstightly. --trust-all-toolsauto-approves every tool call. Kiro's default config includes this flag — remove it in untrusted networks.session/request_permissionis auto-answered withproceed_alwaysso Claude doesn't hang. Same implication: anything the agent wants to do, it gets to do.- Prompt injection is a real vector. Untrusted content fed to an agent (web pages, user input, log files) can hijack it into running unintended commands.
Bridge uses dual authentication:
- Bearer Token —
Authorization: Bearer <token>header on every request - IP Allowlist — only requests from
security.allowed_ipsare accepted
Both must pass. /health and /ui are unauthenticated (for load balancer probes and browser access).
Token supports ${ENV_VAR} references in config — keep actual values in .env or environment only.
| Shape | Fit | Config |
|---|---|---|
| Localhost only | Personal / single-dev | allowed_ips: ["127.0.0.1"] |
| LAN + VPN | Small team inside office/tailnet | Bearer Token + IP allowlist |
| Public internet | Not recommended | mTLS reverse proxy + per-user tokens + audit logging (not shipped with Bridge) |
- Don't pipe arbitrary web/user content directly into
/runswithout framing - Keep
working_dirpinned to a workspace directory, not$HOME - Review agent transcripts for unexpected tool calls before trusting output
- Use Harness Factory's sandboxed presets (
reader,reviewer) for untrusted input — they have restricted tool permissions
- Webhook token is configured separately from Bridge auth token
- OpenClaw format includes auth headers; generic format sends plain JSON
- Messages are auto-chunked at 1800 chars to avoid Discord API limits
The heartbeat system (heartbeat.enabled: true) periodically pings agents with environment snapshots — who's online, who's busy, recent activity. This enables inter-agent collaboration.
- Path leakage: heartbeat prompts include a client script command for inter-agent communication. As of v0.18.0, only the script basename is shown (e.g.
acp-client.sh), never the absolute path. Previously, the full path (e.g./home/user/projects/acp-bridge/skill/scripts/acp-client.sh) was exposed, revealing the project location to all agents. - Agent visibility: only agents with
heartbeat: truein their config appear in heartbeat prompts. Agents without this flag (e.g. kiro) are invisible to other agents during heartbeat, preventing unwanted cross-agent interactions. --trust-all-tools+ auto-permission: agents with--trust-all-tools(like kiro) combined with Bridge's auto-reply tosession/request_permissioncan execute any shell command. Even withworking_dirset to/tmp/ko, agents cancdor use absolute paths to access any file the Bridge user can access.working_diris a starting directory, not a sandbox.- True isolation requires running agents in Docker containers or Linux namespaces.
Contributions welcome:
- Per-user tokens with scoped permissions
Rate limiting per token/IP→ basic per-agent RPM/TPM rate limiting added in v0.18.0 (see Configuration)- Audit logging (who called what, when)
- mTLS helper / reverse proxy config examples
- Configuration — token and IP allowlist setup
- Process Pool — subprocess isolation details
- Troubleshooting — auth error fixes