Connect CC Switch to TeamoRouter

CC Switch is an open-source desktop app that manages provider configuration for Claude Code, Claude Desktop, Codex, Gemini CLI, OpenCode, OpenClaw, and Hermes Agent in one panel.

1. Install CC Switch

macOS users can install it with Homebrew:

plaintext
brew install --cask cc-switch

Or download the installer from CC Switch Releases:

  • macOS: .dmg or .zip
  • Windows: .msi installer or portable .zip
  • Linux: .deb, .rpm, or .AppImage

If macOS Gatekeeper blocks the first launch, open System Settings, go to Privacy & Security, and allow the app.

2. Connect Claude Code

For installing Claude Code from scratch, see Connect Claude Code CLI to TeamoRouter.

If CC Switch and Claude Code are already installed, add TeamoRouter as a Claude Code provider:

Add a custom Claude Code provider in CC Switch

  1. Open CC Switch and switch to the Claude Code tab.

  1. Click the add-provider button in the top-right corner.
  2. Choose Custom as the configuration type.
  3. Fill in the base fields:

  • Provider name: TeamoRouter
  • Website, optional: https://teamorouter.com
  • API Key: paste the key you created in the TeamoRouter dashboard
  • Base URL: https://api.teamorouter.com
  1. Expand Advanced options:
  • API format: Anthropic Messages
  • Auth field: keep the default ANTHROPIC_AUTH_TOKEN
  • Model mapping: click Fetch model list to load all TeamoRouter models, then add the ones you need
  • For models that need 1M context, enable the 1M flag on the matching row
  1. Click Add to save.

Enable TeamoRouter in the Claude Code tab

Return to the Claude Code tab and click Enable on the TeamoRouter provider card.

3. Connect Claude Desktop

Install Claude Desktop from the Claude download page:

  • macOS: download the .dmg, or run brew install --cask claude
  • Windows: download and run the .exe installer

If CC Switch and Claude Desktop are already installed:

Add the provider

  1. Open CC Switch and switch to the Claude Desktop tab.
  2. Click Add provider.
  3. Fill in:

  • Provider name: TeamoRouter
  • API Key: paste the key you created in the TeamoRouter dashboard
  • Base URL: https://api.teamorouter.com
  1. Click Add to save.

Enable TeamoRouter

Return to the Claude Desktop tab and click Enable on the TeamoRouter provider card. Restart Claude Desktop completely after switching.

4. Connect Codex

For installing Codex from scratch, see Connect Codex CLI to TeamoRouter.

If CC Switch and Codex are already installed:

Add the provider

  1. Open CC Switch and switch to OpenAI.
  2. Click Add provider.
  3. Fill in:

  • Provider name: TeamoRouter
  • Website, optional: https://teamorouter.com
  • API Key: paste the key you created in the TeamoRouter dashboard
  • API base URL: https://api.teamorouter.com/v1
  • Model name: keep gpt-5.4, or fetch the model list and choose another TeamoRouter model
  1. Keep API format as OpenAI Responses API.
  2. Click Add to save.

Enable TeamoRouter

Return to OpenAI and click Enable on the TeamoRouter provider card. Codex does not hot-switch providers, so restart the running Codex terminal process.

5. Connect Gemini CLI

Gemini CLI support in CC Switch is not available yet.

6. Connect OpenCode

See Connect OpenCode to TeamoRouter. CC Switch does not support OpenCode connection yet.

7. Connect OpenClaw

See Connect OpenClaw to TeamoRouter.

8. Connect Hermes Agent

If CC Switch and Hermes Agent are already installed, add TeamoRouter as a Hermes provider:

Add the provider in CC Switch

  1. Open CC Switch and switch to the Hermes tab.
  2. Click Add provider.
  3. Fill in:
  • Provider ID: teamorouter
  • Provider name: TeamoRouter
  • Website, optional: https://teamorouter.com
  • API mode: keep OpenAI Chat Completions
  • API endpoint: https://api.teamorouter.com/v1
  • API Key: paste the key you created in the TeamoRouter dashboard
  1. In the model list, fetch the TeamoRouter models or add models manually. Each model needs at least a model ID and display name. Put claude-opus-4-7 first if you want it as the default.
  2. Click Add to save.

Enable the provider

Return to the Hermes tab and click Enable on the TeamoRouter provider card. CC Switch writes the configuration to the Hermes config file, usually ~/.hermes/config.yaml. Restart the Hermes process completely.

Switch to TeamoRouter in Hermes

Run:

plaintext
hermes setup

In the provider wizard, use the arrow keys to find:

plaintext
teamorouter (api.teamorouter.com/v1) - model-name

Press Enter or Space to select it. Then run hermes to start a session.

Ready? Three steps to startLog in to the console · top up · create an API key
Scan to join the WeChat support group
Need help?Scan to join the support group
Connect CC Switch to TeamoRouter · Docs