opencode-sandbox
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opencode-sandboxcreate a sandbox for my project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
opencode-sandbox
Spin up an isolated opencode instance from prebuilt public GHCR images and hand
it to Claude Code as an MCP server. No build step, no checkout of the opencode
fork — each instance is its own Docker Compose project with its own named
volumes, and its workspace is a named volume rather than a host bind, so it
cannot see your filesystem. Images are public and pull anonymously; the
backend reports opencode 1.18.4 and the MCP bridge exposes 80 tools.
Install
Build from source and drop the binary on your PATH:
bun run build
cp dist/opencode-sandbox ~/.local/bin/(bun run install-local does both in one step.) Or grab a prebuilt binary
from this repo's GitHub Releases.
Related MCP server: devcontainer-mcp
Quickstart
Create an instance. Any provider API key already in your shell
(ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY,
OPENROUTER_API_KEY) is forwarded into it at create time — there's no UI
login step and no auth.json to manage.
opencode-sandbox create scratch --seed ./my-project --config ./opencode.jsonc--seed copies a directory into the fresh workspace before the instance first
starts; --config places an opencode.jsonc for that instance alone. Both are
optional.
Register it with Claude Code. create prints this line, and url reprints it
later:
opencode-sandbox url scratch
claude mcp add --transport http scratch http://127.0.0.1:4784/mcpNow use it — the instance's 80 tools (read, write, run shell commands, all
scoped to its own /workspace) are available in that Claude Code session.
When you're done:
opencode-sandbox destroy scratch --yesdestroy removes the containers and their volumes, including the workspace.
A web UI is available too, behind --web on create; without it, the MCP
bridge is the only interface.
Security note
The MCP bridge has no inbound authentication of its own. Anyone who can
reach its port gets the full opencode tool surface — reading and writing
files and running shell commands inside that instance's /workspace. The
published port is bound to 127.0.0.1 by default; keep it that way. Do not
widen it to 0.0.0.0 or put it behind a public reverse proxy without a real
auth layer in front of it.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceRuns isolated AI agents in Docker containers with persistent workspaces and conversation history. Each agent has access to file operations, shell commands, GitHub integration, and can connect to external MCP servers for additional tools.3MIT
- Alicense-qualityAmaintenance45+ first-class, OS and backend specific MCP tools that let AI coding agents create, manage, read, edit, and write files inside dev containers, keeping your machine clean and your environment reproducible and deploy-friendly. Use local Docker, GitHub Codespaces, Azure, AWS, Google Cloud or Kubernetes seamlessly!23MIT
- AlicenseAqualityCmaintenanceEnables code execution in isolated Docker containers with persistent IPython, Node.js, or R kernels, supporting file import/export and cross-session transfers via MCP tools.6MIT
- Flicense-qualityBmaintenanceContainerized MCP server for coding agents with tools for file editing, shell commands, process management, Git, browser automation, and project snapshots.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Hosted MCP server for structured code review passes on human- and AI-written code. Free tier.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hsb3/opencode-sandbox'
If you have feedback or need assistance with the MCP directory API, please join our Discord server