Skip to content

Claude Code Config ​

This page explains how to add and enable the ccbug configuration for Claude Code in CC Switch.

Note

The request URL for Claude Code is different from Codex. Claude Code uses https://ccbug.cc, while Codex uses https://ccbug.cc/v1. Do not mix them.

Add A Claude Code Configuration ​

Open CC Switch, choose Claude Code, then click the plus button in the upper-right corner to add a configuration.

Add Claude Code configuration

Fill In Claude Code Configuration ​

Use the following values:

FieldValue
Provider nameccbug
Official URLhttps://ccbug.cc
API KeyThe Claude Code group API Key you created, for example sk-xxxx
Request URLhttps://ccbug.cc

Fill Claude Code configuration

Configure Models ​

Click "Get model list", then select the model you want in the model mapping dropdown.

Configure Claude Code model mapping

Reference configuration:

Model roleDisplay nameActual request model
Sonnetclaude-sonnet-4-6claude-sonnet-4-6
Opusclaude-opus-4-7claude-opus-4-7
Haikuclaude-haiku-4-5-20251001claude-haiku-4-5-20251001

Claude Code model reference

Enable The Claude Code Configuration ​

After saving, find ccbug in the Claude Code list in CC Switch and click "Enable".

Enable Claude Code configuration

Built with VitePress