Skip to main content
CC Switch manages API providers for Claude Code, Codex, OpenCode, OpenClaw, Hermes, and related tools. Modellix is not a built-in preset — add a custom provider and point each app at the Modellix LLM gateway.
This page covers LLM text only (https://llm.modellix.ai).Base URL differs by protocol:See Models & Pricing. Prefer app-specific providers over a single Unified Provider — Claude and Codex need different Base URL shapes.

Set Up CC Switch

1

Install CC Switch

Download and install CC Switch for your OS. Open the app and select the target tool tab (for example Claude Code or Codex).
2

Get a Modellix API Key

Create a key in the Modellix console. You will paste it into the custom provider form.
3

Add Modellix for Claude Code

On the Claude Code tab, click + → choose the Custom preset (not AiHubMix or another built-in).In the JSON config (or form fields that map to it), set:
Do not append /v1 to ANTHROPIC_BASE_URL. Claude Code appends /v1/messages itself. Leave Full URL Mode off for this setup. Do not switch API Format to OpenAI Chat Completions unless you intentionally use CC Switch proxy conversion — Modellix already speaks native Messages at this host.
Save, then Enable the Modellix provider card so Claude Code uses it. Details match the standalone Claude Code guide.
4

Add Modellix for Codex

On the Codex tab, click +Custom. Configure auth and TOML (CC Switch writes ~/.codex/auth.json and ~/.codex/config.toml):auth.json
config.toml
Save and enable the provider. Related: Codex.
5

Optional: OpenCode or OpenClaw

On the OpenCode or OpenClaw tab, prefer the OpenAI Compatible preset (or Custom if you need a full provider block).For hand-edited OpenCode / OpenClaw configs, see OpenCode and OpenClaw.
6

Select Models

Enter Modellix Model IDs manually when needed. Fetch Models calls OpenAI-compatible /v1/models; if that endpoint is unavailable, the picker stays empty — paste IDs from Models & Pricing.Enable the Modellix provider for the active app, then run that CLI/IDE as usual.

Troubleshooting