Skip to content
FUMOFUMODocs

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

Get an API key →

Use a FUMO Dashboard key for an account registered and funded online.

ParameterValue
Base URLhttps://capi.fumolab.ai/api/fusion/v1
Available model IDsfusion-max-2.0, fusion-code-1.0
Upstream protocolOpenAI Responses API
CC Switch agentCLI: Claude Code (or Claude); Desktop: Claude Desktop
Connection modeLocal routing: Routing for CLI, Model Mapping for Desktop
Local listener127.0.0.1:15721 by default, managed by CC Switch
Recommended efforthigh (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:

text
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:

bash
brew install --cask cc-switch

If you installed it with Homebrew, upgrade with:

bash
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:

  1. Select the matching agent in the sidebar: Claude Code (or Claude) for CLI, or Claude Desktop for Desktop.
  2. Choose Add Provider, then create a custom provider.
  3. For Desktop, set the connection mode to Model Mapping, or enable Needs model mapping. CLI users can continue to the next step.
  4. Name it FUMO.
  5. Enter your FUMO API key.
  6. Open Advanced Options.
  7. Set Upstream Format / API Format to OpenAI Responses API.
  8. Enable Full URL Mode.
  9. Enter the Base URL followed by /responses as the endpoint:
text
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:

  1. In the provider form, click Fetch Models (download icon) next to a model input field.
  2. Select fusion-max-2.0 from the returned list for each Sonnet, Opus, and Haiku role. For CLI, select it for the default/main model as well.
  3. You can also select fusion-code-1.0 if 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:

  1. Save the FUMO provider.
  2. Open the Routing tab on the Claude Code page.
  3. Click Start routing to enable local routing for Claude Code.
  4. Confirm that FUMO is the current routing provider. If it is not selected, click Route here on its card.
  5. Keep the proxy bound to 127.0.0.1.
  6. Restart Claude Code to load the routing configuration.

Desktop: use Model Mapping in the Claude Desktop agent.

  1. Confirm that Model Mapping (or Needs model mapping) is enabled for FUMO.
  2. Save and click Switch to select FUMO. CC Switch starts local routing automatically.
  3. 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:

text
http://127.0.0.1:15721

Start Claude Code in your project:

bash
cd /path/to/your/project
claude

Validate the bridge

Test in increasing order of complexity:

  1. Ask a simple text question.
  2. Ask Claude Code to read one file.
  3. Ask it to propose a small edit without applying it.
  4. Apply a small edit and inspect the diff.
  5. Test a terminal command that is safe to repeat.
  6. 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.

Resources

Configure OpenClaw