[{"data":1,"prerenderedAt":548,"buildId":549},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Fget-started\u002Finstall":3,"docs:\u002Fdocs\u002Fget-started\u002Finstall":9,"i-lucide:copy":435,"i-lucide:menu":440,"i-lucide:search":442,"navigation":444,"source":537},[4,5],null,{"title":6,"path":7,"stem":8,"children":-1},"Pair a browser","\u002Fdocs\u002Fget-started\u002Fpair-a-browser","docs\u002F1.get-started\u002F2.pair-a-browser",{"id":10,"title":11,"body":12,"description":427,"extension":428,"meta":429,"navigation":430,"path":431,"seo":432,"stem":433,"__hash__":434},"docs\u002Fdocs\u002F1.get-started\u002F1.install.md","Install",{"type":13,"value":14,"toc":417},"minimark",[15,19,30,35,38,75,87,106,109,113,180,193,196,300,306,309,315,319,326,332,346,350,363,367,373,376,380],[16,17,18],"p",{},"zerohead installs on Linux with x86_64 processors. macOS, Windows and other processors are coming.",[20,21,27],"pre",{"className":22,"code":24,"language":25,"meta":26},[23],"language-sh","curl -fsSL https:\u002F\u002Fzerohead.app\u002Finstall.sh | sh\n","sh","",[28,29,24],"code",{"__ignoreMap":26},[31,32,34],"h2",{"id":33},"what-it-does","What it does",[16,36,37],{},"The command downloads the latest release and checks its SHA-256. If the check fails, it stops and installs nothing. Then it:",[39,40,41,57,64],"ol",{},[42,43,44,45,48,49,52,53,56],"li",{},"Puts the ",[28,46,47],{},"zerohead"," program in ",[28,50,51],{},"~\u002F.local\u002Fbin",". Set ",[28,54,55],{},"ZEROHEAD_INSTALL_DIR"," to put it somewhere else.",[42,58,59,60,63],{},"Runs ",[28,61,62],{},"zerohead service install",", which makes zerohead your own background service and starts it. It starts again whenever you log in.",[42,65,66,67,70,71,74],{},"Waits until zerohead answers, then prints the address, ",[28,68,69],{},"http:\u002F\u002Flocalhost:4747",", and a link to pair your browser. The link's code works once, for 10 minutes; ",[28,72,73],{},"zerohead pair"," prints a new one.",[16,76,77,78,83,84,86],{},"Open the link to pair this browser, then go on with ",[79,80,82],"a",{"href":81},"\u002Fdocs\u002Fget-started\u002Fyour-first-task","Your first task",". More about pairing on ",[79,85,6],{"href":7},".",[16,88,89,90,93,94,98,99,101,102,105],{},"The command needs no ",[28,91,92],{},"sudo"," and sends nothing anywhere except its downloads. You can read it before you run it: ",[79,95,97],{"href":96},"\u002Finstall.sh","install.sh",". If ",[28,100,51],{}," is not on your ",[28,103,104],{},"PATH",", it says so and shows the line to add.",[16,107,108],{},"So far it has been tried on one machine: Ubuntu under WSL 2.",[31,110,112],{"id":111},"where-things-go","Where things go",[114,115,116,129],"table",{},[117,118,119],"thead",{},[120,121,122,126],"tr",{},[123,124,125],"th",{},"What",[123,127,128],{},"Where",[130,131,132,143,153,170],"tbody",{},[120,133,134,138],{},[135,136,137],"td",{},"The program",[135,139,140],{},[28,141,142],{},"~\u002F.local\u002Fbin\u002Fzerohead",[120,144,145,148],{},[135,146,147],{},"The service",[135,149,150],{},[28,151,152],{},"~\u002F.config\u002Fsystemd\u002Fuser\u002Fzerohead.service",[120,154,155,158],{},[135,156,157],{},"Your data",[135,159,160,163,164,166,167],{},[28,161,162],{},"~\u002F.local\u002Fshare\u002Fzerohead",", or ",[28,165,47],{}," under ",[28,168,169],{},"$XDG_DATA_HOME",[120,171,172,175],{},[135,173,174],{},"The server's log",[135,176,177],{},[28,178,179],{},"journalctl --user -u zerohead",[16,181,182,183,186,187,189,190,192],{},"The service runs ",[28,184,185],{},"zerohead serve"," with your data folder and port written into it. It also gets the ",[28,188,104],{}," of the terminal you installed from, so agents find their command-line tools as they do there. If you later install an agent's tool in a new folder, run the install command again to pass the new ",[28,191,104],{}," on.",[16,194,195],{},"The install command ends with these commands, ready to copy:",[114,197,198,208],{},[117,199,200],{},[120,201,202,205],{},[123,203,204],{},"To",[123,206,207],{},"Run",[130,209,210,220,230,240,250,260,269,284],{},[120,211,212,215],{},[135,213,214],{},"See whether it is running",[135,216,217],{},[28,218,219],{},"zerohead status",[120,221,222,225],{},[135,223,224],{},"Stop it",[135,226,227],{},[28,228,229],{},"systemctl --user stop zerohead",[120,231,232,235],{},[135,233,234],{},"Start it again",[135,236,237],{},[28,238,239],{},"systemctl --user start zerohead",[120,241,242,245],{},[135,243,244],{},"Restart it",[135,246,247],{},[28,248,249],{},"systemctl --user restart zerohead",[120,251,252,255],{},[135,253,254],{},"Follow its log",[135,256,257],{},[28,258,259],{},"journalctl --user -u zerohead -f",[120,261,262,265],{},[135,263,264],{},"Pair another browser",[135,266,267],{},[28,268,73],{},[120,270,271,274],{},[135,272,273],{},"Not start it at login",[135,275,276,279,280,283],{},[28,277,278],{},"systemctl --user disable zerohead"," (",[28,281,282],{},"enable"," turns it back on)",[120,285,286,289],{},[135,287,288],{},"Keep it running while you are logged out",[135,290,291,294,295,299],{},[28,292,293],{},"loginctl enable-linger"," (see ",[79,296,298],{"href":297},"#logging-out","Logging out",")",[16,301,302,305],{},[28,303,304],{},"zerohead service status"," also says with which data folder and address the service runs.",[31,307,298],{"id":308},"logging-out",[16,310,311,312,314],{},"A user service stops when you log out of your last session, which cancels runs that are still going. If you install over SSH and disconnect, zerohead stops too. To keep it running while you are logged out, you can turn on lingering for your user with ",[28,313,293],{},"; that is your choice, and zerohead never changes it. The install command says so when lingering is off.",[31,316,318],{"id":317},"without-a-service-manager","Without a service manager",[16,320,321,322,325],{},"Some systems have no user service manager (",[28,323,324],{},"systemd --user","), for example some containers and some WSL set-ups. There the command installs the program, says that it cannot start it in the background, and you start zerohead yourself when you want to use it:",[20,327,330],{"className":328,"code":329,"language":25,"meta":26},[23],"zerohead serve\n",[28,331,329],{"__ignoreMap":26},[16,333,334,335,338,339,342,343,86],{},"It prints its address and a pairing link, and runs until you press Ctrl-C or close the terminal. To keep it running after you close the terminal, start it inside ",[28,336,337],{},"tmux"," or ",[28,340,341],{},"screen",", or with ",[28,344,345],{},"nohup zerohead serve &",[31,347,349],{"id":348},"update","Update",[16,351,352,353,355,356,338,359,362],{},"Run the install command again. It replaces the program with the latest release and restarts the service. The service keeps its data folder and port: an update never moves them, and the command says so when they are not the defaults. To change one, run ",[28,354,62],{}," with ",[28,357,358],{},"--home",[28,360,361],{},"--port",". A restart cancels runs that are still going, as Ctrl-C does. Starting or updating zerohead never starts, retries or wakes a run.",[31,364,366],{"id":365},"uninstall","Uninstall",[20,368,371],{"className":369,"code":370,"language":25,"meta":26},[23],"curl -fsSL https:\u002F\u002Fzerohead.app\u002Finstall.sh | sh -s -- --uninstall\n",[28,372,370],{"__ignoreMap":26},[16,374,375],{},"This stops and removes the service and removes the program. Your data stays in the folder the service used, and the command says which. Delete that folder yourself if you want it gone. If the program is already gone but the service is not, the command shows the two commands that remove the service.",[31,377,379],{"id":378},"what-it-needs","What it needs",[381,382,383,386,407,410],"ul",{},[42,384,385],{},"Linux on x86_64. The program is a single static file, so it does not depend on your distribution's libraries.",[42,387,388,391,392,395,396,399,400,338,403,406],{},[28,389,390],{},"curl"," or GNU ",[28,393,394],{},"wget",", ",[28,397,398],{},"tar",", and ",[28,401,402],{},"sha256sum",[28,404,405],{},"shasum",". Most systems have them. From the zerohead address it downloads over https only.",[42,408,409],{},"git, which company memory uses.",[42,411,412,413,86],{},"One agent's command-line tool, installed and signed in by you. Claude Code is the best tested. See ",[79,414,416],{"href":415},"\u002Fdocs\u002Fagents\u002Fclaude-code","Claude Code",{"title":26,"searchDepth":418,"depth":418,"links":419},2,[420,421,422,423,424,425,426],{"id":33,"depth":418,"text":34},{"id":111,"depth":418,"text":112},{"id":308,"depth":418,"text":298},{"id":317,"depth":418,"text":318},{"id":348,"depth":418,"text":349},{"id":365,"depth":418,"text":366},{"id":378,"depth":418,"text":379},"Install zerohead on Linux with one command, update it, and remove it.","md",{},true,"\u002Fdocs\u002Fget-started\u002Finstall",{"title":11,"description":427},"docs\u002F1.get-started\u002F1.install","YZsNIlk-m-G6MK56Sh4ZwWt-fKvcP62TNlHaxmQgUWk",{"left":436,"top":436,"width":437,"height":437,"rotate":436,"vFlip":438,"hFlip":438,"body":439},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":436,"top":436,"width":437,"height":437,"rotate":436,"vFlip":438,"hFlip":438,"body":441},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":436,"top":436,"width":437,"height":437,"rotate":436,"vFlip":438,"hFlip":438,"body":443},"\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>",[445],{"title":446,"path":447,"stem":448,"children":449,"page":438},"Docs","\u002Fdocs","docs",[450,459,488,515,528],{"title":451,"path":452,"stem":453,"children":454,"page":438},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[455,456,457],{"title":11,"path":431,"stem":433},{"title":6,"path":7,"stem":8},{"title":82,"path":81,"stem":458},"docs\u002F1.get-started\u002F3.your-first-task",{"title":460,"path":461,"stem":462,"children":463,"page":438},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[464,468,472,476,480,484],{"title":465,"path":466,"stem":467},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":469,"path":470,"stem":471},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":473,"path":474,"stem":475},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":477,"path":478,"stem":479},"Budgets and approvals","\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":481,"path":482,"stem":483},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":485,"path":486,"stem":487},"Remote access","\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","docs\u002F2.using-zerohead\u002F6.remote-access",{"title":489,"path":490,"stem":491,"children":492,"page":438},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[493,495,499,503,507,511],{"title":416,"path":415,"stem":494},"docs\u002F3.agents\u002F1.claude-code",{"title":496,"path":497,"stem":498},"Codex","\u002Fdocs\u002Fagents\u002Fcodex","docs\u002F3.agents\u002F2.codex",{"title":500,"path":501,"stem":502},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"title":504,"path":505,"stem":506},"Pi","\u002Fdocs\u002Fagents\u002Fpi","docs\u002F3.agents\u002F4.pi",{"title":508,"path":509,"stem":510},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"title":512,"path":513,"stem":514},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":516,"path":517,"stem":518,"children":519,"page":438},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[520,524],{"title":521,"path":522,"stem":523},"Settings","\u002Fdocs\u002Freference\u002Fsettings","docs\u002F4.reference\u002F1.settings",{"title":525,"path":526,"stem":527},"Command line","\u002Fdocs\u002Freference\u002Fcommand-line","docs\u002F4.reference\u002F2.command-line",{"title":529,"path":530,"stem":531,"children":532,"page":438},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[533],{"title":534,"path":535,"stem":536},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":538,"clone":4,"description":539,"docsNotice":540,"extension":541,"meta":542,"status":543,"stem":546,"__hash__":547},"source\u002Fsource\u002Fprivate.yml","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":544,"text":545},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796127534327,"d7f7d1ef-335d-4f2a-b0eb-4e75902f864d"]