cwd | string | No | Working directory for the agent process (absolute path; created automatically if missing when permissions allow) |
instructionsFilePath | string | No | Absolute path to a markdown instructions file prepended to the run prompt |
model | string | Yes | OpenCode model in provider/model format (e.g. anthropic/claude-sonnet-4-5). Required — OpenCode has no default. |
variant | string | No | Provider-specific model variant (e.g. minimal | low | medium | high | max) |
promptTemplate | string | No | Prompt used for all runs |
command | string | No | CLI command to invoke (default: opencode) |
extraArgs | string[] | No | Additional CLI arguments |
env | object | No | Environment variables (supports secret refs) |
timeoutSec | number | No | Process timeout in seconds (0 = no timeout) |
graceSec | number | No | Grace period before force-kill after timeout/cancel |