codex from any directory on any boxd VM. The CLI is already on the image, already briefed on the environment via AGENTS.md, and runs against the same in-VM boxd CLI Claude Code uses. Same fork/sandbox patterns, same delegation flow.
How it works
Codex ships pre-installed at image build time, so every fresh VM and every fork has it. The image also drops anAGENTS.md at ~/.codex/AGENTS.md covering the boxd environment: how to create siblings with boxd new, manage proxies, exec across VMs, and clean up. Codex picks it up automatically from any working directory.
The in-VM boxd CLI is pre-authenticated by source IP. Codex can drive it the same way Claude Code does, no token or key setup.
Auth for the model itself is not yet persisted across resets, so first run on a fresh VM means signing in. Claude Code already persists auth across resets and forks (how); the same UX is on the roadmap for Codex.
Use it
Interactive session:boxd exec:
boxd new and boxd fork, you get the same sandbox patterns documented for Claude Code: fork before risky ops, fan out across VMs, destroy when done. See Agent sandboxes.
Patterns
Fan-out across VMs
Fork before risky ops
Snapshot a working VM before letting Codex run a migration or a destructive refactor. If the run goes wrong, destroy the fork and fork again from the parent.Bias with AGENTS.md
Add a project-levelAGENTS.md in your repo. Codex merges it with the boxd-provided one, so you keep the platform context for free and bolt your conventions on top.
Auth doesn’t persist across resets for Codex 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?
~/.codex/AGENTS.md is the global file the image ships with. Any AGENTS.md in the repo working directory is merged on top.Can I use Codex non-interactively for CI-style jobs?
Can I use Codex non-interactively for CI-style jobs?
Yes.
codex exec "..." is the non-interactive form. Pair with boxd exec to run it inside a VM remotely.Is there a Codex version of the fix-on-issue skill?
Is there a Codex 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 a Codex packaging.Can Codex drive other boxd VMs?
Can Codex drive other boxd VMs?
Yes. The in-VM
boxd CLI works from any agent. Codex can boxd new siblings, boxd exec into them, and boxd destroy when done.Next
Agent sandboxes
Give Codex its own VM. Fork to recover.
Claude Code on boxd
Same primitives, persistent auth, ships with slash-command skills.