[{"data":1,"prerenderedAt":573,"buildId":574},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Freference\u002Fcommand-line":3,"docs:\u002Fdocs\u002Freference\u002Fcommand-line":12,"i-lucide:copy":461,"i-lucide:menu":466,"i-lucide:search":468,"navigation":470,"source":561},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"Settings","\u002Fdocs\u002Freference\u002Fsettings","docs\u002F4.reference\u002F1.settings",{"title":9,"path":10,"stem":11,"children":-1},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":13,"title":14,"body":15,"description":453,"extension":454,"meta":455,"navigation":456,"path":457,"seo":458,"stem":459,"__hash__":460},"docs\u002Fdocs\u002F4.reference\u002F2.command-line.md","Command line",{"type":16,"value":17,"toc":442},"minimark",[18,36,41,171,182,186,248,251,279,282,285,290,293,298,301,332,342,348,368,371,381,410,434,437],[19,20,21,26,27,31,32,35],"p",{},[22,23,25],"a",{"href":24},"\u002Fdocs\u002Fget-started\u002Finstall","Installing"," puts the ",[28,29,30],"code",{},"zerohead"," command in ",[28,33,34],{},"~\u002F.local\u002Fbin",".",[37,38,40],"h2",{"id":39},"commands","Commands",[42,43,44,57],"table",{},[45,46,47],"thead",{},[48,49,50,54],"tr",{},[51,52,53],"th",{},"Command",[51,55,56],{},"What it does",[58,59,60,71,81,91,101,111,121,131,141,151,161],"tbody",{},[48,61,62,68],{},[63,64,65],"td",{},[28,66,67],{},"zerohead serve",[63,69,70],{},"Runs the server until you press Ctrl-C.",[48,72,73,78],{},[63,74,75],{},[28,76,77],{},"zerohead pair",[63,79,80],{},"Prints a one-time pairing code and link.",[48,82,83,88],{},[63,84,85],{},[28,86,87],{},"zerohead status",[63,89,90],{},"Says whether a server is running and what the data folder holds.",[48,92,93,98],{},[63,94,95],{},[28,96,97],{},"zerohead service install",[63,99,100],{},"Makes zerohead your own background service and starts it.",[48,102,103,108],{},[63,104,105],{},[28,106,107],{},"zerohead service uninstall",[63,109,110],{},"Stops the service and removes it. Your data is kept.",[48,112,113,118],{},[63,114,115],{},[28,116,117],{},"zerohead service status",[63,119,120],{},"Says whether the service is installed and running.",[48,122,123,128],{},[63,124,125],{},[28,126,127],{},"zerohead connect --url \u003Caddress>",[63,129,130],{},"Links this computer to a Connect service.",[48,132,133,138],{},[63,134,135],{},[28,136,137],{},"zerohead connect status",[63,139,140],{},"Says whether the install is linked, and shows the relay and devices.",[48,142,143,148],{},[63,144,145],{},[28,146,147],{},"zerohead connect refuse \u003Cid>",[63,149,150],{},"Turns a Connect device away on this computer.",[48,152,153,158],{},[63,154,155],{},[28,156,157],{},"zerohead connect allow \u003Cid>",[63,159,160],{},"Lets a refused Connect device in again.",[48,162,163,168],{},[63,164,165],{},[28,166,167],{},"zerohead disconnect",[63,169,170],{},"Unlinks this computer from Connect.",[19,172,173,174,177,178,181],{},"Every command accepts ",[28,175,176],{},"--help",". ",[28,179,180],{},"zerohead --version"," prints the version.",[37,183,185],{"id":184},"flags-that-work-everywhere","Flags that work everywhere",[42,187,188,201],{},[45,189,190],{},[48,191,192,195,198],{},[51,193,194],{},"Flag",[51,196,197],{},"Meaning",[51,199,200],{},"Default",[58,202,203,218,233],{},[48,204,205,210,213],{},[63,206,207],{},[28,208,209],{},"--home \u003Cfolder>",[63,211,212],{},"The data folder.",[63,214,215,216],{},"See ",[22,217,5],{"href":6},[48,219,220,225,228],{},[63,221,222],{},[28,223,224],{},"--bind \u003Caddress>",[63,226,227],{},"The address the server listens on.",[63,229,230],{},[28,231,232],{},"127.0.0.1",[48,234,235,240,243],{},[63,236,237],{},[28,238,239],{},"--port \u003Cport>",[63,241,242],{},"The port the server listens on.",[63,244,245],{},[28,246,247],{},"4747",[37,249,250],{"id":250},"serve",[19,252,253,255,256,259,260,259,263,259,266,259,269,272,273,177,276,278],{},[28,254,250],{}," also takes ",[28,257,258],{},"--allowed-hosts",", ",[28,261,262],{},"--tick-ms",[28,264,265],{},"--max-runs",[28,267,268],{},"--runs-per-hour",[28,270,271],{},"--run-timeout-s"," and ",[28,274,275],{},"--web-dir",[22,277,5],{"href":6}," explains them. The installed program carries the web app inside it.",[19,280,281],{},"On start it prints the address and the data folder. If no device is paired, it also prints a pairing code. Ctrl-C cancels active runs and stops the server.",[37,283,284],{"id":284},"pair",[19,286,287,289],{},[28,288,284],{}," writes a code straight into the install's database, so it works whether or not the server is running. The code works once and lasts 10 minutes.",[37,291,292],{"id":292},"status",[19,294,295,297],{},[28,296,292],{}," prints whether the server answers, the data folder, the number of companies and the number of paired devices. It creates nothing. If the folder has never been used, it says so.",[37,299,300],{"id":300},"service",[19,302,303,306,307,310,311,314,315,317,318,321,322,259,325,259,328,331],{},[28,304,305],{},"service install"," works on Linux with ",[28,308,309],{},"systemd --user",". It writes ",[28,312,313],{},"~\u002F.config\u002Fsystemd\u002Fuser\u002Fzerohead.service",", which runs this program's ",[28,316,250],{}," with a data folder, bind address and port and the ",[28,319,320],{},"PATH"," of your terminal, enables it so it starts when you log in, and starts it or restarts it. Each of the three settings is the one you give on this command (",[28,323,324],{},"--home",[28,326,327],{},"--bind",[28,329,330],{},"--port"," or their variables); otherwise the one the installed service already has; otherwise the default. It says which settings it kept when they are not the defaults, and what changed. It then waits until the service's own process answers and prints the address and, while no browser is paired, a pairing link. The service itself never writes a pairing code to its log. Run it again after the program changes: the install command does this when it updates.",[19,333,334,335,337,338,341],{},"A user service stops when you log out of your last session, which cancels running runs. ",[28,336,305],{}," says so when lingering is off; ",[28,339,340],{},"loginctl enable-linger"," keeps it running, if you choose.",[19,343,344,345,347],{},"It refuses when something other than this service already answers at the address. If it fails after writing the service file, running it again repairs it. Without a user service manager it changes nothing and tells you to run ",[28,346,67],{}," yourself. On macOS and Windows it says the service is not built for that system yet.",[19,349,350,353,354,357,358,361,362,365,366,35],{},[28,351,352],{},"service uninstall"," stops the service, removes its file, leaves the data folder alone and names it. ",[28,355,356],{},"service status"," shows the service's state, file, data folder and address. ",[28,359,360],{},"--name"," (or ",[28,363,364],{},"ZEROHEAD_SERVICE_NAME",") picks another service name; the default is ",[28,367,30],{},[37,369,370],{"id":370},"connect",[372,373,379],"pre",{"className":374,"code":376,"language":377,"meta":378},[375],"language-sh","zerohead connect --url https:\u002F\u002Fconnect.example\nzerohead connect --relink --url https:\u002F\u002Fconnect.example --name \"My desktop\"\n","sh","",[28,380,376],{"__ignoreMap":378},[382,383,384,399,405],"ul",{},[385,386,387,390,391,394,395,398],"li",{},[28,388,389],{},"--url"," is required to link. It must be ",[28,392,393],{},"https",", or ",[28,396,397],{},"http"," for a loopback address. There is no default.",[385,400,401,404],{},[28,402,403],{},"--relink"," links again when the install is already linked. The old link is removed.",[385,406,407,409],{},[28,408,360],{}," sets what the computer is called at the service. It defaults to the computer's name.",[19,411,412,413,415,416,419,420,272,423,426,427,429,430,35],{},"Without ",[28,414,403],{},", a linked install is left alone. ",[28,417,418],{},"connect status"," shows the relay state of a running server. ",[28,421,422],{},"refuse",[28,424,425],{},"allow"," take the device's Connect ID, which ",[28,428,418],{}," lists. See ",[22,431,433],{"href":432},"\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","Remote access",[37,435,436],{"id":436},"disconnect",[19,438,439,441],{},[28,440,436],{}," asks the service to unlink, then deletes the link file whether or not the service answered.",{"title":378,"searchDepth":443,"depth":443,"links":444},2,[445,446,447,448,449,450,451,452],{"id":39,"depth":443,"text":40},{"id":184,"depth":443,"text":185},{"id":250,"depth":443,"text":250},{"id":284,"depth":443,"text":284},{"id":292,"depth":443,"text":292},{"id":300,"depth":443,"text":300},{"id":370,"depth":443,"text":370},{"id":436,"depth":443,"text":436},"Every zerohead command and flag, with what each one prints or changes.","md",{},true,"\u002Fdocs\u002Freference\u002Fcommand-line",{"title":14,"description":453},"docs\u002F4.reference\u002F2.command-line","R__5I2sToPSWMd302DC2tysKwp2pUagjBgP9I_qUvJY",{"left":462,"top":462,"width":463,"height":463,"rotate":462,"vFlip":464,"hFlip":464,"body":465},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":462,"top":462,"width":463,"height":463,"rotate":462,"vFlip":464,"hFlip":464,"body":467},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":462,"top":462,"width":463,"height":463,"rotate":462,"vFlip":464,"hFlip":464,"body":469},"\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>",[471],{"title":472,"path":473,"stem":474,"children":475,"page":464},"Docs","\u002Fdocs","docs",[476,492,519,548,555],{"title":477,"path":478,"stem":479,"children":480,"page":464},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[481,484,488],{"title":482,"path":24,"stem":483},"Install","docs\u002F1.get-started\u002F1.install",{"title":485,"path":486,"stem":487},"Pair a browser","\u002Fdocs\u002Fget-started\u002Fpair-a-browser","docs\u002F1.get-started\u002F2.pair-a-browser",{"title":489,"path":490,"stem":491},"Your first task","\u002Fdocs\u002Fget-started\u002Fyour-first-task","docs\u002F1.get-started\u002F3.your-first-task",{"title":493,"path":494,"stem":495,"children":496,"page":464},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[497,501,505,509,513,517],{"title":498,"path":499,"stem":500},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":502,"path":503,"stem":504},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":506,"path":507,"stem":508},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":510,"path":511,"stem":512},"Budgets and approvals","\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":514,"path":515,"stem":516},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":433,"path":432,"stem":518},"docs\u002F2.using-zerohead\u002F6.remote-access",{"title":520,"path":521,"stem":522,"children":523,"page":464},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[524,528,532,536,540,544],{"title":525,"path":526,"stem":527},"Claude Code","\u002Fdocs\u002Fagents\u002Fclaude-code","docs\u002F3.agents\u002F1.claude-code",{"title":529,"path":530,"stem":531},"Codex","\u002Fdocs\u002Fagents\u002Fcodex","docs\u002F3.agents\u002F2.codex",{"title":533,"path":534,"stem":535},"OpenCode","\u002Fdocs\u002Fagents\u002Fopencode","docs\u002F3.agents\u002F3.opencode",{"title":537,"path":538,"stem":539},"Pi","\u002Fdocs\u002Fagents\u002Fpi","docs\u002F3.agents\u002F4.pi",{"title":541,"path":542,"stem":543},"Cursor","\u002Fdocs\u002Fagents\u002Fcursor","docs\u002F3.agents\u002F5.cursor",{"title":545,"path":546,"stem":547},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":549,"path":550,"stem":551,"children":552,"page":464},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[553,554],{"title":5,"path":6,"stem":7},{"title":14,"path":457,"stem":459},{"title":556,"path":557,"stem":558,"children":559,"page":464},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[560],{"title":9,"path":10,"stem":11},{"id":562,"clone":563,"description":564,"docsNotice":565,"extension":566,"meta":567,"status":568,"stem":571,"__hash__":572},"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":569,"text":570},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796109414201,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]