opencode Verified for current stable LTS

Opencode Command: Run Opencode Specific Model Agent

Use for run opencode specific model agent with Opencode. Exact CLI syntax to run opencode specific model agent using Opencode.

When to use this: Use for run opencode specific model agent with Opencode.

Command Syntax

opencode run -m <provider>/<model> --agent <agent_name> "<message>"

Command Breakdown

-m
Command Option
Tool-specific option used by this command invocation.
--agent
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to run opencode specific model agent using Opencode.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Opencode directory