llmrelay
// Workflow

Use CC Switch with llmrelay

Desktop app that swaps API providers for Claude Code and other CLIs Point it at api.llmrelay.dev and get the same models at half the price.

Recommended model
claude-opus-5
Route
anthropic-compatible
On llmrelay
$2.5/M · $12.5/M

Setup

  1. 1 Install CC Switch and select the Claude Code tab in the main window.
  2. 2 Click the + button to open the Add Provider panel and pick the Custom preset.
  3. 3 In the JSON editor, set env.ANTHROPIC_BASE_URL to https://api.llmrelay.dev and env.ANTHROPIC_AUTH_TOKEN to your relay key.
  4. 4 Click Add to save, then select the provider and click Enable (or pick it from the tray menu).
  5. 5 Claude Code hot-switches without a restart; other tools need a terminal restart.

Config

// ~/.claude/settings.json (written by CC Switch); CC Switch's own data lives in ~/.cc-switch/cc-switch.db
// CC Switch "Custom" provider JSON for Claude Code
// CC Switch writes this env block into ~/.claude/settings.json when you enable the provider
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.llmrelay.dev",
    "ANTHROPIC_AUTH_TOKEN": "***"
  }
}

Smoke test

Copy, paste, run. If you get JSON back with a message, you're good.

In the provider editor click the endpoint test button (CC Switch calls the OpenAI-compatible /v1/models endpoint with your key), then run `claude` in a terminal and send one prompt.

Gotchas

You need an llmrelay key first

Sign up in about 30 seconds — free to create an account, no subscription, $10 minimum top-up.

Related integrations