Integrations

CC-Switch

CC-Switch is a desktop app for managing API providers for Claude Code, Codex and other tools, and switching between them in one click instead of editing config files by hand.

Install

On macOS, install with Homebrew:

Terminal
brew install --cask cc-switch

For Windows and Linux, download an installer from CC-Switch's GitHub Releases.

Add FlyRouter for Claude Code

Create a provider

Select Claude Code on the left, click + in the top right to add a provider, and choose Custom Configuration.

Fill in the details

FieldValue
NameFlyRouter
API KeyYour FlyRouter key (sk-...)
API Endpointhttps://api.flyrouter.ai (without /v1)
Model MappingMain model claude-sonnet-5-5, Opus claude-opus-5-5, Haiku claude-haiku-5-5

Enable it

Save, then click Enable on the provider card. CC-Switch writes the settings to ~/.claude/settings.json; restart Claude Code to apply them.

Add FlyRouter for Codex

Select Codex on the left and add a custom provider the same way:

FieldValue
API KeyYour FlyRouter key
API Endpointhttps://api.flyrouter.ai/v1 (with /v1)
Modelgpt-6.1-sol

Save, enable it and restart Codex. Codex can only use GPT models; see Codex.

Show spend (optional)

CC-Switch's usage query can show spend on the provider card. From the card's ⋯ menu, choose Configure usage query, turn it on, pick a custom script and enter:

Usage script
({
  request: {
    url: "https://api.flyrouter.ai/v1/dashboard/billing/usage",
    method: "GET",
    headers: { Authorization: "Bearer {{apiKey}}" },
  },
  extractor: function (response) {
    return { used: response.total_usage / 100, unit: "USD", isValid: true };
  },
})

Click Test script; if it shows an amount, save. The script shows the total this key has spent. For the endpoint details, see Balance and usage.

FlyRouter

One key, every top AI model