add-opencode

Installation
SKILL.md

OpenCode agent provider

NanoClaw runs agents in a long-lived poll loop inside the container. The backend is selected with AGENT_PROVIDER (claude | opencode | mock).

Trunk ships with only the claude provider baked in. This skill copies the OpenCode provider files in from the providers branch, wires them into the host and container barrels, installs dependencies, and rebuilds the image.

Install

Pre-flight

If all of the following are already present, skip to Configuration:

  • src/providers/opencode.ts
  • container/agent-runner/src/providers/opencode.ts
  • import './opencode.js'; line in src/providers/index.ts
  • import './opencode.js'; line in container/agent-runner/src/providers/index.ts
  • @opencode-ai/sdk in container/agent-runner/package.json
  • opencode-ai@${OPENCODE_VERSION} in the pnpm global-install block in container/Dockerfile
Related skills
Installs
2
GitHub Stars
28.7K
First Seen
Apr 26, 2026