[{"data":1,"prerenderedAt":379,"buildId":380},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Fagents\u002Fclaude-code":3,"docs:\u002Fdocs\u002Fagents\u002Fclaude-code":12,"i-lucide:menu":267,"i-lucide:search":272,"navigation":274,"source":367},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"Remote access","\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","docs\u002F2.using-zerohead\u002F6.remote-access",{"title":9,"path":10,"stem":11,"children":-1},"Codex","\u002Fdocs\u002Fagents\u002Fcodex","docs\u002F3.agents\u002F2.codex",{"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\u002F1.claude-code.md","Claude Code",{"type":16,"value":17,"toc":248},"minimark",[18,22,27,30,34,45,156,178,182,189,193,207,211,223,230,234,241,245],[19,20,21],"p",{},"The Claude Code adapter starts the Claude Code command-line tool once for each run. It is the best tested adapter.",[23,24,26],"h2",{"id":25},"what-you-install","What you install",[19,28,29],{},"Install Claude Code yourself and sign in to it, the way its own documentation says. zerohead uses your sign-in and your subscription. It never asks for your Claude credentials.",[23,31,33],{"id":32},"settings","Settings",[19,35,36,37,40,41,44],{},"Choose ",[38,39,14],"strong",{}," as the ",[38,42,43],{},"Adapter"," when you create an agent.",[46,47,48,61],"table",{},[49,50,51],"thead",{},[52,53,54,58],"tr",{},[55,56,57],"th",{},"Setting",[55,59,60],{},"What it does",[62,63,64,80,90,103,116,126,136,146],"tbody",{},[52,65,66,72],{},[67,68,69],"td",{},[38,70,71],{},"Command",[67,73,74,75,79],{},"A program name or path to run instead of ",[76,77,78],"code",{},"claude",".",[52,81,82,87],{},[67,83,84],{},[38,85,86],{},"Model",[67,88,89],{},"The model to use. Empty means Claude Code's own default.",[52,91,92,97],{},[67,93,94],{},[38,95,96],{},"Permission mode",[67,98,99,100,79],{},"How Claude Code treats tool permissions. Default is ",[76,101,102],{},"bypassPermissions",[52,104,105,110],{},[67,106,107],{},[38,108,109],{},"Allowed tools",[67,111,112,113,79],{},"Passed to Claude Code as its allowed-tools list, for example ",[76,114,115],{},"Bash(git:*) Edit",[52,117,118,123],{},[67,119,120],{},[38,121,122],{},"Maximum turns",[67,124,125],{},"Stops a run after this many turns.",[52,127,128,133],{},[67,129,130],{},[38,131,132],{},"Load my personal Claude Code settings",[67,134,135],{},"Off by default. Your own settings, plugins and hooks are not loaded.",[52,137,138,143],{},[67,139,140],{},[38,141,142],{},"Load my own MCP servers",[67,144,145],{},"Off by default. zerohead tells Claude Code to ignore other MCP configuration.",[52,147,148,153],{},[67,149,150],{},[38,151,152],{},"Environment",[67,154,155],{},"Variables the program starts with. Values are kept private.",[19,157,158,159,162,163,162,166,162,168,162,171,174,175,79],{},"The permission modes are ",[76,160,161],{},"acceptEdits",", ",[76,164,165],{},"auto",[76,167,102],{},[76,169,170],{},"manual",[76,172,173],{},"dontAsk"," and ",[76,176,177],{},"plan",[23,179,181],{"id":180},"how-it-runs","How it runs",[19,183,184,185,188],{},"zerohead runs ",[76,186,187],{},"claude -p --output-format stream-json --verbose --permission-mode \u003Cmode>",". The prompt goes in on standard input. Each run starts a fresh session.",[23,190,192],{"id":191},"how-zeroheads-tools-reach-it","How zerohead's tools reach it",[19,194,195,196,199,200,202,203,206],{},"zerohead has a tool endpoint on your server. For each run it makes a token that works only while the run lasts. The token goes in a private file that is removed when the run ends, and Claude Code reads it through ",[76,197,198],{},"--mcp-config",". With ",[38,201,142],{}," off, zerohead also passes ",[76,204,205],{},"--strict-mcp-config",", which tells Claude Code to ignore other MCP configuration. In one captured run a plugin's MCP server still connected, so do not rely on this to hide tools.",[23,208,210],{"id":209},"what-it-can-do-without-asking","What it can do without asking",[19,212,213,214,216,217,219,220,222],{},"A run is unattended, so nothing can answer a permission prompt. The default mode ",[76,215,102],{}," lets Claude Code use its tools without asking. That includes running commands and editing files. The run starts in its folder, but nothing confines it there, and zerohead adds no sandbox. Choose another ",[38,218,96],{}," or set ",[38,221,109],{}," to change that.",[19,224,225,226,229],{},"An agent can ask for your decision with zerohead's approval tool. It does so only when it chooses to, so say in its ",[38,227,228],{},"Instructions"," when it must ask.",[23,231,233],{"id":232},"usage-windows","Usage windows",[19,235,236,237,240],{},"Claude Code reports its five-hour and seven-day subscription windows. ",[38,238,239],{},"Usage"," shows them. A full window holds your Claude Code agents until it resets.",[23,242,244],{"id":243},"has-it-run-for-real","Has it run for real?",[19,246,247],{},"Once. That run received a task, called zerohead's tools, closed the task and ran exactly once. Two changes were made after it and have not been run for real: the default that keeps your personal settings out, and how the token is passed. The repository has a Claude smoke test that checks them. It takes about 15 seconds and spends a few cents of your subscription.",{"title":249,"searchDepth":250,"depth":250,"links":251},"",2,[252,253,254,255,256,257,258],{"id":25,"depth":250,"text":26},{"id":32,"depth":250,"text":33},{"id":180,"depth":250,"text":181},{"id":191,"depth":250,"text":192},{"id":209,"depth":250,"text":210},{"id":232,"depth":250,"text":233},{"id":243,"depth":250,"text":244},"Run Claude Code as a zerohead agent, with its settings, how its tools work and what it may do.","md",{},true,"\u002Fdocs\u002Fagents\u002Fclaude-code",{"title":14,"description":259},"docs\u002F3.agents\u002F1.claude-code","0_VryiZxLrZODAFpE-ReDdux-0m9YhEhrhkTEaXGaMQ",{"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,323,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":5,"path":6,"stem":7},{"title":324,"path":325,"stem":326,"children":327,"page":270},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[328,329,330,334,338,342],{"title":14,"path":263,"stem":265},{"title":9,"path":10,"stem":11},{"title":331,"path":332,"stem":333},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"title":335,"path":336,"stem":337},"Pi","\u002Fdocs\u002Fagents\u002Fpi","docs\u002F3.agents\u002F4.pi",{"title":339,"path":340,"stem":341},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"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":33,"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",1796109414144,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]