Claude Code
Two environment variables. Switch models with /model.
Anthropic API format
- 01Copy your Halfbill key from the dashboard.
- 02Export ANTHROPIC_BASE_URL=https://api.halfbill.uk and ANTHROPIC_AUTH_TOKEN=<key> in your shell profile.
- 03Optionally pin a default with ANTHROPIC_MODEL=claude-sonnet-5; ANTHROPIC_SMALL_FAST_MODEL=claude-haiku-4-5 keeps the helper model cheap.
- 04Run claude. Prompt caching keeps working — Claude Code manages its own cache markers.
bash
export ANTHROPIC_BASE_URL=https://api.halfbill.uk export ANTHROPIC_AUTH_TOKEN=<your Halfbill key> export ANTHROPIC_MODEL=claude-sonnet-5 claude