opencode subagents
MCP server by sebstaq Community
Runs Claude Code subagents on cheaper opencode models such as DeepSeek, while Claude Code keeps using Anthropic directly. It suits users who want to delegate searches, refactors, bug fixes and tests to lower-cost models.
Install opencode subagents
Built from the published package, never by AI.
claude mcp add opencode-subagents -- npx -y opencode-subagent-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"opencode-subagents": {
"args": [
"-y",
"opencode-subagent-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"opencode-subagents": {
"args": [
"-y",
"opencode-subagent-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"opencode-subagents": {
"args": [
"-y",
"opencode-subagent-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add opencode-subagents -- npx -y opencode-subagent-mcp{
"mcpServers": {
"opencode-subagents": {
"args": [
"-y",
"opencode-subagent-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add opencode-subagents npx -y opencode-subagent-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the opencode-subagents block.
About
opencode-subagent-mcp is a stdio MCP server that runs Claude Code subagents on opencode models, for example opencode-go/deepseek-v4.1-flash. Your main Claude Code session is not proxied or routed through it. The server starts a private opencode serve process on a random localhost port with a random password, and stops it when Claude Code exits. Each agent runs as one opencode session, and permission requests are shown as MCP elicitation dialogs.
The server aims for parity with native subagents. It supports background agents, resuming finished agents with send_message, worktree isolation, .claude/agents definitions, permission modes and structured output through a JSON Schema. It is for Claude Code users who want to send cheap, easy-to-verify work to a lower-cost model.
Written from the project's README and checked against it.
Tools it gives your assistant
agentRuns a subagent and returns its final report, usage and worktree outcome.send_messageContinues a finished agent with its full history, including after a restart.waitCollects a run_in_background agent, optionally with a timeout.stopAborts a running agent and returns what it produced.listLists this session's agents, Claude agent definitions and opencode agents.
What you need
- Node.js 22 or newer
- git
- opencode CLI, logged in to the providers you want
- An opencode Go subscription or access to another opencode provider
Try asking
- Use opencode to search this repo for every call to the old API.
- Send this test-writing task to a DeepSeek subagent in the background.
- Continue the earlier opencode agent with send_message and ask for a summary.
Good to know
- Agents do not appear in Claude Code's /tasks agent view.
- There is no fork-with-parent-context.
- Subagents cannot spawn subagents or ask the user questions.
- The auto permission mode has no safety classifier.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl | sh
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to opencode subagents
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
opencode subagents: common questions
Does my main Claude Code session go through opencode?
No. The source says Claude Code itself keeps talking to Anthropic directly, and the server only runs the subagents you delegate to it.
Where do my prompts and files go?
Prompts and the files and command output a subagent reads go to the model provider you choose through opencode, by default opencode Go. The server has no telemetry and makes no other network calls.
Can a subagent resume after Claude Code restarts?
Yes. An agent_id keeps working after a restart, and send_message can continue the agent because opencode persists its sessions.
How do I install opencode subagents?
In Claude Code run claude mcp add opencode-subagents -- npx -y opencode-subagent-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is opencode subagents the official server?
opencode subagents is a community project by sebstaq, not verified by a company domain.
Is opencode subagents free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is opencode subagents safe to use?
It scores 83 of 100. Grades: maintenance B, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to opencode subagents?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does opencode subagents work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
