Prerequisites
Before installing the plugin, make sure you have:- OpenCode installed (download)
- Bun runtime for TypeScript execution (no build step required)
The plugin uses Bun to transpile TypeScript on the fly. OpenCode automatically detects Bun-compatible plugins.
Installation Methods
You can install the plugin globally (available in all OpenCode sessions) or per-project (available only in a specific project).Global Installation (Recommended)
Global installation makes the plugin available in every OpenCode session, regardless of which directory you’re working in.Per-Project Installation
Per-project installation limits the plugin to a specific project directory. Useful when you only need agent discovery in certain codebases.Configuration Examples
Single Plugin
If this is your only plugin:Multiple Plugins
If you have other plugins installed:OpenCode supports multiple plugin sources:
github:owner/repo— GitHub repositorynpm:package-name— npm package./relative/path— Local directory
Verifying Installation
Once installed, you can test the plugin by asking the AI:search_agents tool.
If you get an error or no response, check:
- Config file path — make sure
opencode.jsonis in the right location - JSON syntax — validate your JSON (trailing commas are not allowed)
- Bun installation — run
bun --versionto verify Bun is installed
Troubleshooting
Plugin not loading
Plugin not loading
Check the config file path:Restart OpenCode after making changes.
- Global:
~/.config/opencode/opencode.json - Per-project:
.opencode/opencode.jsonat project root
Tools not responding
Tools not responding
Verify Bun is installed:If not installed, follow the Bun installation guide.Check plugin array syntax:Not:The
plugin field must be an array, even for a single plugin.Wrong agent data returned
Wrong agent data returned
The plugin reads from the manifest.json in the GitHub repository. If you see outdated data:
- The repository might have updated agents
- OpenCode might be caching the plugin
- Remove the plugin from
opencode.json - Restart OpenCode
- Re-add the plugin
- Restart OpenCode again
Uninstalling
To remove the plugin:Next Steps
Tools Reference
Learn about the 4 available tools
Plugin Overview
Understand how the plugin works