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]: Add missing --variant option for standard "opencode" command to start new session. #37925
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
For example, I'd like to:
alias oc-fast='OPENCODE_DISABLE_MODELS_FETCH=1 opencode --model openai/gpt-5.6-sol --variant low`
But currently, there is no way that I can find to specify the variant on the CLI for the normal start session mode – there is a --variant CLI flag already for the run command. This feature was suggested before but was auto-closed and not re-opened by the author: #7354 and he opened a PR here: #7358
Yeah, that particularly nice to have if you spawn session via herdr or something similar, you need interactive UI with the reasoning effort preconfigured. Strange that we have it for run but not for the normal opencode
I'm running into this when using worktrunk merge, it errors out with Unrecognized flag: --variant in command opencode run. The command work trunk runs is opencode run -m anthropic/claude-haiku-4.5 --variant fast
Thanks for the request, @colinmollenhour! From the alias (opencode --model ... on the root command) and run --variant, this looks like OpenCode v1 (0.x/1.x). v1 now only gets fixes for critical bugs, so new CLI flags like this are unlikely to be added there.
We'd encourage upgrading to v2 (@opencode/cli). The CLI works differently there:
opencode run and opencode mini take the variant as part of the model: --model openai/gpt-5.6-sol#low.
We haven't heard back, so I'm closing this as not planned. It's a feature request for OpenCode v1, and v1 now only gets fixes for critical bugs.
In v2, opencode run and opencode mini take the variant as part of the model, for example --model openai/gpt-5.6-sol#low. Adding --model back to the root opencode command is tracked in #56218. If you run into this on v2, please comment there or open a new issue. Thanks, @colinmollenhour!
Activity
s-KaiNet commentedon Sep 16, 2026
Yeah, that particularly nice to have if you spawn session via herdr or something similar, you need interactive UI with the reasoning effort preconfigured. Strange that we have it for
runbut not for the normalopencodechristiaan-janssen commentedon Sep 25, 2026
I'm running into this when using
worktrunk merge, it errors out withUnrecognized flag: --variant in command opencode run. The command work trunk runs isopencode run -m anthropic/claude-haiku-4.5 --variant fastopencodejr commentedon Oct 28, 2026
Thanks for the request, @colinmollenhour! From the alias (
opencode --model ...on the root command) andrun --variant, this looks like OpenCode v1 (0.x/1.x). v1 now only gets fixes for critical bugs, so new CLI flags like this are unlikely to be added there.We'd encourage upgrading to v2 (
@opencode/cli). The CLI works differently there:opencode runandopencode minitake the variant as part of the model:--model openai/gpt-5.6-sol#low.opencodecommand doesn't accept--modelyet. Bringing it back is tracked in v2:opencode -m provider/modelno longer accepted on root command (worked in v1) #56218, and it would presumably use the sameprovider/model#variantsyntax.Related:
opencode -m provider/modelno longer accepted on root command (worked in v1) #56218: restoring-m/--modelon the v2 root command (open)--variantflag to rootopencodecommand #7354: the earlier v1 request for root--variantIf you think this is critical, or you see a problem with this on v2, please reply here.
opencodejr commentedon Oct 29, 2026
We haven't heard back, so I'm closing this as not planned. It's a feature request for OpenCode v1, and v1 now only gets fixes for critical bugs.
In v2,
opencode runandopencode minitake the variant as part of the model, for example--model openai/gpt-5.6-sol#low. Adding--modelback to the rootopencodecommand is tracked in #56218. If you run into this on v2, please comment there or open a new issue. Thanks, @colinmollenhour!