Skip to content

Commit 61fb29e

Browse files
authored
feat(plugins): externalize OpenCode Go provider (#117064)
1 parent d92d68a commit 61fb29e

19 files changed

Lines changed: 240 additions & 22 deletions

‎docs/docs_map.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8585,7 +8585,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
85858585
- Headings:
85868586
- H2: Getting started
85878587
- H2: Config example
8588-
- H2: Built-in catalog
8588+
- H2: Catalog
85898589
- H2: Advanced configuration
85908590
- H2: Related
85918591

‎docs/gateway/doctor.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ That stages grounded durable candidates into the short-term dreaming store while
352352

353353
</Accordion>
354354
<Accordion title="2b. OpenCode provider overrides">
355-
If you have added `models.providers.opencode`, `opencode-zen`, or `opencode-go` manually, it overrides the built-in OpenCode catalog from `openclaw/plugin-sdk/llm`. That can force models onto the wrong API or zero out costs. Doctor warns so you can remove the override and restore per-model API routing + costs.
355+
If you have added `models.providers.opencode`, `opencode-zen`, or `opencode-go` manually while the matching official external plugin is installed and enabled, it overrides that plugin-provided catalog. That can force models onto the wrong API or zero out costs. Doctor warns so you can remove the override and restore per-model API routing + costs. Without the matching plugin, the entry remains a valid standalone custom provider.
356356
</Accordion>
357357
<Accordion title="2c. Browser migration and Chrome MCP readiness">
358358
If your browser config still points at the removed Chrome extension path, doctor normalizes it to the current host-local Chrome MCP attach model (`browser.profiles.*.driver: "extension"` → `"existing-session"`; `browser.relayBindHost` removed).

‎docs/help/testing-live.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ If you have keys enabled, you can also test via:
612612

613613
More providers you can include in the live matrix (if you have creds/config):
614614

615-
- Built-in: `anthropic`, `cerebras`, `github-copilot`, `google`, `google-antigravity`, `google-gemini-cli`, `google-vertex`, `groq`, `mistral`, `openai`, `openrouter`, `opencode`, `opencode-go`, `xai`, `zai`
615+
- First-party provider plugins: `anthropic`, `cerebras`, `github-copilot`, `google`, `google-antigravity`, `google-gemini-cli`, `google-vertex`, `groq`, `mistral`, `openai`, `openrouter`, `opencode`, `opencode-go`, `xai`, `zai`
616616
- Via `models.providers` (custom endpoints): `minimax` (cloud/API), plus any OpenAI/Anthropic-compatible proxy (LM Studio, vLLM, LiteLLM, etc.)
617617

618618
<Tip>

‎docs/plugins/plugin-inventory.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Each entry lists the package, distribution route, and description.
5151

5252
## Core npm package
5353

54-
56 plugins
54+
55 plugins
5555

5656
- **[admin-http-rpc](/plugins/reference/admin-http-rpc)** (`@openclaw/admin-http-rpc`) - included in OpenClaw. OpenClaw admin HTTP RPC endpoint.
5757

@@ -133,8 +133,6 @@ Each entry lists the package, distribution route, and description.
133133

134134
- **[openai](/plugins/reference/openai)** (`@openclaw/openai-provider`) - included in OpenClaw. Adds OpenAI model provider support to OpenClaw.
135135

136-
- **[opencode-go](/plugins/reference/opencode-go)** (`@openclaw/opencode-go-provider`) - included in OpenClaw. Adds OpenCode Go model provider support to OpenClaw.
137-
138136
- **[openrouter](/plugins/reference/openrouter)** (`@openclaw/openrouter-provider`) - included in OpenClaw. Adds OpenRouter model provider support to OpenClaw.
139137

140138
- **[policy](/plugins/reference/policy)** (`@openclaw/policy`) - included in OpenClaw. Adds policy-backed doctor checks for workspace conformance.
@@ -167,7 +165,7 @@ Each entry lists the package, distribution route, and description.
167165

168166
## Official external packages
169167

170-
89 plugins
168+
90 plugins
171169

172170
- **[acpx](/plugins/reference/acpx)** (`@openclaw/acpx`) - npm; ClawHub. OpenClaw ACP runtime backend with plugin-owned session and transport management.
173171

@@ -281,6 +279,8 @@ Each entry lists the package, distribution route, and description.
281279

282280
- **[opencode](/plugins/reference/opencode)** (`@openclaw/opencode-provider`) - npm; ClawHub: `clawhub:@openclaw/opencode-provider`. Adds OpenCode model provider support to OpenClaw.
283281

282+
- **[opencode-go](/plugins/reference/opencode-go)** (`@openclaw/opencode-go-provider`) - npm; ClawHub: `clawhub:@openclaw/opencode-go-provider`. Adds OpenCode Go model provider support to OpenClaw.
283+
284284
- **[openshell](/plugins/reference/openshell)** (`@openclaw/openshell-sandbox`) - npm; ClawHub. OpenClaw sandbox backend for the NVIDIA OpenShell CLI with mirrored local workspaces and SSH command execution.
285285

286286
- **[parallel](/tools/parallel-search)** (`@openclaw/parallel-plugin`) - npm; ClawHub: `clawhub:@openclaw/parallel-plugin`. Adds web search provider support.

‎docs/plugins/reference/opencode-go.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Adds OpenCode Go model provider support to OpenClaw.
1212
## Distribution
1313

1414
- Package: `@openclaw/opencode-go-provider`
15-
- Install route: included in OpenClaw
15+
- Install route: npm; ClawHub: `clawhub:@openclaw/opencode-go-provider`
1616

1717
## Surface
1818

‎docs/providers/opencode-go.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,25 @@ title: "OpenCode Go"
99
OpenCode Go is the Go catalog inside [OpenCode](/providers/opencode). It shares
1010
the `OPENCODE_API_KEY` credential with the Zen catalog, but keeps its own
1111
runtime provider id (`opencode-go`) so upstream per-model routing stays
12-
correct.
12+
correct. OpenClaw provides it as the official external
13+
`@openclaw/opencode-go-provider` plugin.
1314

1415
| Property | Value |
1516
| ---------------- | -------------------------------------------------- |
1617
| Runtime provider | `opencode-go` |
18+
| Plugin | `@openclaw/opencode-go-provider` |
1719
| Auth | `OPENCODE_API_KEY` (alias: `OPENCODE_ZEN_API_KEY`) |
1820
| Parent setup | [OpenCode](/providers/opencode) |
1921

2022
## Getting started
2123

24+
Install the official plugin and restart the Gateway:
25+
26+
```bash
27+
openclaw plugins install @openclaw/opencode-go-provider
28+
openclaw gateway restart
29+
```
30+
2231
<Tabs>
2332
<Tab title="Interactive">
2433
<Steps>
@@ -65,10 +74,10 @@ correct.
6574
}
6675
```
6776

68-
## Built-in catalog
77+
## Catalog
6978

7079
Run `openclaw models list --provider opencode-go` for the current model list.
71-
Bundled rows:
80+
Current rows:
7281

7382
| Model ref | Name | Context | Max output | Image input |
7483
| ------------------------------- | ----------------- | --------- | ---------- | ----------- |

‎docs/providers/opencode.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ one OpenCode setup.
5555
**Best for:** the OpenCode-hosted Kimi, GLM, MiniMax, Qwen, and DeepSeek lineup.
5656

5757
<Steps>
58+
<Step title="Install the Go catalog plugin">
59+
```bash
60+
openclaw plugins install @openclaw/opencode-go-provider
61+
openclaw gateway restart
62+
```
63+
</Step>
5864
<Step title="Run onboarding">
5965
```bash
6066
openclaw onboard --auth-choice opencode-go

