The bridge controls a CommandCode account API key. Any caller who can access it can spend credits and send arbitrary prompts to the upstream model.
- Default bind host:
127.0.0.1. - Optional
BRIDGE_API_KEYaccepted throughAuthorization: Bearerorx-api-key. - Rate limiting via
@fastify/rate-limit. - Request body size limit.
- Model allowlist enabled by default.
- No local shell/file tools are exposed to upstream by default.
- Logs redact common secret-bearing headers.
Use one of:
127.0.0.1only for local clients.- Tailscale/VPN bind with
BRIDGE_API_KEYset. - Reverse proxy with TLS and authentication.
Do not run as a public anonymous endpoint.