Claude Code
Both Claude Code CLI and Claude Desktop are supported. Select the matching agent in the latest CC Switch (v4.0+ recommended). Both clients use the same API key, endpoint, Responses upstream protocol, and model configuration workflow.
Both clients require local routing. Do not use Direct mode. For CLI, click Start routing under Routing. For Desktop, enable Model Mapping for the provider; switching to FUMO starts local routing automatically.
Version recommendation: CC Switch versions before v3 have known bugs. Upgrade to the latest stable release↗; v4.0 or later is recommended.
CC Switch is maintained by a third party. It converts Claude Code's Messages requests into Responses requests, then converts Responses output and streaming events back into Messages. Tool calls, reasoning content, and token accounting depend on adapter compatibility.
Fusion configuration
Use a FUMO Dashboard key for an account registered and funded online.
| Parameter | Value |
|---|---|
| Base URL | https://capi.fumolab.ai/api/fusion/v1 |
| Available model IDs | fusion-max-2.0, fusion-code-1.0 |
| Upstream protocol | OpenAI Responses API |
| CC Switch agent | CLI: Claude Code (or Claude); Desktop: Claude Desktop |
| Connection mode | Local routing: Routing for CLI, Model Mapping for Desktop |
| Local listener | 127.0.0.1:15721 by default, managed by CC Switch |
| Recommended effort | high (Fusion Max 2.0) |
How it works
Both clients send Anthropic Messages requests, while Fusion provides an OpenAI-compatible Responses endpoint. Use Responses as the upstream protocol and let CC Switch convert between Messages and Responses in both directions.
CC Switch↗ can run a local proxy between them:
Claude Code CLI / Claude Desktop
→ Anthropic Messages
→ CC Switch on 127.0.0.1
→ OpenAI Responses
→ FUMO
Setup
Step 1: Install your client and CC Switch
For CLI, follow the official Claude Code installation guide↗ and run claude --version to confirm the command is available. For Desktop, install Claude Desktop↗.
Install the latest stable CC Switch release using its official installation instructions↗. Version v4.0+ is recommended.
For example, on macOS:
brew install --cask cc-switch
If you installed it with Homebrew, upgrade with:
brew upgrade --cask cc-switch
Step 2: Get your FUMO API key
Follow Getting started for online self-service accounts (see Enterprise onboarding for enterprise accounts) to create and store your API key. If you use FUMO and have a sales representative, enter their Sales Code at signup or bind it later as described in Console and account.
Step 3: Add a Claude Code provider
In CC Switch:
- Select the matching agent in the sidebar: Claude Code (or Claude) for CLI, or Claude Desktop for Desktop.
- Choose Add Provider, then create a custom provider.
- For Desktop, set the connection mode to Model Mapping, or enable Needs model mapping. CLI users can continue to the next step.
- Name it FUMO.
- Enter your FUMO API key.
- Open Advanced Options.
- Set Upstream Format / API Format to OpenAI Responses API.
- Enable Full URL Mode.
- Enter the Base URL followed by
/responsesas the endpoint:
https://capi.fumolab.ai/api/fusion/v1/responses
Full URL Mode uses this address as-is without appending a request path. Both clients need local routing for protocol conversion: use Routing for CLI and Model Mapping for Desktop, rather than Direct.
Step 4: Fetch the model list and map roles
After entering the API key and endpoint, fetch the model list and select models without typing model IDs manually:
- In the provider form, click Fetch Models (download icon) next to a model input field.
- Select
fusion-max-2.0from the returned list for each Sonnet, Opus, and Haiku role. For CLI, select it for the default/main model as well. - You can also select
fusion-code-1.0if it is authorized for your key.
If fetching fails, check the API key, endpoint, network connection, and model permissions first. If needed, configure the model IDs listed under “Fusion configuration” manually.
Model IDs are checked against your API key's permissions. The service provisioned for that key determines the Fusion configuration used.
Fusion Max 2.0 supports five reasoning effort levels: low, medium, high, xhigh, and max. Use high as the recommended setting. CLI users can enter /effort high after starting Claude Code. Code 1.0 does not support adjustable effort.
Step 5: Enable local routing and restart your client
CLI: enable Routing in the Claude Code agent. Opening the Routing tab alone does not enable it:
- Save the FUMO provider.
- Open the Routing tab on the Claude Code page.
- Click Start routing to enable local routing for Claude Code.
- Confirm that FUMO is the current routing provider. If it is not selected, click Route here on its card.
- Keep the proxy bound to
127.0.0.1. - Restart Claude Code to load the routing configuration.
Desktop: use Model Mapping in the Claude Desktop agent.
- Confirm that Model Mapping (or Needs model mapping) is enabled for FUMO.
- Save and click Switch to select FUMO. CC Switch starts local routing automatically.
- Keep CC Switch running, then fully quit and reopen Claude Desktop.
The following configuration-file check and launch commands apply only to CLI. After takeover, env.ANTHROPIC_BASE_URL in ~/.claude/settings.json should point to the local route, normally:
http://127.0.0.1:15721
Start Claude Code in your project:
cd /path/to/your/project
claude
Validate the bridge
Test in increasing order of complexity:
- Ask a simple text question.
- Ask Claude Code to read one file.
- Ask it to propose a small edit without applying it.
- Apply a small edit and inspect the diff.
- Test a terminal command that is safe to repeat.
- Test a longer, multi-tool task.
Check the CC Switch request logs throughout these tests, including tool names, arguments, streamed tool calls, and stop reasons.
Security
The local proxy can see your API key, prompts, code context, tool calls, and responses. Keep it bound to 127.0.0.1; do not expose the proxy on 0.0.0.0 unless you intentionally need LAN access and have secured it separately.
Review CC Switch releases and source code according to your organization's third-party software policy before using it with private repositories.
Troubleshooting
The client still calls the previous provider
Confirm that FUMO is selected in the matching agent. For CLI, check that Routing is running and restart Claude Code. For Desktop, check that Model Mapping is enabled, then fully quit and reopen the app.
404 from Fusion
Confirm that the upstream format is OpenAI Responses API, Full URL Mode is enabled, and the endpoint is the Base URL in the table followed by /responses. For CLI, check that Routing is running. For Desktop, check that the provider uses Model Mapping rather than Direct.
Text works but tools fail
Upgrade to the latest CC Switch (v4.0+ recommended), confirm that the upstream format is Responses, then inspect tool definitions, streamed arguments, and tool results in the routing logs.
The local proxy is unreachable
Confirm that CC Switch is running and listening on the configured port. If you changed the address or port, click Save and restart service under Settings → Local routing.

