Skip to content

Commit e73250f

Browse files
authored
feat(plugins): externalize OpenCode provider (#117035)
* feat(plugins): externalize OpenCode provider * docs: refresh OpenCode provider map
1 parent 0cb6a17 commit e73250f

12 files changed

Lines changed: 141 additions & 11 deletions

File tree

‎docs/docs_map.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8595,7 +8595,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
85958595
- Headings:
85968596
- H2: Getting started
85978597
- H2: Config example
8598-
- H2: Built-in catalogs
8598+
- H2: Provider catalogs
85998599
- H3: Zen
86008600
- H3: Go
86018601
- H2: Advanced configuration

‎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-
57 plugins
54+
56 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](/plugins/reference/opencode)** (`@openclaw/opencode-provider`) - included in OpenClaw. Adds OpenCode model provider support to OpenClaw.
137-
138136
- **[opencode-go](/plugins/reference/opencode-go)** (`@openclaw/opencode-go-provider`) - included in OpenClaw. Adds OpenCode Go model provider support to OpenClaw.
139137

140138
- **[openrouter](/plugins/reference/openrouter)** (`@openclaw/openrouter-provider`) - included in OpenClaw. Adds OpenRouter model provider support to OpenClaw.
@@ -169,7 +167,7 @@ Each entry lists the package, distribution route, and description.
169167

170168
## Official external packages
171169

172-
88 plugins
170+
89 plugins
173171

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

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

282280
- **[novita](/plugins/reference/novita)** (`@openclaw/novita-provider`) - npm; ClawHub: `clawhub:@openclaw/novita-provider`. Adds Novita, Novita AI, Novitaai model provider support to OpenClaw.
283281

282+
- **[opencode](/plugins/reference/opencode)** (`@openclaw/opencode-provider`) - npm; ClawHub: `clawhub:@openclaw/opencode-provider`. Adds OpenCode 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.md‎

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

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

1717
## Surface
1818

‎docs/providers/opencode.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ one OpenCode setup.
9090
}
9191
```
9292

93-
## Built-in catalogs
93+
## Provider catalogs
9494

9595
### Zen
9696

‎extensions/opencode/README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# OpenCode Zen OpenClaw provider
2+
3+
Official OpenClaw provider plugin for the OpenCode Zen model catalog, image
4+
understanding, and native OpenCode session browsing.
5+
6+
## Install
7+
8+
```sh
9+
openclaw plugins install @openclaw/opencode-provider
10+
openclaw gateway restart
11+
```
12+
13+
## Docs
14+
15+
See `docs/providers/opencode.md` in the OpenClaw repository, or the published
16+
docs at `https://docs.openclaw.ai/providers/opencode`.

‎extensions/opencode/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function isModernOpencodeModel(modelId: string): boolean {
5353
export default defineSingleProviderPluginEntry({
5454
id: PROVIDER_ID,
5555
name: "OpenCode Zen Provider",
56-
description: "Bundled OpenCode Zen provider plugin",
56+
description: "OpenCode Zen provider plugin",
5757
manifest,
5858
provider: {
5959
label: "OpenCode Zen",

‎extensions/opencode/package.json‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
{
22
"name": "@openclaw/opencode-provider",
33
"version": "2026.7.2",
4-
"private": true,
54
"description": "OpenClaw OpenCode Zen 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-provider",
19+
"npmSpec": "@openclaw/opencode-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
}

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
"!dist/extensions/nextcloud-talk/**",
295295
"!dist/extensions/nostr/**",
296296
"!dist/extensions/novita/**",
297+
"!dist/extensions/opencode/**",
297298
"!dist/extensions/parallel/**",
298299
"!dist/extensions/perplexity/**",
299300
"!dist/extensions/qianfan/**",

‎scripts/lib/official-external-provider-catalog.json‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,69 @@
962962
}
963963
}
964964
},
965+
{
966+
"name": "@openclaw/opencode-provider",
967+
"description": "OpenClaw OpenCode Zen provider plugin",
968+
"source": "official",
969+
"kind": "provider",
970+
"openclaw": {
971+
"plugin": {
972+
"id": "opencode",
973+
"label": "OpenCode Zen"
974+
},
975+
"providerEndpoints": [
976+
{
977+
"endpointClass": "opencode-native",
978+
"hostSuffixes": [
979+
"opencode.ai"
980+
]
981+
}
982+
],
983+
"providers": [
984+
{
985+
"id": "opencode",
986+
"name": "OpenCode Zen",
987+
"docs": "/providers/opencode",
988+
"categories": [
989+
"cloud",
990+
"llm"
991+
],
992+
"envVars": [
993+
"OPENCODE_API_KEY",
994+
"OPENCODE_ZEN_API_KEY"
995+
],
996+
"authChoices": [
997+
{
998+
"method": "api-key",
999+
"choiceId": "opencode-zen",
1000+
"choiceLabel": "OpenCode Zen catalog",
1001+
"groupId": "opencode",
1002+
"groupLabel": "OpenCode",
1003+
"groupHint": "Shared API key for Zen + Go catalogs",
1004+
"optionKey": "opencodeZenApiKey",
1005+
"cliFlag": "--opencode-zen-api-key",
1006+
"cliOption": "--opencode-zen-api-key <key>",
1007+
"cliDescription": "OpenCode API key (Zen catalog)",
1008+
"onboardingScopes": [
1009+
"text-inference"
1010+
]
1011+
}
1012+
]
1013+
}
1014+
],
1015+
"contracts": {
1016+
"mediaUnderstandingProviders": [
1017+
"opencode"
1018+
]
1019+
},
1020+
"install": {
1021+
"clawhubSpec": "clawhub:@openclaw/opencode-provider",
1022+
"npmSpec": "@openclaw/opencode-provider",
1023+
"defaultChoice": "npm",
1024+
"minHostVersion": ">=2026.7.2"
1025+
}
1026+
}
1027+
},
9651028
{
9661029
"name": "@openclaw/groq-provider",
9671030
"description": "OpenClaw Groq media-understanding provider.",

‎src/cli/plugins-location-bridges.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ describe("listPersistedBundledPluginLocationBridges", () => {
169169
["duckduckgo", "@openclaw/duckduckgo-plugin", false],
170170
["mistral", "@openclaw/mistral-provider", true],
171171
["novita", "@openclaw/novita-provider", true],
172+
["opencode", "@openclaw/opencode-provider", true],
172173
["synthetic", "@openclaw/synthetic-provider", true],
173174
["teams-meetings", "@openclaw/teams-meetings", true],
174175
["volcengine", "@openclaw/volcengine-provider", true],

0 commit comments

Comments
 (0)