You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: model fallback in specific agents #9575
Strong +1 for this. My concrete use case: I have subagents pinned to cheap/free models (e.g. opencode/grok-code for shell-exec, opencode/gpt-5-nano for general) to avoid burning expensive tokens on trivial tasks. But free models occasionally hit rate limits or produce weak results for complex subagent work.
A fallback array like model: ['opencode/gpt-5-nano', 'openai/gpt-5-nano', 'google/gemini-2.5-flash-lite'] would let me tier: free → ultra-cheap paid → cheap paid, with automatic failover. Right now the only workaround is running a LiteLLM proxy as a custom provider, which adds unnecessary infrastructure for what should be a native config option.
A much needed feature so that no human intervention is needed to switch models, also can be useful in opencode github agent (We can set 2-3 models and automatic fallback handles whichever is possible) @rekram1-node
Extremely useful for me as well.
I have a sub agent set to Claude Models, would be great to switch to Gemini when I run out of tokens.
Right noew the subagent just get stuck and I don't even notice it
Reacted by dhruv kejriwal, Alexander K, Javier Huerta and Matt
Activity
github-actions commentedon Jan 20, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
farukg commentedon Feb 16, 2026
Strong +1 for this. My concrete use case: I have subagents pinned to cheap/free models (e.g.
opencode/grok-codefor shell-exec,opencode/gpt-5-nanofor general) to avoid burning expensive tokens on trivial tasks. But free models occasionally hit rate limits or produce weak results for complex subagent work.A fallback array like
model: ['opencode/gpt-5-nano', 'openai/gpt-5-nano', 'google/gemini-2.5-flash-lite']would let me tier: free → ultra-cheap paid → cheap paid, with automatic failover. Right now the only workaround is running a LiteLLM proxy as a custom provider, which adds unnecessary infrastructure for what should be a native config option.dhruvkej9 commentedon Feb 17, 2026
A much needed feature so that no human intervention is needed to switch models, also can be useful in opencode github agent (We can set 2-3 models and automatic fallback handles whichever is possible)
@rekram1-node
marcodiniz commentedon Feb 27, 2026
Extremely useful for me as well.
I have a sub agent set to Claude Models, would be great to switch to Gemini when I run out of tokens.
Right noew the subagent just get stuck and I don't even notice it
github-actions commentedon Apr 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.