[{"data":1,"prerenderedAt":379,"buildId":380},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Fagents\u002Fpi":3,"docs:\u002Fdocs\u002Fagents\u002Fpi":12,"i-lucide:menu":267,"i-lucide:search":272,"navigation":274,"source":367},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"title":9,"path":10,"stem":11,"children":-1},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"id":13,"title":14,"body":15,"description":259,"extension":260,"meta":261,"navigation":262,"path":263,"seo":264,"stem":265,"__hash__":266},"docs\u002Fdocs\u002F3.agents\u002F4.pi.md","Pi",{"type":16,"value":17,"toc":249},"minimark",[18,22,28,33,46,50,60,195,199,210,214,225,229,242,246],[19,20,21],"p",{},"The Pi adapter starts the Pi command-line tool once for each run.",[23,24,25],"note",{},[19,26,27],{},"Pi has never run for real through zerohead. The adapter was written from Pi's help text and documentation.",[29,30,32],"h2",{"id":31},"what-you-install-and-how-it-signs-in","What you install and how it signs in",[19,34,35,36,40,41,45],{},"Install Pi yourself. zerohead never reads, copies or writes your own Pi folder, so a run cannot sign you out of Pi. Pi agents sign in only through a provider's API key, which you put in the agent's ",[37,38,39],"strong",{},"Environment"," setting, for example ",[42,43,44],"code",{},"OPENAI_API_KEY",". With no key, Pi's own error ends the run as Failed.",[29,47,49],{"id":48},"settings","Settings",[19,51,52,53,55,56,59],{},"Choose ",[37,54,14],{}," as the ",[37,57,58],{},"Adapter",".",[61,62,63,76],"table",{},[64,65,66],"thead",{},[67,68,69,73],"tr",{},[70,71,72],"th",{},"Setting",[70,74,75],{},"What it does",[77,78,79,93,111,124,156,166,176,186],"tbody",{},[67,80,81,87],{},[82,83,84],"td",{},[37,85,86],{},"Command",[82,88,89,90,59],{},"A program name or path to run instead of ",[42,91,92],{},"pi",[67,94,95,100],{},[82,96,97],{},[37,98,99],{},"Provider",[82,101,102,103,106,107,110],{},"For example ",[42,104,105],{},"openai",". Needs a ",[37,108,109],{},"Model"," as well.",[67,112,113,117],{},[82,114,115],{},[37,116,109],{},[82,118,119,120,123],{},"Pi's model, in ",[42,121,122],{},"provider\u002Fid"," form or with a provider chosen above.",[67,125,126,131],{},[82,127,128],{},[37,129,130],{},"Thinking level",[82,132,133,136,137,136,140,136,143,136,146,136,149,152,153,59],{},[42,134,135],{},"off",", ",[42,138,139],{},"minimal",[42,141,142],{},"low",[42,144,145],{},"medium",[42,147,148],{},"high",[42,150,151],{},"xhigh"," or ",[42,154,155],{},"max",[67,157,158,163],{},[82,159,160],{},[37,161,162],{},"Tools allowed",[82,164,165],{},"A comma-separated list of the only tools Pi may use.",[67,167,168,173],{},[82,169,170],{},[37,171,172],{},"Tools blocked",[82,174,175],{},"A comma-separated list of tools Pi may not use.",[67,177,178,183],{},[82,179,180],{},[37,181,182],{},"Session folder",[82,184,185],{},"Where Pi writes its session file.",[67,187,188,192],{},[82,189,190],{},[37,191,39],{},[82,193,194],{},"API keys and other variables. Values are kept private.",[29,196,198],{"id":197},"how-it-runs","How it runs",[19,200,201,202,205,206,209],{},"zerohead runs ",[42,203,204],{},"pi --mode json"," with a private per-run agent folder, and the prompt after ",[42,207,208],{},"--",". Standard input is closed. Pi can exit with 0 after a failed or aborted answer, so zerohead calls a run successful only when Pi reports that it settled without being aborted and without an unresolved error.",[29,211,213],{"id":212},"how-zeroheads-tools-reach-it","How zerohead's tools reach it",[19,215,216,217,220,221,224],{},"Each run gets its own agent folder that holds only an ",[42,218,219],{},"mcp.json"," for the zerohead tool server. The token goes in ",[42,222,223],{},"ZEROHEAD_MCP_TOKEN",". The folder is deleted when the run ends. If a run has no tool endpoint, zerohead tells Pi to use no MCP servers.",[29,226,228],{"id":227},"what-it-can-do-without-asking","What it can do without asking",[19,230,231,232,234,235,237,238,241],{},"Pi has no sandbox flag. From its documentation, which has not been checked by a run, Pi does not ask for approval before each tool call, and enabled tools have the permissions of the Pi process. Use ",[37,233,162],{}," and ",[37,236,172],{}," to limit it. For example, ",[42,239,240],{},"read,grep,find,ls"," makes a read-only agent.",[29,243,245],{"id":244},"sessions","Sessions",[19,247,248],{},"Each run starts fresh. Because the agent folder is deleted, a Pi run cannot be resumed.",{"title":250,"searchDepth":251,"depth":251,"links":252},"",2,[253,254,255,256,257,258],{"id":31,"depth":251,"text":32},{"id":48,"depth":251,"text":49},{"id":197,"depth":251,"text":198},{"id":212,"depth":251,"text":213},{"id":227,"depth":251,"text":228},{"id":244,"depth":251,"text":245},"Run Pi as a zerohead agent that signs in with API keys, though it has not yet run for real.","md",{},true,"\u002Fdocs\u002Fagents\u002Fpi",{"title":14,"description":259},"docs\u002F3.agents\u002F4.pi","mvVMKZXohK6oZK89uWC8d6DCzGGD0Y2HjLgbCbYTSK4",{"left":268,"top":268,"width":269,"height":269,"rotate":268,"vFlip":270,"hFlip":270,"body":271},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":268,"top":268,"width":269,"height":269,"rotate":268,"vFlip":270,"hFlip":270,"body":273},"\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>",[275],{"title":276,"path":277,"stem":278,"children":279,"page":270},"Docs","\u002Fdocs","docs",[280,297,326,346,358],{"title":281,"path":282,"stem":283,"children":284,"page":270},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[285,289,293],{"title":286,"path":287,"stem":288},"Install","\u002Fdocs\u002Fget-started\u002Finstall","docs\u002F1.get-started\u002F1.install",{"title":290,"path":291,"stem":292},"Pair a browser","\u002Fdocs\u002Fget-started\u002Fpair-a-browser","docs\u002F1.get-started\u002F2.pair-a-browser",{"title":294,"path":295,"stem":296},"Your first task","\u002Fdocs\u002Fget-started\u002Fyour-first-task","docs\u002F1.get-started\u002F3.your-first-task",{"title":298,"path":299,"stem":300,"children":301,"page":270},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[302,306,310,314,318,322],{"title":303,"path":304,"stem":305},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":307,"path":308,"stem":309},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":311,"path":312,"stem":313},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":315,"path":316,"stem":317},"Budgets and approvals","\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":319,"path":320,"stem":321},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":323,"path":324,"stem":325},"Remote access","\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","docs\u002F2.using-zerohead\u002F6.remote-access",{"title":327,"path":328,"stem":329,"children":330,"page":270},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[331,335,339,340,341,342],{"title":332,"path":333,"stem":334},"Claude Code","\u002Fdocs\u002Fagents\u002Fclaude-code","docs\u002F3.agents\u002F1.claude-code",{"title":336,"path":337,"stem":338},"Codex","\u002Fdocs\u002Fagents\u002Fcodex","docs\u002F3.agents\u002F2.codex",{"title":5,"path":6,"stem":7},{"title":14,"path":263,"stem":265},{"title":9,"path":10,"stem":11},{"title":343,"path":344,"stem":345},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":347,"path":348,"stem":349,"children":350,"page":270},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[351,354],{"title":49,"path":352,"stem":353},"\u002Fdocs\u002Freference\u002Fsettings","docs\u002F4.reference\u002F1.settings",{"title":355,"path":356,"stem":357},"Command line","\u002Fdocs\u002Freference\u002Fcommand-line","docs\u002F4.reference\u002F2.command-line",{"title":359,"path":360,"stem":361,"children":362,"page":270},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[363],{"title":364,"path":365,"stem":366},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":368,"clone":369,"description":370,"docsNotice":371,"extension":372,"meta":373,"status":374,"stem":377,"__hash__":378},"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":375,"text":376},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796109414172,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]