claude-plugins

🧠 opencode

Query any opencode-supported model from inside Claude — get a second opinion without leaving your session.

The opencode plugin wraps the @kud/mcp-opencode MCP server so you can query any opencode-supported model and see its answer inline, clearly attributed.

🧰 What it bundles

SkillTriggerWhat it does
/ask-opencode/ask-opencode <prompt>Send a one-off prompt to any opencode model and see the response
/ask-opencode--session [id], "talk to my opencode", "ask the opencode I have open", "tell opencode …"Message a session already running in your opencode TUI and see its reply

Session mode needs opencode started with oc (or opencode --port <free port>) and at least one message already typed in the TUI — that's what creates the session. A plain opencode opens no port and is invisible to the MCP. The MCP auto-discovers every opencode window listening on a local port, so several windows work at once — list_sessions shows sessions from all of them, and send/read route to the window that owns the session unless you name one.

📦 Install

/plugin install opencode@kud --scope user

🔧 Configuration

The plugin ships sensible defaults — by default it allows github-copilot/* models. Override the allow/block lists with environment variables if you want a different selection:

MCP_OPENCODE_MODEL_ALLOW=github-copilot/*
MCP_OPENCODE_MODEL_BLOCK=

On this page