Issue configuring OpenRouter free models via .claude/settings.local.json #239
Replies: 2 comments
|
You’re using the right file if it’s ✅ Working OpenRouter setup{
"env": {
"ANTHROPIC_BASE_URL": "https://openrouter.ai/api",
"ANTHROPIC_AUTH_TOKEN": "YOUR_OPENROUTER_API_KEY",
"ANTHROPIC_API_KEY": ""
}
}🔍 Things to check1) Log out firstIf you previously logged into Claude Code with Anthropic, run: /logout2) Restart Claude Code3) Verify with
|
|
Sorry for the slow reply here, @Sarthak8822 — busy stretch, and your question deserved better. What you're hitting: pointing |


Sorry for the slow reply here, @Sarthak8822 — busy stretch, and your question deserved better. What you're hitting: pointing
ANTHROPIC_BASE_URLat OpenRouter fails because the API formats don't match (tool/skill calls in Claude Code's format aren't translated by OpenRouter's compatibility layer, so models can't follow the skill files). The paths that DO work today: (1) opencode + OpenRouter — see Discussion #700 where the community documented running career-ops completely free that way; (2) Gemini CLI (free tier) — supported since #349. A native OpenRouter runner is also in review (#53). Marking answered — the #700 route is your best bet right now.