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:
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 config.toml
~/.codex/auth.json and ~/.codex/config.toml):auth.jsonSave and enable the provider. Related: Codex.
5
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
Related
- CC Switch — Add Provider — Custom preset and API Format
- Claude Code — same Anthropic env pattern without CC Switch
- Codex — same OpenAI-compatible gateway
- OpenCode / OpenClaw — direct config when not using CC Switch
- Models & Pricing — Model IDs and rates
- LLM API guide — protocols and curl examples