How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How to Use Claude Code with OpenRouter

calendar_today June 16, 2026 person OpenRouter domain openrouter

Tutorial for routing Claude Code through OpenRouter using three environment variables: OPENROUTER_API_KEY, ANTHROPIC_BASE_URL pointed at OpenRouter’s endpoint, and an emptied ANTHROPIC_API_KEY. Covers model routing (Opus for architecture, Sonnet for everyday coding, Haiku for quick tasks), Fast Mode for up to 2.5x faster Opus output, and pricing at provider rates plus a 5.5% credit fee (minimum $0.80) with a free tier of up to 1,000 requests daily; also works in CI/CD and with the Anthropic Agent SDK.

open_in_new Read original post