Configure auth proxy rules
Add aproxy_config when creating a sandbox. Each rule specifies:
| Field | Description |
|---|---|
match_hosts | Hosts to intercept (supports globs like *.github.com) |
match_paths | Paths to match (empty = all paths) |
headers | Headers to inject, each with a name, type, and value |
no_proxy | Hosts to bypass the proxy entirely (e.g. localhost) |
Header types
Each header has atype that controls how its value is stored and displayed:
| Type | Description |
|---|---|
workspace_secret | References a workspace secret using {KEY} syntax. Resolved at push time. |
plaintext | Value is stored and returned as-is. Use for non-sensitive headers. |
opaque | Write-only. Value is encrypted at rest and never returned via the API. |
Single API example
Create a sandbox that automatically injects an OpenAI API key into outbound requests:Multiple API example
Add multiple rules to authenticate with several services at once:Configure via SDK
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

