Search1API
Integrations

OpenCode

Give OpenCode live web search, news, page retrieval, sitemap discovery, and trending topics with the native opencode-search1api plugin.

opencode-search1api is a native OpenCode plugin that gives the agent live web access through Search1API — web search, news search, readable page retrieval, sitemap discovery, and trending topics.

Unlike an MCP bridge, the plugin registers these as first-class OpenCode tools.

Install

Install for the current project:

opencode plugin opencode-search1api

Or install globally:

opencode plugin opencode-search1api --global

Authentication

Use one of these methods:

  1. Set SEARCH1API_KEY in the OpenCode environment.
  2. Install search1api-cli and run s1 login once; the plugin reuses the same OAuth session.
  3. Pass an apiKey in opencode.json:
{
  "plugin": [
    ["opencode-search1api", { "apiKey": "your-api-key" }]
  ]
}

Prefer an environment variable or secret manager over committing credentials. Create a key in the Search1API dashboard if you need one.

What the agent can do

ToolWhat it does
search1api_searchLive web search
search1api_newsNews search
search1api_crawlRead a public URL as clean Markdown
search1api_sitemapEnumerate a site's URLs
search1api_trendingTrending GitHub repos or Hacker News stories

Credits

Search and news requests cost one credit each; crawling a page costs one additional credit per successfully crawled page. New accounts receive 100 credits without a credit card. See Credits and limits for current rates.

Source

github.com/superagents-lab/opencode-search1api

On this page