Issue configuring OpenRouter free models via .claude/settings.local.json #239
Replies: 1 comment
-
|
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
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! 👋 I'm relatively new to this and could use a little guidance.
I am trying to use a free model from OpenRouter (google/gemma-4-26b-a4b-it:free) instead of the default generic models. To do this, I updated the settings.local.json file to point the Anthropic base URL to OpenRouter's API and changed the model name. It is happening with every free model.
However, I'm running into an issue where the model isn't triggering correctly. I've attached a screenshot of my current setup for reference.
Am I configuring this in the right place, or is there another step I'm missing to get OpenRouter models working? Any advice would be greatly appreciated!
Also please suggest me some other ways too if this is wrong approach, as it says it is free.
Beta Was this translation helpful? Give feedback.
All reactions