Prerequisites
- Claude Code installed and working
- An Auriko API key
Clear existing Anthropic login
If you’ve previously logged in to Claude Code with an Anthropic account, cached credentials take precedence over environment variables. Clear them first:Set your API key
Add these three lines to your shell profile (~/.zshrc on macOS, ~/.bashrc on Linux):
ANTHROPIC_API_KEY="" must be an empty string. If it contains any value, Claude Code uses it directly against Anthropic, bypassing Auriko.
The base URL must not include /v1. Claude Code appends /v1/messages itself.
Reload your shell after saving:
Use Auriko alongside a direct Anthropic subscription
Use Auriko alongside a direct Anthropic subscription
To keep Create the wrapper script:Add Reload your shell, then verify:Use
claude connected to your Anthropic account, create a wrapper command instead of modifying your shell profile.Add your Auriko API key to your shell profile (~/.zshrc or ~/.bashrc):~/.local/bin to your PATH if it isn’t already:claude-auriko for Auriko sessions and claude for your Anthropic subscription. You don’t need to clear your Anthropic login.Verify
Use different models
Pass any Auriko model ID with the--model flag:
400 error. Browse per-model capabilities in the directory API.
These are some of the models available through Auriko:
To list available models:
/model picker in interactive sessions lists only Claude tier names (Opus, Sonnet, and Haiku). To switch to a non-Claude model mid-session, type the full ID: /model deepseek-v4-flash. You can also remap the tier aliases (next section) so picker entries route through Auriko.
Override model tier aliases
Claude Code uses three model tiers (sonnet, opus, haiku). You can override which model each tier maps to:claude-auriko wrapper, add these exports to the wrapper script instead.