Search1API for OpenCode
August 4, 2026 · View on GitHub
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