Option A: Standard API Key
Pay-per-token billing from console.anthropic.com.- Token prefix:
sk-ant-api03- - Sent via
X-Api-KeyHTTP header - Direct SDK connection to
api.anthropic.com
Option B: Max/Pro Subscription
Flat monthly rate using your Claude subscription via theclaude CLI.
- Token prefix:
sk-ant-oat01- - agtOS spawns the
claudeCLI as a subprocess - No external proxy needed — the CLI handles OAuth
The
claude CLI must be installed and on your PATH. Install from claude.ai/download.Auto-Detection
agtOS checks env vars in this priority order:ANTHROPIC_AUTH_TOKEN/CLAUDE_CODE_OAUTH_TOKEN→ CLI transportANTHROPIC_API_KEY/CLAUDE_API_KEY→ SDK transport
sk-ant-oat→ Bearer auth (CLI subprocess)sk-ant-api→ API key auth (direct SDK)