zerohead
Get started

Agents

Codex

Run Codex as a zerohead agent, with its settings and how its tools work, though it is still unproven.

The source is not public yet. It will be published under MIT. The pages under Contributing describe working on it once it is.

The Codex adapter starts the Codex command-line tool once for each run.

Codex has not yet completed a real run through zerohead. A real attempt reached zerohead's tool endpoint, then stopped on Codex's own usage limit before it called any tool. Treat this adapter as unproven.

What you install

Install Codex yourself and sign in to it. zerohead uses the sign-in the tool already has. It does not ask for your credentials.

Settings

Choose Codex as the Adapter.

SettingWhat it does
CommandA program name or path to run instead of codex.
ModelThe model to use. Empty means Codex's own default.
SandboxWhat shell commands may touch: read-only, workspace-write or danger-full-access. Default is workspace-write.
Skip all approvals and the sandboxDangerous. Codex runs commands with no sandbox and asks for nothing. It replaces the Sandbox setting.
EnvironmentVariables the program starts with. Values are kept private.

How it runs

zerohead runs codex exec --json in the run's folder and reads the prompt from standard input. Codex has no flag for a system prompt, so zerohead puts the agent's added instructions at the start of the prompt.

How zerohead's tools reach it

The run's token goes to Codex in the environment variable ZEROHEAD_MCP_TOKEN. zerohead adds three -c settings that name the tool endpoint and the token variable, and mark zerohead's tools as pre-approved. Without that, Codex refuses MCP tools in an unattended run.

What it can do without asking

Codex's shell commands stay inside the Sandbox. In workspace-write they can change files in the run's folder, and network access is restricted. Only zerohead's own tools are pre-approved. The pre-approval has not been tried with a real model.

Budgets

Codex reports its usage with no price. A dollar budget never counts unpriced usage, so Codex's own usage never adds to one. A company budget that other agents use up still holds a Codex agent. A run that ends with no usage report at all is charged an estimate, but a Codex run that reports usage is not. To limit a Codex agent, use the runs-per-hour limit and the run timeout. See Budgets and approvals.

Sessions

Each run starts a fresh Codex session. The agent does not remember an earlier run. What it needs to carry over goes through task comments and company memory.

zeroheadHomeMIT license