‎extensions/opencode-go/README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# OpenClaw OpenCode Go Provider
2+
3+
Official OpenClaw provider plugin for the OpenCode Go model catalog.
4+
5+
Install from OpenClaw:
6+
7+
```bash
8+
openclaw plugins install @openclaw/opencode-go-provider
9+
openclaw gateway restart
10+
```
11+
12+
Configure `OPENCODE_API_KEY` or `OPENCODE_ZEN_API_KEY`, then select an
13+
`opencode-go/...` model.
14+
15+
See <https://docs.openclaw.ai/providers/opencode-go> for setup and the current
16+
model catalog.

‎extensions/opencode-go/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function resolveOpencodeGoCatalogAuth(
4141
export default defineSingleProviderPluginEntry({
4242
id: PROVIDER_ID,
4343
name: "OpenCode Go Provider",
44-
description: "Bundled OpenCode Go provider plugin",
44+
description: "Official OpenCode Go provider plugin",
4545
manifest,
4646
provider: {
4747
label: "OpenCode Go",
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
{
22
"name": "@openclaw/opencode-go-provider",
33
"version": "2026.7.2",
4-
"private": true,
54
"description": "OpenClaw OpenCode Go provider plugin",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/openclaw/openclaw"
8+
},
69
"type": "module",
710
"devDependencies": {
811
"@openclaw/plugin-sdk": "workspace:*"
912
},
1013
"openclaw": {
1114
"extensions": [
1215
"./index.ts"
13-
]
16+
],
17+
"install": {
18+
"clawhubSpec": "clawhub:@openclaw/opencode-go-provider",
19+
"npmSpec": "@openclaw/opencode-go-provider",
20+
"defaultChoice": "npm",
21+
"minHostVersion": ">=2026.7.2"
22+
},
23+
"compat": {
24+
"pluginApi": ">=2026.7.2"
25+
},
26+
"build": {
27+
"openclawVersion": "2026.7.2",
28+
"bundledDist": false
29+
},
30+
"release": {
31+
"publishToClawHub": true,
32+
"publishToNpm": true
33+
}
1434
}
1535
}

0 commit comments

Comments
 (0)