Set Up Claude Code
1
Get a Modellix API Key
Create a key in the Modellix console. Claude Code maps
ANTHROPIC_API_KEY to the Anthropic-style x-api-key header.2
Set Environment Variables
If the tool expects Bearer auth, use
ANTHROPIC_AUTH_TOKEN instead of ANTHROPIC_API_KEY. Do not set both to different values.3
Persist in Settings
Write the same values to Replace
~/.claude/settings.json:mdlx-xxxxxxxx with your Modellix API key.Session Headers
Claude Code may send its own session header (for exampleX-Claude-Code-Session-Id). Modellix also accepts X-Mdlx-Session-Id; if both are present, X-Mdlx-Session-Id wins. See Session header.
Related
- Anthropic SDK — Messages examples in Python / TypeScript
- Claude Agent SDK — same env vars for the programmable agent harness
- Create message — OpenAPI reference
- LLM API guide — auth, errors, and rate limits