Connect Claude Code to ApiClo
Claude Code can send Anthropic-compatible requests through ApiClo. Set the Base URL to https://apiclo.com without /v1, use an ApiClo key as ANTHROPIC_AUTH_TOKEN, and choose an available model ID. ApiClo usage is billed separately from a Claude subscription.
Before you start
- Install a current Claude Code build and create a separate ApiClo API key.
- Check the selected model and current tariff before starting a long coding session.
Steps
Set the gateway
Set ANTHROPIC_BASE_URL=https://apiclo.com. Claude Code appends /v1/messages itself, so do not add /v1 to this variable.
Set authentication and model
Set ANTHROPIC_AUTH_TOKEN to your ApiClo key and ANTHROPIC_MODEL to the exact model ID, such as claude-sonnet-5. Keep the key out of repository files.
Start and inspect
Run claude from the same shell, then use /status to inspect the active Base URL and token source before sending a short test request.
Examples
macOS / Linux
export ANTHROPIC_AUTH_TOKEN="YOUR_APICLO_KEY"
export ANTHROPIC_BASE_URL="https://apiclo.com"
export ANTHROPIC_MODEL="claude-sonnet-5"
claude
Windows PowerShell
$env:ANTHROPIC_AUTH_TOKEN="YOUR_APICLO_KEY"
$env:ANTHROPIC_BASE_URL="https://apiclo.com"
$env:ANTHROPIC_MODEL="claude-sonnet-5"
claude
Check the result
A short request returns an answer and appears in ApiClo usage. Inspect the charged model and cache-read or cache-write tokens in Logs; a successful text request does not prove every Claude Code feature works through a gateway.
Troubleshooting
- 401: check that ANTHROPIC_AUTH_TOKEN contains the full ApiClo key. ANTHROPIC_API_KEY is for clients that require x-api-key instead of a Bearer token.
- 404: remove a duplicated /v1 from ANTHROPIC_BASE_URL and confirm the model ID.
- If /status shows another account or endpoint, inspect the active Claude Code settings and environment in that shell.
Compatibility and billing
ApiClo is an independent gateway, not Anthropic or a Claude subscription. Feature availability depends on the Claude Code version, model, and gateway support. Prompt-cache writes may cost more than regular input; review current ApiClo rates.
All documentation