🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@joshthomas/opencode-web-search

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joshthomas/opencode-web-search

Web search plugin for OpenCode with Exa AI support

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Web search plugin for OpenCode with dedicated search agents.

Adds specialized search agents scoped so their tools don't pollute your primary agent's context.

Installation

Add to your opencode.json:

{
  "plugin": ["@joshthomas/opencode-web-search"]
}

Usage

/web-search how to handle errors in TypeScript
/code-search OpenCode plugin API examples
/deep-research comprehensive analysis of MCP architecture

Agents

General research: docs, articles, best practices.

Exa Mode Tools:

  • web_search_exa - Real-time web search
  • crawling - Fetch specific URLs
  • deep_researcher_start / deep_researcher_check - Comprehensive research

Fallback Mode Tools:

  • websearch, webfetch

Concrete code: examples, API signatures, implementations.

Exa Mode Tools:

  • get_code_context_exa - Code snippets and documentation
  • crawling - Fetch specific URLs

Fallback Mode Tools:

  • codesearch, webfetch

Commands

CommandAgentDescription
/web-searchweb-searchSearch for docs, articles, best practices
/code-searchcode-searchFind code examples and API signatures
/deep-researchweb-searchComprehensive research (Exa mode only)

MCP Server

When EXA_API_KEY is set, the plugin registers the Exa AI MCP server:

  • Name: exa
  • URL: https://mcp.exa.ai/mcp
  • Tools: Globally disabled, scoped only to the search agents

Modes

The plugin operates in two modes based on whether EXA_API_KEY is set:

Exa Mode

Full-featured with Exa AI. Set the environment variable:

export EXA_API_KEY=your_key_here

Fallback Mode

Uses OpenCode's built-in websearch, codesearch, and webfetch tools. Requires Zen subscription or OPENCODE_ENABLE_EXA=true.

Note: /deep-research is not available in fallback mode.

A toast notification tells you which mode is active on plugin load.

License

opencode-web-search is licensed under the MIT license. See the LICENSE file for more information.

opencode-web-search is not built by, or affiliated with, the OpenCode team.

OpenCode is ©2025 Anomaly.

FAQs

Package last updated on 11 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts