Skip to content

OpenCode

Commandhearthwork opencode
Installnpm i -g opencode-ai
API usedOpenAI Chat Completions

Run hearthwork opencode from your project folder. Extra arguments go to OpenCode.

OpenCode is configured through the OPENCODE_CONFIG_CONTENT environment variable, so your own OpenCode configuration is not edited. OpenCode still writes its history where it always does.

Preview exactly what would run with hearthwork opencode --dry-run.

In hearthwork task, OpenCode can read, search and edit files, and run only commands matching an --allow pattern. See Subagents.