Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue with Agent Routing configuration not being recognized #694

Unanswered
orickmaxx asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

have you tried to add at the end of .openclaude.json? or this file does not exist?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /