Skip to main content

For AI agents: docs.octen.ai/integrations/opencode.md

The plugin connects to the hosted Octen MCP Server and adds the octen-search-guide skill, which tells OpenCode which Octen tool fits a request.

Get API Key

Create a key from the API Platform.

npm

The @octen.ai/opencode-plugin package.

GitHub

View the plugin source.

Install

You’ll need an Octen API key first. Create one from the API Platform.
Requires OpenCode 1.18.29 or later (below 2.0).
1

Add the plugin

Add the plugin to ~/.config/opencode/opencode.json for every project, or to opencode.json at a project root for that project only:
OpenCode installs the plugin the next time it starts. The first time OpenCode loads any plugin, it also installs its plugin runtime, which can take a few minutes.
2

Sign in to Octen

Run opencode mcp auth octen to open the Octen sign-in in your browser. On the Octen consent page, choose the account and API key the connection uses, then click Allow.
3

Confirm the connection

The output shows ✓ octen connected. Until you sign in, it shows ⚠ octen needs authentication.
The plugin exposes every Octen MCP tool. To use an API key instead of signing in, export it in your shell profile (~/.zshrc or ~/.bashrc):

Last modified on November 24, 2026