Files
openclaw/docs/plugins/reference/opencode.md
Vincent Koc e73250f54b feat(plugins): externalize OpenCode provider (#117035)
* feat(plugins): externalize OpenCode provider

* docs: refresh OpenCode provider map
2026-08-01 05:07:35 +08:00

1.6 KiB

summary, read_when, title
summary read_when title
Adds OpenCode model provider support to OpenClaw.
You are installing, configuring, or auditing the opencode plugin
OpenCode plugin

OpenCode plugin

Adds OpenCode model provider support to OpenClaw.

Distribution

  • Package: @openclaw/opencode-provider
  • Install route: npm; ClawHub: clawhub:@openclaw/opencode-provider

Surface

providers: opencode; contracts: mediaUnderstandingProviders

Native sessions

OpenClaw auto-detects the opencode CLI on the Gateway and paired nodes. Stored sessions then appear in the OpenCode sessions-sidebar group, with transcript browsing through the official opencode --pure db ... --format json and opencode --pure export commands. Local rows also offer Continue, which creates an OpenClaw session whose first turn resumes the native OpenCode session through ACP. OpenCode retains the full server-side model context, and the catalog viewer continues to show that history. OpenClaw also imports the recent native history into the adopted session transcript. Very long transcripts import only their most recent 200 items using a 512 KiB serialized-item budget. Paired-node rows remain view-only.

The restricted environment and --pure mode prevent catalog browsing from loading project plugins or inheriting unrelated Gateway credentials.

Turn OpenCode Session Catalog off under Config > Plugins > OpenCode to disable discovery. It is enabled by default.