Opencode LLM Proxy
MCP server by KochC Verified · npm:opencode-llm-proxy
Opencode LLM Proxy runs a local HTTP server that translates OpenAI, Anthropic and Gemini API requests into calls to models OpenCode already has configured. It is for developers who want their tools and SDKs to reuse those models without separate setup.
Install Opencode LLM Proxy
Built from the published package, never by AI.
claude mcp add opencode-llm-proxy -- npx -y opencode-llm-proxyRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"opencode-llm-proxy": {
"args": [
"-y",
"opencode-llm-proxy"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"opencode-llm-proxy": {
"args": [
"-y",
"opencode-llm-proxy"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"opencode-llm-proxy": {
"args": [
"-y",
"opencode-llm-proxy"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add opencode-llm-proxy -- npx -y opencode-llm-proxy{
"mcpServers": {
"opencode-llm-proxy": {
"args": [
"-y",
"opencode-llm-proxy"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add opencode-llm-proxy npx -y opencode-llm-proxyGemini 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-llm-proxy block.
About
Opencode LLM Proxy is an OpenCode plugin that starts a local HTTP server on http://127.0.0.1:4010. It accepts requests in OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and Google Gemini formats, with streaming. It forwards them to whichever model provider OpenCode has configured, such as GitHub Copilot, Anthropic, Gemini, Ollama or OpenRouter.
Tool calling passes the tools and tool_choice fields through to the model and returns tool_calls, tool_use or functionCall responses, including several calls in one turn. The project is aimed at developers and teams who want SDKs, editors, n8n or coding agents to use existing OpenCode model access instead of separate API keys. It can bind to a LAN address when a bearer token is set, and it offers settings for timeouts, concurrency and CORS.
Written from the project's README and checked against it.
What you need
- OpenCode with at least one configured model provider
- npm to install the package
Try asking
- Send this chat request through the local proxy on port 4010 to my OpenCode model.
- Use the proxy to send a request with a tool definition and return the tool calls.
- Send this Gemini-format request through the local OpenCode proxy.
Good to know
- Works only as an OpenCode plugin, not as a standalone server.
- On OpenCode V1, tool calling also needs mcp-tool-bridge.js next to the bundled file.
- A bearer token is required when binding beyond loopback.
- Browser cross-origin requests are denied by default.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Point OpenAI SDK code at OpenCode-configured models
- Use n8n AI nodes with existing model access
- Run coding agents against OpenCode models
Alternatives to Opencode LLM Proxy
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 LLM Proxy: common questions
Which API formats does the proxy accept?
It accepts OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and Google Gemini generateContent requests. All four support streaming and tool calling.
Does it support parallel tool calls?
Yes. The README says tool calling works with all four formats, including several tool calls in a single turn.
Can other machines on my network use it?
Set OPENCODE_LLM_PROXY_HOST to 0.0.0.0 to expose it on the LAN. A token is required when binding beyond loopback.
How do I install Opencode LLM Proxy?
In Claude Code run claude mcp add opencode-llm-proxy -- npx -y opencode-llm-proxy. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Opencode LLM Proxy the official server?
Opencode LLM Proxy is published by npm:opencode-llm-proxy from its verified domain in the official MCP Registry.
Is Opencode LLM Proxy free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Opencode LLM Proxy safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Opencode LLM Proxy?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Opencode LLM Proxy 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.
