Answer: Use --model to choose a model for one command-line run without changing the configured default, for example: opencode run --model anthropic/claude-sonnet-5-5 "Refactor parseToken". Status: Overdue (check was due 2026-11-20T13:37:02Z and has not succeeded) Entry: tool/opencode/models/run-with-model-flag Revision: 1 Digest: sha256:87e8089354ab73f8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:57:51Z Last changed: 2026-11-13T03:57:51Z Last verified: 2026-11-19T13:37:02Z Next check: 2026-11-20T13:37:02Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of flag | --model | [1] | 2026-11-19 example command | opencode run --model anthropic/claude-sonnet-5-5 "Refactor parseToken" | [1] | 2026-11-19 Sources: [1] opencode. "Models | OpenCode". https://opencode.ai/docs/models/ Role: primary. Accessed: 2026-11-19T13:37:02Z Quote: "Use --model to choose a model for one command-line run without changing the configured default" (Supports: flag) Quote: "opencode run --model anthropic/claude-sonnet-5-5 "Refactor parseToken"" (Supports: example command) Snapshot SHA-256: 859697d5b1c7d707cd280658aaca6b793bd75b9f3111347dc1e0b865afcf857e (captured 2026-11-13T03:57:50Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:57:51Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:37:02Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:37:02Z Last attempt: 2026-11-19T13:37:02Z Notes and limitations: Extracted automatically from a single official source (section "Runs"). Related: https://latestn.com/tool/opencode/models/select-model-for-run How do I choose which model opencode uses for a run command? https://latestn.com/tool/opencode/models/select-model-session How do I select a model for the current session in opencode? https://latestn.com/tool/opencode/models/select-models How do I select or list models in Pi with OpenCode? https://latestn.com/tool/opencode/models/model-list-endpoints-and-keys Which endpoints does opencode provide for listing models, and which require an API key? https://latestn.com/tool/opencode/models/models-available-in-codex Which models can I use with opencode Console in Codex? https://latestn.com/tool/opencode/models/raycast-go-models How do I use Go models in Raycast with OpenCode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:57:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/models/run-with-model-flag/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/models/run-with-model-flag POST: https://latestn.com/dispute/tool/opencode/models/run-with-model-flag with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/models/run-with-model-flag?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use a model for a single run in opencode with --model? Revision 1, last verified 2026-11-19T13:37:02Z. https://latestn.com/tool/opencode/models/run-with-model-flag (accessed 2026-11-21T09:52:36Z). @misc{LatestN_tool_opencode_models_run_with_model_flag_r1, title = {How do I use a model for a single run in opencode with --model?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/models/run-with-model-flag}}, note = {Revision 1; digest sha256:87e8089354ab73f8; last verified 2026-11-19T13:37:02Z; accessed 2026-11-21T09:52:36Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/models/run-with-model-flag