Description
According to docs, --model argument from CLI has highest priority. But if i specify any model in my agent/command markdown, they always run with specified model, ignoring any --model provided.
Plugins
No response
OpenCode version
1.2.6
Steps to reproduce
- create
.opencode/commands/my-command.md with content
---
description: Debug command
model: kimi/deepseek-ai/deepseek-v3.1
---
Say hello
- run
opencode run --command my-command --model "kimi/deepseek-ai/deepseek-r1"
It will run with kimi/deepseek-ai/deepseek-v3.1 model
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
According to docs,
--modelargument from CLI has highest priority. But if i specify any model in my agent/command markdown, they always run with specified model, ignoring any--modelprovided.Plugins
No response
OpenCode version
1.2.6
Steps to reproduce
.opencode/commands/my-command.mdwith contentopencode run --command my-command --model "kimi/deepseek-ai/deepseek-r1"It will run with
kimi/deepseek-ai/deepseek-v3.1modelScreenshot and/or share link
No response
Operating System
No response
Terminal
No response