Menu

Codex Switch to Cloudwise MaaS Models

Register Cloudwise MaaS as a custom provider in cc-switch, enable it, and route Codex — desktop and CLI — through a single Chat Completions endpoint

This guide follows the official Cloudwise walkthrough: download Codex, download cc-switch, register CloudWise MaaS as a custom provider (Chat Completions, routing required), then enable it and restart Codex. If you use Codex CLI, the flow is identical — just restart the codex command.

1. Download Codex

Download and install Codex from the official OpenAI page: https://openai.com/zh-Hans-CN/codex/.

2. Download cc-switch

Get the latest cc-switch release from GitHub: https://github.com/farion1231/cc-switch/releases.

cc-switch lets you register multiple LLM providers and switch between them for Codex, Claude Code, and other compatible tools.

3. Configure a New Provider for Codex — Cloudwise

Open cc-switch, go to the Codex tab and add a new provider using the Custom Configuration option. Fill in the form with the values below.

FieldValue
Provider NameCloudWise MaaS
Website URLhttps://maas.cloudwise.ai
API Keysk******* (your Cloudwise MaaS API key)
API Request URLhttps://api.cloudwise.ai/api/v1
Upstream FormatChat Completions (routing required)
Supports Thinking ModeChoose per model — all GPT models are supported.
Supports Reasoning EffortChoose per model — all GPT models are supported.
Model MappingSelect the model you actually want to use.
Save & EnableSave the provider and enable it.
1
Open cc-switch and select the Codex tab

Launch cc-switch. Switch to the Codex tab so the provider you create is scoped to Codex.

cc-switch main window showing the Codex tab and existing providers
2
Add a Custom Provider for Cloudwise

Click Add Provider, choose Custom Configuration, and fill in the fields exactly as shown in the table above.

cc-switch Add Provider form for Codex with Cloudwise MaaS values

Important: the API Request URL must end with /api/v1 and Upstream Format must be Chat Completions (routing required). Any other value will cause Codex to hit the wrong endpoint.

4. Use Codex

In cc-switch, Enable the custom Cloudwise provider, then restart Codex. All Codex requests will now be routed through Cloudwise MaaS.

1
Enable the Cloudwise provider

Back on the Codex tab, toggle the CloudWise MaaS provider to Enabled. The active provider is highlighted in the list.

cc-switch Codex tab with CloudWise MaaS provider enabled
2
Restart Codex to load the new config

Fully quit and relaunch Codex so it picks up the new provider written to ~/.codex/config.toml.

Generated ~/.codex/config.toml pointing to the Cloudwise MaaS provider

Note

If you are using Codex CLI, the configuration is identical — you only need to restart the codex command in your terminal for the new provider to take effect.