Use DeepSeek, Kimi, GLM, and other open-source models in Claude Code with Auriko

Point Claude Code at Auriko to access open-source and open-weight models through one API key.


Claude Code works well with Anthropic's models. If you also want to use open-source and open-weight models (DeepSeek, Kimi, GLM, Qwen) or other providers (Gemini, Grok, MiniMax), Auriko gives you access through the same interface.

Setup is three environment variables in your shell profile:

export ANTHROPIC_BASE_URL="https://api.auriko.ai"
export ANTHROPIC_AUTH_TOKEN="ak_live_..."   # your Auriko API key
export ANTHROPIC_API_KEY=""

After that, pass model IDs with the --model flag:

claude --model deepseek-v4-flash
claude --model gemini-2.5-pro
claude --model grok-4.3

Or switch mid-session with /model deepseek-v4-flash.


Remap the model picker

Claude Code's model picker shows three tiers: Sonnet, Opus, and Haiku. You can remap what each tier resolves to:

export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-flash"
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-4-7"

After this, selecting "Sonnet" in the picker runs DeepSeek instead. The rest of the workflow stays the same.


Keep your Anthropic subscription

If you have a direct Anthropic account, you don't have to choose. A wrapper script lets you run claude for your Anthropic subscription and claude-auriko for Auriko sessions. Both work from the same terminal. The integration guide covers the setup.


What Auriko does with the request

Auriko routes each request to the cheapest available provider for that model. Routing decisions use request metadata only (token counts, context length, capability flags like streaming and tool use). We never see, log, or store your prompts, responses, or content.


Get started