1
Set the environment
Add these lines to your shell profile (
~/.zshrc or ~/.bashrc), then open a new terminal:ANTHROPIC_API_KEY must be empty, or Claude Code sends that key instead of yours.2
Sign out of Anthropic
If Claude Code is signed in to an Anthropic account, run
/logout once so it uses your key.3
Start it
Start it in your project with any model: