[FEATURE]: fallback models for (sub) agents #6190

Closed
opened 2026-02-16 18:01:32 -05:00 by yindo · 0 comments
Owner

Originally created by @imqqmi on GitHub (Jan 15, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem: some models/providers may have issues, ie service is temporarily offline or you've hit rate limits.
Solution: instead of having one model, use an array so that multiple models can be given as a fallback, when one model fails, the second or third can be attempted (and remember using the second for 15 minutes, then retry primary model).
This avoids manual switching between models, and subagents that don't offer the option to switch models/providers can try other models/providers.
A message can be flashed to the user that opencode is switching to a different model so the user knows what's going on.

This is not the same as the feature request for dynamic model switching where the agent takes initiative, this is a configuration setting where fallback models/providers can be given and opencode decides when to use them (running into issues > fallback).

Originally created by @imqqmi on GitHub (Jan 15, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Problem: some models/providers may have issues, ie service is temporarily offline or you've hit rate limits. Solution: instead of having one model, use an array so that multiple models can be given as a fallback, when one model fails, the second or third can be attempted (and remember using the second for 15 minutes, then retry primary model). This avoids manual switching between models, and subagents that don't offer the option to switch models/providers can try other models/providers. A message can be flashed to the user that opencode is switching to a different model so the user knows what's going on. This is not the same as the feature request for dynamic model switching where the agent takes initiative, this is a configuration setting where fallback models/providers can be given and opencode decides when to use them (running into issues > fallback).
yindo added the discussion label 2026-02-16 18:01:32 -05:00
yindo closed this issue 2026-02-16 18:01:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6190