Skip to content

Commit 960c82c

Browse files
committed
feat(plugins): externalize DuckDuckGo search
1 parent 49b4841 commit 960c82c

11 files changed

Lines changed: 133 additions & 17 deletions

File tree

‎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-
66 plugins
54+
65 plugins
5555

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

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

8686
- **[document-extract](/plugins/reference/document-extract)** (`@openclaw/document-extract-plugin`) - included in OpenClaw. Extract text and fallback page images from local document attachments.
8787

88-
- **[duckduckgo](/plugins/reference/duckduckgo)** (`@openclaw/duckduckgo-plugin`) - included in OpenClaw. Adds web search provider support.
89-
9088
- **[elevenlabs](/plugins/reference/elevenlabs)** (`@openclaw/elevenlabs-speech`) - included in OpenClaw. Adds media understanding provider support. Adds realtime transcription provider support. Adds text-to-speech provider support.
9189

9290
- **[fal](/plugins/reference/fal)** (`@openclaw/fal-provider`) - included in OpenClaw. Adds fal model provider support to OpenClaw.
@@ -187,7 +185,7 @@ Each entry lists the package, distribution route, and description.
187185

188186
## Official external packages
189187

190-
79 plugins
188+
80 plugins
191189

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

@@ -233,6 +231,8 @@ Each entry lists the package, distribution route, and description.
233231

234232
- **[discord](/plugins/reference/discord)** (`@openclaw/discord`) - npm; ClawHub. OpenClaw Discord channel plugin for channels, DMs, commands, and app events.
235233

234+
- **[duckduckgo](/plugins/reference/duckduckgo)** (`@openclaw/duckduckgo-plugin`) - npm; ClawHub: `clawhub:@openclaw/duckduckgo-plugin`. Adds web search provider support.
235+
236236
- **[exa](/plugins/reference/exa)** (`@openclaw/exa-plugin`) - npm; ClawHub: `clawhub:@openclaw/exa-plugin`. Adds web search provider support.
237237

238238
- **[featherless](/plugins/reference/featherless)** (`@openclaw/featherless-provider`) - npm; ClawHub: `clawhub:@openclaw/featherless-provider`. OpenClaw Featherless AI provider plugin.

‎docs/plugins/reference/duckduckgo.md‎

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

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

1717
## Surface
1818

‎docs/tools/duckduckgo-search.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ OpenClaw supports DuckDuckGo as a **key-free** `web_search` provider. No API key
1818
DuckDuckGo is never auto-selected, since auto-detection only considers providers with usable credentials. Set it explicitly:
1919

