[{"data":1,"prerenderedAt":326,"buildId":327},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Fagents\u002Fcodex":3,"docs:\u002Fdocs\u002Fagents\u002Fcodex":12,"i-lucide:menu":216,"i-lucide:search":221,"navigation":223,"source":314},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"Claude Code","\u002Fdocs\u002Fagents\u002Fclaude-code","docs\u002F3.agents\u002F1.claude-code",{"title":9,"path":10,"stem":11,"children":-1},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"id":13,"title":14,"body":15,"description":208,"extension":209,"meta":210,"navigation":211,"path":212,"seo":213,"stem":214,"__hash__":215},"docs\u002Fdocs\u002F3.agents\u002F2.codex.md","Codex",{"type":16,"value":17,"toc":197},"minimark",[18,22,28,33,36,40,51,139,143,150,154,165,169,178,182,190,194],[19,20,21],"p",{},"The Codex adapter starts the Codex command-line tool once for each run.",[23,24,25],"note",{},[19,26,27],{},"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.",[29,30,32],"h2",{"id":31},"what-you-install","What you install",[19,34,35],{},"Install Codex yourself and sign in to it. zerohead uses the sign-in the tool already has. It does not ask for your credentials.",[29,37,39],{"id":38},"settings","Settings",[19,41,42,43,46,47,50],{},"Choose ",[44,45,14],"strong",{}," as the ",[44,48,49],{},"Adapter",".",[52,53,54,67],"table",{},[55,56,57],"thead",{},[58,59,60,64],"tr",{},[61,62,63],"th",{},"Setting",[61,65,66],{},"What it does",[68,69,70,85,95,119,129],"tbody",{},[58,71,72,78],{},[73,74,75],"td",{},[44,76,77],{},"Command",[73,79,80,81,50],{},"A program name or path to run instead of ",[82,83,84],"code",{},"codex",[58,86,87,92],{},[73,88,89],{},[44,90,91],{},"Model",[73,93,94],{},"The model to use. Empty means Codex's own default.",[58,96,97,102],{},[73,98,99],{},[44,100,101],{},"Sandbox",[73,103,104,105,108,109,112,113,116,117,50],{},"What shell commands may touch: ",[82,106,107],{},"read-only",", ",[82,110,111],{},"workspace-write"," or ",[82,114,115],{},"danger-full-access",". Default is ",[82,118,111],{},[58,120,121,126],{},[73,122,123],{},[44,124,125],{},"Skip all approvals and the sandbox",[73,127,128],{},"Dangerous. Codex runs commands with no sandbox and asks for nothing. It replaces the Sandbox setting.",[58,130,131,136],{},[73,132,133],{},[44,134,135],{},"Environment",[73,137,138],{},"Variables the program starts with. Values are kept private.",[29,140,142],{"id":141},"how-it-runs","How it runs",[19,144,145,146,149],{},"zerohead runs ",[82,147,148],{},"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.",[29,151,153],{"id":152},"how-zeroheads-tools-reach-it","How zerohead's tools reach it",[19,155,156,157,160,161,164],{},"The run's token goes to Codex in the environment variable ",[82,158,159],{},"ZEROHEAD_MCP_TOKEN",". zerohead adds three ",[82,162,163],{},"-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.",[29,166,168],{"id":167},"what-it-can-do-without-asking","What it can do without asking",[19,170,171,172,174,175,177],{},"Codex's shell commands stay inside the ",[44,173,101],{},". In ",[82,176,111],{}," 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.",[29,179,181],{"id":180},"budgets","Budgets",[19,183,184,185,50],{},"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 ",[186,187,189],"a",{"href":188},"\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","Budgets and approvals",[29,191,193],{"id":192},"sessions","Sessions",[19,195,196],{},"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.",{"title":198,"searchDepth":199,"depth":199,"links":200},"",2,[201,202,203,204,205,206,207],{"id":31,"depth":199,"text":32},{"id":38,"depth":199,"text":39},{"id":141,"depth":199,"text":142},{"id":152,"depth":199,"text":153},{"id":167,"depth":199,"text":168},{"id":180,"depth":199,"text":181},{"id":192,"depth":199,"text":193},"Run Codex as a zerohead agent, with its settings and how its tools work, though it is still unproven.","md",{},true,"\u002Fdocs\u002Fagents\u002Fcodex",{"title":14,"description":208},"docs\u002F3.agents\u002F2.codex","ilbmlWHY-DDIKVYohV2LrW4Rel1MfHOWIYeeKvcQ6bo",{"left":217,"top":217,"width":218,"height":218,"rotate":217,"vFlip":219,"hFlip":219,"body":220},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":217,"top":217,"width":218,"height":218,"rotate":217,"vFlip":219,"hFlip":219,"body":222},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m21 21l-4.34-4.34\"\u002F>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"\u002F>\u003C\u002Fg>",[224],{"title":225,"path":226,"stem":227,"children":228,"page":219},"Docs","\u002Fdocs","docs",[229,246,273,293,305],{"title":230,"path":231,"stem":232,"children":233,"page":219},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[234,238,242],{"title":235,"path":236,"stem":237},"Install","\u002Fdocs\u002Fget-started\u002Finstall","docs\u002F1.get-started\u002F1.install",{"title":239,"path":240,"stem":241},"Pair a browser","\u002Fdocs\u002Fget-started\u002Fpair-a-browser","docs\u002F1.get-started\u002F2.pair-a-browser",{"title":243,"path":244,"stem":245},"Your first task","\u002Fdocs\u002Fget-started\u002Fyour-first-task","docs\u002F1.get-started\u002F3.your-first-task",{"title":247,"path":248,"stem":249,"children":250,"page":219},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[251,255,259,263,265,269],{"title":252,"path":253,"stem":254},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":256,"path":257,"stem":258},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":260,"path":261,"stem":262},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":189,"path":188,"stem":264},"docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":266,"path":267,"stem":268},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":270,"path":271,"stem":272},"Remote access","\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","docs\u002F2.using-zerohead\u002F6.remote-access",{"title":274,"path":275,"stem":276,"children":277,"page":219},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[278,279,280,281,285,289],{"title":5,"path":6,"stem":7},{"title":14,"path":212,"stem":214},{"title":9,"path":10,"stem":11},{"title":282,"path":283,"stem":284},"Pi","\u002Fdocs\u002Fagents\u002Fpi","docs\u002F3.agents\u002F4.pi",{"title":286,"path":287,"stem":288},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"title":290,"path":291,"stem":292},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":294,"path":295,"stem":296,"children":297,"page":219},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[298,301],{"title":39,"path":299,"stem":300},"\u002Fdocs\u002Freference\u002Fsettings","docs\u002F4.reference\u002F1.settings",{"title":302,"path":303,"stem":304},"Command line","\u002Fdocs\u002Freference\u002Fcommand-line","docs\u002F4.reference\u002F2.command-line",{"title":306,"path":307,"stem":308,"children":309,"page":219},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[310],{"title":311,"path":312,"stem":313},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":315,"clone":316,"description":317,"docsNotice":318,"extension":319,"meta":320,"status":321,"stem":324,"__hash__":325},"source\u002Fsource\u002Fprivate.yml",null,"Run a company of AI agents on your own computer. The source will be published under MIT.","The source is not public yet. It will be published under MIT. The pages under Contributing describe working on it once it is.","yml",{},{"lead":322,"text":323},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796109414158,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]