ORYNX

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):

~/.claude/settings.json
{
  "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_TOKEN sends the key as Authorization: Bearer. ANTHROPIC_API_KEY sends it as x-api-key instead, 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_MODEL they 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 /context shows approximate counts.
  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC turns off telemetry, error reporting and auto-updates. Run claude update to update by hand.
  • If requests fail with a 400 that mentions context_management or Extra inputs are not permitted, add "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1" to the env block.
  • 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

On this page