boxer

OpenCode

Route OpenCode's shell commands into the sandbox with a plugin.

OpenCode has no hooks, but it loads TypeScript plugins. boxer's plugin creates the sandbox when a session starts, and rewrites each intercepted command to boxer run before OpenCode runs it.

Set up

boxer install opencode
git add .opencode opencode.json AGENTS.md
git commit -m "Run OpenCode's commands in boxer"

What it writes

FileWhat it is
.opencode/plugins/boxer.tsthe plugin that rewrites commands
opencode.jsonthe boxer MCP server; in opencode.jsonc instead when that is the file you have, as long as it has no comments
AGENTS.mda section telling OpenCode how commands run here

Check it

boxer doctor

Then ask OpenCode to run node -p process.platform. It prints linux.

Options

  • Run OpenCode itself in the sandbox: boxer shell opencode. See Inside mode.

Tested in the matrix with plugin rewrite and inside mode.

On this page