[{"data":1,"prerenderedAt":315,"buildId":316},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Fget-started\u002Fpair-a-browser":3,"docs:\u002Fdocs\u002Fget-started\u002Fpair-a-browser":12,"i-lucide:copy":203,"i-lucide:menu":208,"i-lucide:search":210,"navigation":212,"source":303},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"Install","\u002Fdocs\u002Fget-started\u002Finstall","docs\u002F1.get-started\u002F1.install",{"title":9,"path":10,"stem":11,"children":-1},"Your first task","\u002Fdocs\u002Fget-started\u002Fyour-first-task","docs\u002F1.get-started\u002F3.your-first-task",{"id":13,"title":14,"body":15,"description":195,"extension":196,"meta":197,"navigation":198,"path":199,"seo":200,"stem":201,"__hash__":202},"docs\u002Fdocs\u002F1.get-started\u002F2.pair-a-browser.md","Pair a browser",{"type":16,"value":17,"toc":188},"minimark",[18,22,27,35,45,67,70,74,77,85,95,98,102,105,136,139,146,155,159,182],[19,20,21],"p",{},"A browser must be paired before it can use the server. Pairing gives it a device token, which the browser keeps. The server stores only a hash of the token.",[23,24,26],"h2",{"id":25},"pair-the-first-browser","Pair the first browser",[19,28,29,30,34],{},"When you install zerohead, and whenever you start ",[31,32,33],"code",{},"zerohead serve"," in a terminal with no paired device, it prints a pairing code and a link (the background service writes none to its log):",[36,37,43],"pre",{"className":38,"code":40,"language":41,"meta":42},[39],"language-text","Pairing code: K7QF-2MXW (works once, for 10 minutes)\nOpen http:\u002F\u002Flocalhost:4747\u002Fpair#code=K7QF-2MXW\n","text","",[31,44,40],{"__ignoreMap":42},[46,47,48,52,60],"ol",{},[49,50,51],"li",{},"Open the link. The code is already filled in.",[49,53,54,55,59],{},"Choose a ",[56,57,58],"strong",{},"Device name"," you will recognise later.",[49,61,62,63,66],{},"Select ",[56,64,65],{},"Pair device",".",[19,68,69],{},"The code works once and lasts 10 minutes. Case, spaces and the dash do not matter when you type it.",[23,71,73],{"id":72},"pair-another-browser","Pair another browser",[19,75,76],{},"Ask for a new code. The server does not need to be running:",[36,78,83],{"className":79,"code":81,"language":82,"meta":42},[80],"language-sh","zerohead pair\n","sh",[31,84,81],{"__ignoreMap":42},[19,86,87,88,91,92,66],{},"Open the printed link in the new browser, or open ",[31,89,90],{},"\u002Fpair"," on the server's address and type the code into ",[56,93,94],{},"Pairing code",[19,96,97],{},"Failed attempts are limited to 10 a minute across the server. After that it answers 429 for a minute. A valid code still works.",[23,99,101],{"id":100},"reach-it-from-another-device-on-your-network","Reach it from another device on your network",[19,103,104],{},"By default the server listens only on this computer. To use it from a phone on the same network:",[46,106,107,118,133],{},[49,108,109,110,113,114,117],{},"Start the server with ",[31,111,112],{},"ZEROHEAD_BIND"," (or ",[31,115,116],{},"--bind",") set to an address the phone can reach. The server then prints a warning that it is reachable from the network.",[49,119,120,121,124,125,128,129,132],{},"Add the host name or address you will type into the phone to ",[31,122,123],{},"ZEROHEAD_ALLOWED_HOSTS",". The server refuses any ",[31,126,127],{},"Host"," or ",[31,130,131],{},"Origin"," it does not expect.",[49,134,135],{},"Pair the phone as above.",[19,137,138],{},"This has not been tried on a real phone.",[19,140,141,142,145],{},"Notifications in a browser need a secure page: https, or ",[31,143,144],{},"localhost",". A plain http address on your network cannot turn them on.",[19,147,148,149,154],{},"To reach your computer from anywhere, read ",[150,151,153],"a",{"href":152},"\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","Remote access",". It is built and not hosted anywhere yet.",[23,156,158],{"id":157},"see-and-remove-devices","See and remove devices",[19,160,161,162,165,166,169,170,173,174,177,178,181],{},"Open ",[56,163,164],{},"More",", then ",[56,167,168],{},"Settings",". ",[56,171,172],{},"Paired devices"," lists every device with when it was paired and when it was last seen. Select ",[56,175,176],{},"Revoke"," on a device, then ",[56,179,180],{},"Confirm revoke",". Revoking deletes the device and closes its open connections. A revoked browser shows \"This device was revoked\" and has to pair again.",[183,184,185],"note",{},[19,186,187],{},"A pairing code gives full control of your companies, agents and spending. Share it with no one, and revoke any device you do not recognise.",{"title":42,"searchDepth":189,"depth":189,"links":190},2,[191,192,193,194],{"id":25,"depth":189,"text":26},{"id":72,"depth":189,"text":73},{"id":100,"depth":189,"text":101},{"id":157,"depth":189,"text":158},"How a browser gets permission to use your zerohead server, and how to add or remove one later.","md",{},true,"\u002Fdocs\u002Fget-started\u002Fpair-a-browser",{"title":14,"description":195},"docs\u002F1.get-started\u002F2.pair-a-browser","D051WsWZZ-0golVP1hrznQoXYt1RoC9KBIwbWSNzYe8",{"left":204,"top":204,"width":205,"height":205,"rotate":204,"vFlip":206,"hFlip":206,"body":207},0,24,false,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":204,"top":204,"width":205,"height":205,"rotate":204,"vFlip":206,"hFlip":206,"body":209},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":204,"top":204,"width":205,"height":205,"rotate":204,"vFlip":206,"hFlip":206,"body":211},"\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>",[213],{"title":214,"path":215,"stem":216,"children":217,"page":206},"Docs","\u002Fdocs","docs",[218,226,253,282,294],{"title":219,"path":220,"stem":221,"children":222,"page":206},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[223,224,225],{"title":5,"path":6,"stem":7},{"title":14,"path":199,"stem":201},{"title":9,"path":10,"stem":11},{"title":227,"path":228,"stem":229,"children":230,"page":206},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[231,235,239,243,247,251],{"title":232,"path":233,"stem":234},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":236,"path":237,"stem":238},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":240,"path":241,"stem":242},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":244,"path":245,"stem":246},"Budgets and approvals","\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":248,"path":249,"stem":250},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":153,"path":152,"stem":252},"docs\u002F2.using-zerohead\u002F6.remote-access",{"title":254,"path":255,"stem":256,"children":257,"page":206},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[258,262,266,270,274,278],{"title":259,"path":260,"stem":261},"Claude Code","\u002Fdocs\u002Fagents\u002Fclaude-code","docs\u002F3.agents\u002F1.claude-code",{"title":263,"path":264,"stem":265},"Codex","\u002Fdocs\u002Fagents\u002Fcodex","docs\u002F3.agents\u002F2.codex",{"title":267,"path":268,"stem":269},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"title":271,"path":272,"stem":273},"Pi","\u002Fdocs\u002Fagents\u002Fpi","docs\u002F3.agents\u002F4.pi",{"title":275,"path":276,"stem":277},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"title":279,"path":280,"stem":281},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":283,"path":284,"stem":285,"children":286,"page":206},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[287,290],{"title":168,"path":288,"stem":289},"\u002Fdocs\u002Freference\u002Fsettings","docs\u002F4.reference\u002F1.settings",{"title":291,"path":292,"stem":293},"Command line","\u002Fdocs\u002Freference\u002Fcommand-line","docs\u002F4.reference\u002F2.command-line",{"title":295,"path":296,"stem":297,"children":298,"page":206},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[299],{"title":300,"path":301,"stem":302},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":304,"clone":305,"description":306,"docsNotice":307,"extension":308,"meta":309,"status":310,"stem":313,"__hash__":314},"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":311,"text":312},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796109414044,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]