GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Add missing --variant option for standard "opencode" command to start new session. · Issue #37925 · anomalyco/opencode

[FEATURE]: Add missing --variant option for standard "opencode" command to start new session. #37925

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add missing --variant option for standard "opencode" command to start new session.#37925
Copy link
Assignees
kitlangton
Labels
pending closetriaging

Description

@colinmollenhour
colinmollenhour
opened on Jul 20, 2026
Issue body actions

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

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

Reacted by Sergei Sergeev

Activity

  1. github-actions
    assigned
    kitlangton
    on Jul 20, 2026
  2. s-KaiNet commented on Sep 16, 2026

    @s-KaiNet
    s-KaiNet
    on Sep 16, 2026
    More actions

    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

  3. christiaan-janssen commented on Sep 25, 2026

    @christiaan-janssen
    christiaan-janssen
    on Sep 25, 2026
    More actions

    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

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    opencodejrBot
    on Oct 28, 2026
    Contributor
    More actions

    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.
    • The root opencode command doesn't accept --model yet. Bringing it back is tracked in v2: opencode -m provider/model no longer accepted on root command (worked in v1) #56218, and it would presumably use the same provider/model#variant syntax.

    Related:

    • v2: opencode -m provider/model no longer accepted on root command (worked in v1) #56218: restoring -m/--model on the v2 root command (open)
    • [FEATURE]: Add --variant flag to root opencode command #7354: the earlier v1 request for root --variant

    If you think this is critical, or you see a problem with this on v2, please reply here.

  5. opencodejr
    added
    pending close
    triaging
    on Oct 28, 2026
  6. colinmollenhour
    closed this as completedon Oct 29, 2026
  7. opencodejr
    closed this as not plannedon Oct 29, 2026
  8. opencodejr commented on Oct 29, 2026

    @opencodejr
    opencodejrBot
    on Oct 29, 2026
    Contributor
    More actions

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

Labels

pending closetriaging

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.