2020
<Steps>
21+
<Step title="Install the plugin">
22+
```bash
23+
openclaw plugins install @openclaw/duckduckgo-plugin
24+
openclaw gateway restart
25+
```
26+
</Step>
2127
<Step title="Configure">
2228
```bash
2329
openclaw configure --section web

‎extensions/duckduckgo/README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OpenClaw DuckDuckGo Plugin
2+
3+
Official OpenClaw plugin for DuckDuckGo web search.
4+
5+
Install from OpenClaw:
6+
7+
```bash
8+
openclaw plugins install @openclaw/duckduckgo-plugin
9+
openclaw gateway restart
10+
```
11+
12+
See <https://docs.openclaw.ai/tools/duckduckgo-search> for setup and configuration.

‎extensions/duckduckgo/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createDuckDuckGoWebSearchProvider } from "./src/ddg-search-provider.js"
55
export default definePluginEntry({
66
id: "duckduckgo",
77
name: "DuckDuckGo Plugin",
8-
description: "Bundled DuckDuckGo web search plugin",
8+
description: "Official DuckDuckGo web search plugin",
99
register(api) {
1010
api.registerWebSearchProvider(createDuckDuckGoWebSearchProvider());
1111
},

‎extensions/duckduckgo/package.json‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
{
22
"name": "@openclaw/duckduckgo-plugin",
33
"version": "2026.7.2",
4-
"private": true,
5-
"description": "OpenClaw DuckDuckGo plugin",
4+
"description": "OpenClaw DuckDuckGo 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/duckduckgo-plugin",
19+
"npmSpec": "@openclaw/duckduckgo-plugin",
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
@@ -261,6 +261,7 @@
261261
"!dist/extensions/diffs/**",
262262
"!dist/extensions/diffs-language-pack/**",
263263
"!dist/extensions/discord/**",
264+
"!dist/extensions/duckduckgo/**",
264265
"!dist/extensions/exa/**",
265266
"!dist/extensions/feishu/**",
266267
"!dist/extensions/featherless/**",

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,46 @@
169169
}
170170
}
171171
},
172+
{
173+
"name": "@openclaw/duckduckgo-plugin",
174+
"description": "OpenClaw DuckDuckGo plugin.",
175+
"source": "official",
176+
"kind": "plugin",
177+
"openclaw": {
178+
"plugin": {
179+
"id": "duckduckgo",
180+
"label": "DuckDuckGo"
181+
},
182+
"contracts": {
183+
"webSearchProviders": [
184+
"duckduckgo"
185+
]
186+
},
187+
"webSearchProviders": [
188+
{
189+
"id": "duckduckgo",
190+
"label": "DuckDuckGo Search (experimental)",
191+
"hint": "Free web search fallback with no API key required",
192+
"onboardingScopes": [
193+
"text-inference"
194+
],
195+
"requiresCredential": false,
196+
"envVars": [],
197+
"placeholder": "(no key needed)",
198+
"signupUrl": "https://duckduckgo.com/",
199+
"docsUrl": "https://docs.openclaw.ai/tools/duckduckgo-search",
200+
"credentialPath": "",
201+
"autoDetectOrder": 100
202+
}
203+
],
204+
"install": {
205+
"clawhubSpec": "clawhub:@openclaw/duckduckgo-plugin",
206+
"npmSpec": "@openclaw/duckduckgo-plugin",
207+
"defaultChoice": "npm",
208+
"minHostVersion": ">=2026.7.2"
209+
}
210+
}
211+
},
172212
{
173213
"name": "@openclaw/exa-plugin",
174214
"description": "OpenClaw Exa plugin.",

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ describe("listPersistedBundledPluginLocationBridges", () => {
165165
});
166166

167167
it.each([
168-
["synthetic", "@openclaw/synthetic-provider"],
169-
["teams-meetings", "@openclaw/teams-meetings"],
170-
["zoom-meetings", "@openclaw/zoom-meetings"],
171-
])(
172-
"externalizes the shipped bundled %s plugin while preserving default enablement",
173-
async (pluginId, npmSpec) => {
168+
["duckduckgo", "@openclaw/duckduckgo-plugin", false],
169+
["synthetic", "@openclaw/synthetic-provider", true],
170+
["teams-meetings", "@openclaw/teams-meetings", true],
171+
["zoom-meetings", "@openclaw/zoom-meetings", true],
172+
] as const)(
173+
"externalizes the shipped bundled %s plugin using official install metadata",
174+
async (pluginId, npmSpec, enabledByDefault) => {
174175
readPersistedInstalledPluginIndexMock.mockResolvedValue(
175176
makeIndex({
176177
pluginId,
@@ -180,7 +181,7 @@ describe("listPersistedBundledPluginLocationBridges", () => {
180181
rootDir: `/app/dist/extensions/${pluginId}`,
181182
origin: "bundled",
182183
enabled: true,
183-
enabledByDefault: true,
184+
...(enabledByDefault ? { enabledByDefault: true } : {}),
184185
startup: startupInfo,
185186
compat: [],
186187
packageInstall: {
@@ -197,7 +198,7 @@ describe("listPersistedBundledPluginLocationBridges", () => {
197198
preferredSource: "npm",
198199
npmSpec,
199200
clawhubSpec: `clawhub:${npmSpec}`,
200-
enabledByDefault: true,
201+
...(enabledByDefault ? { enabledByDefault: true } : {}),
201202
},
202203
]);
203204
},

‎src/plugins/official-external-plugin-catalog.test.ts‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,34 @@ describe("official external plugin catalog", () => {
19721972
});
19731973
});
19741974

1975+
it("preserves DuckDuckGo's keyless web search setup contract", () => {
1976+
const duckduckgo = expectCatalogEntry("duckduckgo");
1977+
const manifest = getOfficialExternalPluginCatalogManifest(duckduckgo);
1978+
1979+
expect(resolveOfficialExternalPluginInstall(duckduckgo)).toEqual({
1980+
clawhubSpec: "clawhub:@openclaw/duckduckgo-plugin",
1981+
npmSpec: "@openclaw/duckduckgo-plugin",
1982+
defaultChoice: "npm",
1983+
minHostVersion: ">=2026.7.2",
1984+
});
1985+
expect(manifest?.contracts?.webSearchProviders).toEqual(["duckduckgo"]);
1986+
expect(manifest?.webSearchProviders).toEqual([
1987+
{
1988+
id: "duckduckgo",
1989+
label: "DuckDuckGo Search (experimental)",
1990+
hint: "Free web search fallback with no API key required",
1991+
onboardingScopes: ["text-inference"],
1992+
requiresCredential: false,
1993+
envVars: [],
1994+
placeholder: "(no key needed)",
1995+
signupUrl: "https://duckduckgo.com/",
1996+
docsUrl: "https://docs.openclaw.ai/tools/duckduckgo-search",
1997+
credentialPath: "",
1998+
autoDetectOrder: 100,
1999+
},
2000+
]);
2001+
});
2002+
19752003
it.each([
19762004
["teams-meetings", "@openclaw/teams-meetings", "teams_meetings", "teams"],
19772005
["zoom-meetings", "@openclaw/zoom-meetings", "zoom_meetings", "zoom"],

0 commit comments

Comments
 (0)