Claude Code
Run Claude Code on ORYNX with one settings file.
Claude Code uses the Anthropic Messages API, which ORYNX serves for every Claude model.
Configure
Add an env block to ~/.claude/settings.json (create the file if it does not exist):
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.orynx.dev",
"ANTHROPIC_AUTH_TOKEN": "sk-orynx-...",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}Start Claude Code and run /status. The Status tab should show https://api.orynx.dev as the base URL and
ANTHROPIC_AUTH_TOKEN as the credential.
Use the host only: https://api.orynx.dev, without /v1. Claude Code adds /v1/messages itself.
Notes
ANTHROPIC_AUTH_TOKENsends the key asAuthorization: Bearer.ANTHROPIC_API_KEYsends it asx-api-keyinstead, and Claude Code asks you once to approve it. ORYNX accepts both.- Background tasks such as session titles run on the Haiku pin. Without
ANTHROPIC_DEFAULT_HAIKU_MODELthey run on your main model, which costs more. - Prices for the pinned models, per 1M input / output tokens: Opus 5 $5.00 / $25.00, Sonnet 5 $2.00 / $10.00, Haiku 4.5 $1.00 / $5.00.
- ORYNX does not serve the token counting endpoint, so Claude Code estimates context size from the text and
/contextshows approximate counts. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICturns off telemetry, error reporting and auto-updates. Runclaude updateto update by hand.- If requests fail with a
400that mentionscontext_managementorExtra inputs are not permitted, add"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"to theenvblock. - Prompt caching works. Cached reads are billed at the cache read price.
One-off shell setup
export ANTHROPIC_BASE_URL="https://api.orynx.dev"
export ANTHROPIC_AUTH_TOKEN="sk-orynx-..."
claude