opencode from any directory on any boxd VM. The CLI is already on the image, reads the standard AGENTS.md, and runs against the same in-VM boxd CLI the other agents use. Real kernel, full root, persistent disk, public URL.
How it works
OpenCode is pulled in at image build time, so every fresh VM and every fork has it. The image ships anAGENTS.md at ~/.config/opencode/AGENTS.md covering the boxd environment: how to create siblings with boxd new, manage proxies, exec across VMs, and clean up. OpenCode picks it up by default from any working directory.
The in-VM boxd CLI is pre-authenticated by source IP, so the agent can drive the platform without a token. JSON output is on by default with --json, so the agent can parse what it ran.
Auth for the model itself is not yet persisted across resets, so first run on a fresh VM means signing in. Claude Code on boxd already persists auth across resets and forks (how); the same UX is on the roadmap for OpenCode.
Use it
Interactive session:boxd exec:
Patterns
Fan-out across VMs
Fork before risky ops
Snapshot a working VM before a destructive change. If the run goes wrong, destroy the fork, fork again from the parent.Bias with project-level AGENTS.md
Drop anAGENTS.md in your repo. OpenCode merges it with the boxd-provided one, so you keep the platform context for free and add your conventions on top.
Auth doesn’t persist across resets for OpenCode yet. Plan to sign in once per VM, or use Claude Code on boxd for the persistent-auth UX.
FAQ
Where is AGENTS.md picked up from?
Where is AGENTS.md picked up from?
~/.config/opencode/AGENTS.md is the global file the image ships with. A repo-level AGENTS.md is merged on top when you run opencode in that directory.Can OpenCode drive other boxd VMs?
Can OpenCode drive other boxd VMs?
Yes. The in-VM
boxd CLI works from any agent. OpenCode can boxd new siblings, boxd exec into them, and boxd destroy when done.Is there an OpenCode version of the fix-on-issue skill?
Is there an OpenCode version of the fix-on-issue skill?
Not yet. The slash-command skill targets Claude Code today. Email
contact@boxd.sh and we’ll prioritize.Can I run Docker, install kernel modules, run systemd?
Can I run Docker, install kernel modules, run systemd?
Yes. The VM is a real KVM microVM with its own kernel. Anything you’d do on a Linux laptop, OpenCode can do here.
Next
Agent sandboxes
Give OpenCode its own VM. Fork to recover.
Claude Code on boxd
Same primitives, persistent auth, ships with slash-command skills.