opencode-search1apiSearch1API web search, news, page retrieval, sitemap, and trending tools for OpenCode
GitHub 星标
0
月装机量
304
近 7 天 10
综合评分SCORE
34.8
生态多维模型
最近提交
16 天前
2026-08-04
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-search1api@0.1.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-search1api@0.1.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-search1apiopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→Native OpenCode tools for live web search, news, page retrieval, sitemap discovery, and trending topics.
Install
Install for the current project:
opencode plugin opencode-search1api
Or install globally:
opencode plugin opencode-search1api --global
Authentication
Use one of these methods:
- Set
SEARCH1API_KEYin the OpenCode environment. - Install
search1api-cliand runs1 loginonce; the plugin reuses the same OAuth session. - Configure the plugin with an
apiKeyoption inopencode.json.
{
"plugin": [
["opencode-search1api", { "apiKey": "your-api-key" }]
]
}
Prefer an environment variable or secret manager over committing credentials to configuration files.
Get an API key at search1api.com.
Tools
search1api_search— search the live websearch1api_news— search current newssearch1api_crawl— retrieve readable page contentsearch1api_sitemap— discover site linkssearch1api_trending— explore GitHub or Hacker News trends
Development
npm install
npm test
License
MIT