Codex
Use the latest CC Switch (v4.0+) in Direct + Responses (native) mode to connect to Fusion Model. CC Switch configures the provider, and Codex App and CLI send Responses API requests directly to Fusion without protocol conversion.
Compatibility note: Fusion provides a stateless Responses API with text and image input. Codex's local file, shell, and other client-executed tools are supported through function and custom/freeform calls. OpenAI-hosted tools, non-image file attachments, stored responses, and
previous_response_idchaining are not available.
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 |
| API protocol | OpenAI Responses API |
| Recommended connection | CC Switch Direct + Responses (native) |
| Recommended context | 373k tokens (373000) |
| Recommended effort | high (Fusion Max 2.0) |
What is Codex?
Codex↗ is an OpenAI coding agent for repository-aware software development. The CLI can connect to a custom model provider over the Responses API.
Recommended: Direct connection with CC Switch
Step 1: Prepare the apps and API key
Install the Codex client you want to use: Codex App↗, or Codex CLI with npm install --global @openai/codex. Then install the latest CC Switch↗. Version v4.0+ is recommended. Versions before v3 have known bugs; upgrade first.
Have your FUMO API key ready. If you need one, follow Getting started for online self-service accounts (see Enterprise onboarding for enterprise accounts).
Step 2: Create a custom configuration
Select Codex in the CC Switch sidebar and open the Direct tab. Click the new configuration button in the upper-right corner and create a custom configuration with these values:
| Field | Value |
|---|---|
| Configuration name | For example, FUMO |
| API key | Your FUMO API key |
| API request URL | https://capi.fumolab.ai/api/fusion/v1 |
The URL should end in /v1. Do not append /responses.
Step 3: Fetch the model list and select models
After entering the API key and request URL, expand Advanced options and fetch the model list to select models without typing model IDs manually:
- Set Upstream format to Responses (native).
- Click Fetch Models (download icon) next to the model input field.
- Select
fusion-max-2.0from the returned list and add it to the configuration. You can also selectfusion-code-1.0if authorized for your key.
If fetching fails, check the API key, request URL, network connection, and model permissions first. If needed, add the model IDs listed under “Fusion configuration” manually.
If you add multiple models, set fusion-max-2.0 as the Default Model, or place it first in the model mapping table.
Step 4: Set the context window and reasoning effort
In model mapping, set Fusion Max 2.0's Reasoning Levels to low, medium, high, xhigh, and max so they appear in Codex's reasoning effort menu.
In the config.toml section of the CC Switch provider configuration editor, update the following top-level settings. Edit existing fields or add missing ones before the first TOML table header ([...]), keeping the rest of your configuration:
model_context_window = 373000
model_reasoning_effort = "high"
web_search = "disabled"
This example is for Fusion Max 2.0. If you select Code 1.0, remove the model_reasoning_effort line from this example and keep the context and Web Search settings. That model does not support adjustable effort.
Set the context window to 373k tokens. This is the recommended agent client setting; see Model specifications for the model's maximum context window. Codex may display a slightly smaller usable window. Fusion does not currently support OpenAI-hosted Web Search, so the example sets it to disabled.
Fusion Max 2.0 supports five reasoning effort levels: low, medium, high, xhigh, and max. Use high as the recommended setting; the service defaults to medium when effort is omitted. Code 1.0 does not support adjustable effort.
Step 5: Save, enable, and restart Codex
- Save the configuration.
- Return to the Codex Direct tab in CC Switch. If Routing or Aggregation is active, click Back to direct first.
- Click Switch on the FUMO card and confirm that it shows In use.
- Restart your Codex client to refresh the model list: fully quit and reopen the app, or end the CLI process and run
codexagain. - Select
fusion-max-2.0in the Codex App model picker or the CLI's/modelmenu to start using Fusion Max 2.0.
After saving, switch to the FUMO configuration and restart Codex. Restart Codex again whenever you change the model mapping so that the model list refreshes.
Codex CLI can use the same CC Switch direct configuration. Restart the CLI after enabling it.
Codex CLI: Manual configuration (optional)
If you prefer to maintain the configuration manually, use the same Responses direct connection settings below.
Step 1: Install Codex CLI
Install the current package with npm:
npm install --global @openai/codex
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: Set your API key
Export the key in the shell that starts Codex:
export FUMO_API_KEY="your-key"
Add it to your shell profile or secret manager if you want it to persist across sessions.
Step 4: Configure the provider
Create or update ~/.codex/config.toml. Edit existing fields and the [model_providers.fumo] table, or add them if missing, keeping the rest of your configuration. Put top-level settings before the first TOML table header:
model = "fusion-max-2.0"
model_provider = "fumo"
model_context_window = 373000
model_reasoning_effort = "high"
model_reasoning_summary = "auto"
model_supports_reasoning_summaries = true
web_search = "disabled"
[model_providers.fumo]
name = "FUMO"
base_url = "https://capi.fumolab.ai/api/fusion/v1"
env_key = "FUMO_API_KEY"
wire_api = "responses"
wire_api = "responses" selects POST /responses. The model_context_window = 373000 and model_reasoning_effort = "high" settings apply the recommended context window and reasoning effort. web_search = "disabled" turns off the unsupported hosted search tool. Fusion supports auto, concise, and detailed reasoning summaries; use auto as the recommended setting.
Step 5: Start Codex
Run Codex from your project:
cd /path/to/your/project
codex
Codex will send the Fusion Max 2.0 model label by default.
CLI: Choose a model label
Start a session with the Fusion Max 2.0 model ID authorized for your key:
codex --model fusion-max-2.0
You can also change the top-level model value in ~/.codex/config.toml. Model IDs are checked against your API key's permissions. The service provisioned for that key determines the Fusion configuration used.
Remove model_reasoning_effort when switching to Code 1.0, which does not support adjustable effort.
Supported workflow
Fusion's Responses endpoint supports the parts Codex needs for repository work:
- text and image input plus developer instructions;
- function and custom/freeform tools plus tool results;
- parallel tool calls;
- streaming Responses events;
- reasoning summaries and text verbosity controls.
Supported models: fusion-max-2.0, fusion-code-1.0. Only Max 2.0 supports low / medium / high / xhigh / max effort (recommended high, default medium); Code 1.0 does not support adjustment.
Do not enable Codex web search for this provider. Use Codex's local function or custom/freeform tools, or another client-executed tool integration instead.
Troubleshooting
Fusion models do not appear in the app
Confirm that the new configuration is enabled on the Codex page in CC Switch and that the desired models have been added and saved under model mapping. Then fully quit and reopen Codex App. If CC Switch cannot fetch the model list, check your API key, request URL, and network connection, and confirm that your key has access to the models.
CLI API key is missing
Confirm that FUMO_API_KEY is exported in the same environment that starts Codex:
test -n "$FUMO_API_KEY" && echo "key is set"
The request uses the wrong endpoint
Confirm that base_url ends in /v1 and wire_api is responses. Codex appends /responses.
Reasoning summary settings
Set model_reasoning_summary = "auto" at the top level of ~/.codex/config.toml and keep model_supports_reasoning_summaries = true. Summary detail and reasoning effort are independent settings.
Attachments or hosted tools fail
Images are supported when Codex sends them as Responses input_image parts. Use Codex's local function or custom/freeform tools for actions; audio, non-image file input, and OpenAI-hosted tools are not supported.

