-
I have configured agentModels and agentRouting in my ~/.claude/settings.json. However, when I prompt the terminal with tasks like "Review Task" or "Plan this feature", it doesn't switch models automatically. It stays on the default model (Qwen 3.6 Plus in my case) for everything, even when I explicitly define Gemini for planning and Gemma for reviews.
{
"agentModels": {
"google/gemini-3.1-pro-preview-customtools": { ... },
"qwen/qwen3.6-plus": { ... },
"google/gemma-4-26b-a4b-it:free": { ... }
},
"agentRouting": {
"Plan": "google/gemini-3.1-pro-preview-customtools",
"Review": "google/gemma-4-26b-a4b-it:free",
"default": "qwen/qwen3.6-plus"
},
"mcpServers": {
"supabase": { ... },
"github": { ... }
}
}
What I've tried:
Verifying the file path on Windows (C:\Users\home.claude\settings.json).
Restarting OpenClaude multiple times.
Using specific keywords in prompts to trigger routing.
Checking the dashboard of the provider (OpenRouter) to confirm which model is actually being billed.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
have you tried to add at the end of .openclaude.json? or this file does not exist?
Beta Was this translation helpful? Give feedback.