opencode-searchOpenCode plugin that provides web search tools using DuckDuckGo, Google, Wikipedia, Bluesky, Standard.site, and MDN Web Docs.
14
261
近 7 天 57
37.6
生态多维模型
4 个月前
2026-04-12
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-search@0.0.9"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-search@0.0.9"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-searchopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
An OpenCode plugin that gives your agent access to DuckDuckGo, Google, Wikipedia, Bluesky, standard.site, and MDN Web Docs.
Quick Start
Add to your opencode.json:
{
"plugin": ["opencode-search"]
}
Restart OpenCode. The plugin will be installed automatically.
Tools
ddg-search
Search the web using DuckDuckGo. Returns structured results with title, URL, and snippet.
| Parameter | Type | Required |
|---|---|---|
query |
string | yes |
Uses DuckDuckGo's HTML endpoint with POST form parameters to avoid CAPTCHAs. Results are parsed from the HTML response into structured title/URL/abstract triples.
ggl-search
Search the web using Google. Returns structured results with title, URL, and snippet.
| Parameter | Type | Required |
|---|---|---|
query |
string | yes |
Uses Google's HTML search with cookie replay to avoid blocks, derived from googler. Google aggressively blocks non-JS clients, so this tool may return empty results depending on your network environment.
bsky-search
Search Bluesky posts via the AT Protocol. Returns posts with author handle, text, and engagement counts (likes, reposts, replies).
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | yes | |
limit |
number | no | Number of results to return |
sort |
string | no | Sort order: top or latest |
standard-search
Search standard.site document records on the AT Protocol. Returns blog posts and articles published to the ATmosphere with title, URL, date, and snippet.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | yes | |
limit |
number | no | Number of results to return |
offset |
number | no | Number of results to skip |
standard.site is a publishing platform built on the AT Protocol where content is stored in a user's personal data repository. Unlike traditional websites that require crawlers and indexing pipelines to be discoverable, content published on standard.site is structured, portable, and directly queryable through the AT Protocol.
wiki-search
Search Wikipedia articles using the MediaWiki REST API. Returns structured results with title, description, excerpt, and a direct link to the article. No API key required.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | yes | |
limit |
number | no | Number of results (1-100) |
mdn-search
Search MDN Web Docs. Returns documentation pages for web technologies with title, URL, and summary. No API key required.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | yes | |
limit |
number | no | Number of results to return |
page |
number | no | Page number for pagination |
License
MIT