Skip to main content
Type 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 an AGENTS.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. 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:
Non-interactive delegation through boxd machine exec:
Combined with boxd new and boxd machine 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-level AGENTS.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

~/.codex/AGENTS.md is the global file the image ships with. Any AGENTS.md in the repo working directory is merged on top.
Yes. codex exec "..." is the non-interactive form. Pair with boxd machine exec to run it inside a VM remotely.
Not yet. The slash-command skill targets Claude Code today. Email contact@boxd.sh and we’ll prioritize a Codex packaging.
Yes. The in-VM boxd CLI works from any agent. Codex can boxd new siblings, boxd machine exec into them, and boxd machine remove 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.