optional model arg support #49

Closed
opened 2026-02-16 17:24:58 -05:00 by yindo · 8 comments
Owner

Originally created by @albertilagan on GitHub (Jun 13, 2025).

Originally assigned to: @thdxr on GitHub.

For example

opencode -m claude-4-sonnet
Originally created by @albertilagan on GitHub (Jun 13, 2025). Originally assigned to: @thdxr on GitHub. For example ``` opencode -m claude-4-sonnet ```
yindo closed this issue 2026-02-16 17:24:58 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 13, 2025):

would have to specify the provider too right?

@thdxr commented on GitHub (Jun 13, 2025): would have to specify the provider too right?
Author
Owner

@adamdotdevin commented on GitHub (Jun 13, 2025):

not if it's not ambiguous and they have the provider auth'd right?

@adamdotdevin commented on GitHub (Jun 13, 2025): not if it's not ambiguous and they have the provider auth'd right?
Author
Owner

@thdxr commented on GitHub (Jun 14, 2025):

true - but this needs to be passed down to the tui right? should i forward args through

@thdxr commented on GitHub (Jun 14, 2025): true - but this needs to be passed down to the tui right? should i forward args through
Author
Owner

@adamdotdevin commented on GitHub (Jun 14, 2025):

oh i assumed @albertilagan was thinking for non interactive mode

@adamdotdevin commented on GitHub (Jun 14, 2025): oh i assumed @albertilagan was thinking for non interactive mode
Author
Owner

@albertilagan commented on GitHub (Jun 14, 2025):

oh i assumed @albertilagan was thinking for non interactive mode

my use case is actually for interactive mode, I have a neovim keymap to open a new tmux tab that runs opencode. related to #92

@albertilagan commented on GitHub (Jun 14, 2025): > oh i assumed [@albertilagan](https://github.com/albertilagan) was thinking for non interactive mode my use case is actually for interactive mode, I have a neovim keymap to open a new tmux tab that runs `opencode`. related to #92
Author
Owner

@thdxr commented on GitHub (Jun 14, 2025):

adam i can either forward cli args or add env vars - which pattern makes more sense?

@thdxr commented on GitHub (Jun 14, 2025): adam i can either forward cli args or add env vars - which pattern makes more sense?
Author
Owner

@adamdotdevin commented on GitHub (Jun 14, 2025):

let's voice on monday i have broader thoughts

@adamdotdevin commented on GitHub (Jun 14, 2025): let's voice on monday i have broader thoughts
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

closing since this is supported now:

opencode -m openai/gpt-4.1
@rekram1-node commented on GitHub (Aug 14, 2025): closing since this is supported now: ``` opencode -m openai/gpt-4.1 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#49