en-guides-claude-code-api-key.md
Use OmniaKey with Claude Code by setting the Anthropic base URL to https://api.omniakey.com and using your OmniaKey API key as the auth token.
Do not add /v1 to the Claude Code base URL. Claude Code and the Anthropic SDK append /v1/messages automatically.
export ANTHROPIC_BASE_URL="https://api.omniakey.com"
export ANTHROPIC_AUTH_TOKEN="your-omniakey-api-key"
claude
Open the API Keys dashboard, create a key for your local machine or CI environment, and copy it once.
Claude Code speaks Anthropic’s Messages API. Use the bare API host and your OmniaKey token:
macOS / Linux
Windows (PowerShell)
export ANTHROPIC_BASE_URL="https://api.omniakey.com"
export ANTHROPIC_AUTH_TOKEN="your-omniakey-api-key"
claude
$env:ANTHROPIC_BASE_URL = "https://api.omniakey.com"
$env:ANTHROPIC_AUTH_TOKEN = "your-omniakey-api-key"
claude
Use Claude model ids from Models, such as claude-opus-4-8, claude-sonnet-5, or claude-haiku-4-5. The model id you request is the model that runs.
Use https://api.omniakey.com. Do not add /v1.
Set ANTHROPIC_AUTH_TOKEN to your OmniaKey API key.
No. OmniaKey does not silently substitute, quantize, or distill models.
⌘I