Documentation Index
Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OneCLI injects your Anthropic API key into requests toapi.anthropic.com automatically. Agents make standard HTTP requests to the Anthropic API; the gateway adds the credentials before forwarding.
This lets agents use Claude models (Claude Opus, Sonnet, Haiku) without ever seeing or handling your API key directly.
Auth methods
| Format | Header | How it works |
|---|---|---|
API key (sk-ant-api...) | x-api-key | Key injected as raw value |
OAuth token (sk-ant-oat...) | Authorization | Injected as Bearer {token} |
Setup
Add your key
Click Add secret and select Anthropic API Key. Paste your API key (starts with
sk-ant-api or sk-ant-oat).How it works
- Your API key is encrypted and stored by OneCLI (AES-256-GCM at rest)
- When an agent sends a request to
api.anthropic.com, the gateway intercepts it - The gateway injects the API key into the appropriate header
- The request is forwarded to Anthropic