[{"data":1,"prerenderedAt":494,"buildId":495},["ShallowReactive",2],{"docs-surround:\u002Fdocs\u002Freference\u002Fsettings":3,"docs:\u002Fdocs\u002Freference\u002Fsettings":12,"i-lucide:copy":389,"i-lucide:menu":394,"i-lucide:search":396,"navigation":398,"source":482},[4,8],{"title":5,"path":6,"stem":7,"children":-1},"Scripts and HTTP","\u002Fdocs\u002Fagents\u002Fscripts-and-http","docs\u002F3.agents\u002F6.scripts-and-http",{"title":9,"path":10,"stem":11,"children":-1},"Command line","\u002Fdocs\u002Freference\u002Fcommand-line","docs\u002F4.reference\u002F2.command-line",{"id":13,"title":14,"body":15,"description":381,"extension":382,"meta":383,"navigation":384,"path":385,"seo":386,"stem":387,"__hash__":388},"docs\u002Fdocs\u002F4.reference\u002F1.settings.md","Settings",{"type":16,"value":17,"toc":374},"minimark",[18,27,32,234,249,253,276,299,309,322,326,336,340],[19,20,21,22,26],"p",{},"zerohead's server settings are environment variables. Each also has a flag on the ",[23,24,25],"code",{},"zerohead"," command. A flag wins over the variable.",[28,29,31],"h2",{"id":30},"server-settings","Server settings",[33,34,35,54],"table",{},[36,37,38],"thead",{},[39,40,41,45,48,51],"tr",{},[42,43,44],"th",{},"Setting",[42,46,47],{},"Variable",[42,49,50],{},"Flag",[42,52,53],{},"Default",[55,56,57,78,98,118,136,156,176,196,216],"tbody",{},[39,58,59,63,68,73],{},[60,61,62],"td",{},"Data folder",[60,64,65],{},[23,66,67],{},"ZEROHEAD_HOME",[60,69,70],{},[23,71,72],{},"--home",[60,74,75,77],{},[23,76,25],{}," inside your platform's data folder",[39,79,80,83,88,93],{},[60,81,82],{},"Listen address",[60,84,85],{},[23,86,87],{},"ZEROHEAD_BIND",[60,89,90],{},[23,91,92],{},"--bind",[60,94,95],{},[23,96,97],{},"127.0.0.1",[39,99,100,103,108,113],{},[60,101,102],{},"Port",[60,104,105],{},[23,106,107],{},"ZEROHEAD_PORT",[60,109,110],{},[23,111,112],{},"--port",[60,114,115],{},[23,116,117],{},"4747",[39,119,120,123,128,133],{},[60,121,122],{},"Extra allowed host names",[60,124,125],{},[23,126,127],{},"ZEROHEAD_ALLOWED_HOSTS",[60,129,130],{},[23,131,132],{},"--allowed-hosts",[60,134,135],{},"empty",[39,137,138,141,146,151],{},[60,139,140],{},"Scheduler tick, in milliseconds",[60,142,143],{},[23,144,145],{},"ZEROHEAD_TICK_MS",[60,147,148],{},[23,149,150],{},"--tick-ms",[60,152,153],{},[23,154,155],{},"2000",[39,157,158,161,166,171],{},[60,159,160],{},"Runs at once",[60,162,163],{},[23,164,165],{},"ZEROHEAD_MAX_RUNS",[60,167,168],{},[23,169,170],{},"--max-runs",[60,172,173],{},[23,174,175],{},"2",[39,177,178,181,186,191],{},[60,179,180],{},"Runs per agent per hour",[60,182,183],{},[23,184,185],{},"ZEROHEAD_RUNS_PER_HOUR",[60,187,188],{},[23,189,190],{},"--runs-per-hour",[60,192,193],{},[23,194,195],{},"12",[39,197,198,201,206,211],{},[60,199,200],{},"Run timeout, in seconds",[60,202,203],{},[23,204,205],{},"ZEROHEAD_RUN_TIMEOUT_S",[60,207,208],{},[23,209,210],{},"--run-timeout-s",[60,212,213],{},[23,214,215],{},"1800",[39,217,218,221,226,231],{},[60,219,220],{},"Built web app",[60,222,223],{},[23,224,225],{},"ZEROHEAD_WEB_DIR",[60,227,228],{},[23,229,230],{},"--web-dir",[60,232,233],{},"the app inside the program",[19,235,236,238,239,241,242,244,245,248],{},[23,237,72],{},", ",[23,240,92],{}," and ",[23,243,112],{}," work with every command. The other flags belong to ",[23,246,247],{},"serve",".",[28,250,252],{"id":251},"details","Details",[19,254,255,259,260,263,264,267,268,271,272,275],{},[256,257,258],"strong",{},"Data folder."," The default is ",[23,261,262],{},"~\u002F.local\u002Fshare\u002Fzerohead"," on Linux (or under ",[23,265,266],{},"$XDG_DATA_HOME","), ",[23,269,270],{},"~\u002FLibrary\u002FApplication Support\u002Fzerohead"," on macOS, and ",[23,273,274],{},"%LOCALAPPDATA%\\zerohead"," on Windows.",[19,277,278,281,282,285,286,238,289,238,291,294,295,298],{},[256,279,280],{},"Allowed host names."," A comma-separated list. The server accepts a request only when its ",[23,283,284],{},"Host"," is ",[23,287,288],{},"localhost",[23,290,97],{},[23,292,293],{},"::1"," or on this list, and the value includes the server's port. If a request has an ",[23,296,297],{},"Origin",", its host must be allowed too. Anything else is refused. Binding beyond loopback is allowed and prints a warning.",[19,300,301,304,305,308],{},[256,302,303],{},"Runs per hour."," ",[23,306,307],{},"0"," starts no runs. At the limit an agent stays active and its wakeups wait.",[19,310,311,314,315,318,319,248],{},[256,312,313],{},"Built web app."," The installed program carries the web app inside it, so you never need this. Set it to serve a folder instead, for example while you change the app. A relative path is read from the folder you start the server in. If the folder has no ",[23,316,317],{},"index.html",", the server serves a small placeholder page. A program built from source without the app inside looks in ",[23,320,321],{},"web\u002Fdist",[28,323,325],{"id":324},"inside-the-data-folder","Inside the data folder",[327,328,334],"pre",{"className":329,"code":331,"language":332,"meta":333},[330],"language-text","instance.sqlite            the install: companies, devices, settings\nconnector.key              seals connector credentials\nconnect-link.json          the Connect link, only while linked\ncompanies\u002F\u003Ccompany-id>\u002F\n  company.sqlite\n  memory\u002F                  the git repository of pages\n  memory-index.sqlite      search index, rebuilt from memory\u002F\n  runs\u002F\u003Crun-id>.ndjson     one run's event log\n  agents\u002F\u003Cagent-id>\u002F       where an agent runs when its task has no project\n","text","",[23,335,331],{"__ignoreMap":333},[28,337,339],{"id":338},"agent-settings","Agent settings",[19,341,342,343,238,348,238,352,238,356,238,360,241,364,366,367,241,370,373],{},"Each agent has its own settings, which depend on its adapter. They are on the pages for ",[344,345,347],"a",{"href":346},"\u002Fdocs\u002Fagents\u002Fclaude-code","Claude Code",[344,349,351],{"href":350},"\u002Fdocs\u002Fagents\u002Fcodex","Codex",[344,353,355],{"href":354},"\u002Fdocs\u002Fagents\u002Fopencode","OpenCode",[344,357,359],{"href":358},"\u002Fdocs\u002Fagents\u002Fpi","Pi",[344,361,363],{"href":362},"\u002Fdocs\u002Fagents\u002Fcursor","Cursor",[344,365,5],{"href":6},". Values in an agent's ",[256,368,369],{},"Environment",[256,371,372],{},"Headers"," never leave the server.",{"title":333,"searchDepth":375,"depth":375,"links":376},2,[377,378,379,380],{"id":30,"depth":375,"text":31},{"id":251,"depth":375,"text":252},{"id":324,"depth":375,"text":325},{"id":338,"depth":375,"text":339},"Every server setting, its environment variable, its flag and its default.","md",{},true,"\u002Fdocs\u002Freference\u002Fsettings",{"title":14,"description":381},"docs\u002F4.reference\u002F1.settings","xeSOGo_K4Xh2K0VnZR9mHQGNzIBr6vdjbw676Jjyb7I",{"left":390,"top":390,"width":391,"height":391,"rotate":390,"vFlip":392,"hFlip":392,"body":393},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":390,"top":390,"width":391,"height":391,"rotate":390,"vFlip":392,"hFlip":392,"body":395},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":390,"top":390,"width":391,"height":391,"rotate":390,"vFlip":392,"hFlip":392,"body":397},"\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>",[399],{"title":400,"path":401,"stem":402,"children":403,"page":392},"Docs","\u002Fdocs","docs",[404,421,450,466,473],{"title":405,"path":406,"stem":407,"children":408,"page":392},"Get started","\u002Fdocs\u002Fget-started","docs\u002F1.get-started",[409,413,417],{"title":410,"path":411,"stem":412},"Install","\u002Fdocs\u002Fget-started\u002Finstall","docs\u002F1.get-started\u002F1.install",{"title":414,"path":415,"stem":416},"Pair a browser","\u002Fdocs\u002Fget-started\u002Fpair-a-browser","docs\u002F1.get-started\u002F2.pair-a-browser",{"title":418,"path":419,"stem":420},"Your first task","\u002Fdocs\u002Fget-started\u002Fyour-first-task","docs\u002F1.get-started\u002F3.your-first-task",{"title":422,"path":423,"stem":424,"children":425,"page":392},"Using zerohead","\u002Fdocs\u002Fusing-zerohead","docs\u002F2.using-zerohead",[426,430,434,438,442,446],{"title":427,"path":428,"stem":429},"Companies and agents","\u002Fdocs\u002Fusing-zerohead\u002Fcompanies-and-agents","docs\u002F2.using-zerohead\u002F1.companies-and-agents",{"title":431,"path":432,"stem":433},"Tasks and runs","\u002Fdocs\u002Fusing-zerohead\u002Ftasks-and-runs","docs\u002F2.using-zerohead\u002F2.tasks-and-runs",{"title":435,"path":436,"stem":437},"Company memory","\u002Fdocs\u002Fusing-zerohead\u002Fcompany-memory","docs\u002F2.using-zerohead\u002F3.company-memory",{"title":439,"path":440,"stem":441},"Budgets and approvals","\u002Fdocs\u002Fusing-zerohead\u002Fbudgets-and-approvals","docs\u002F2.using-zerohead\u002F4.budgets-and-approvals",{"title":443,"path":444,"stem":445},"Connectors","\u002Fdocs\u002Fusing-zerohead\u002Fconnectors","docs\u002F2.using-zerohead\u002F5.connectors",{"title":447,"path":448,"stem":449},"Remote access","\u002Fdocs\u002Fusing-zerohead\u002Fremote-access","docs\u002F2.using-zerohead\u002F6.remote-access",{"title":451,"path":452,"stem":453,"children":454,"page":392},"Agents","\u002Fdocs\u002Fagents","docs\u002F3.agents",[455,457,459,461,463,465],{"title":347,"path":346,"stem":456},"docs\u002F3.agents\u002F1.claude-code",{"title":351,"path":350,"stem":458},"docs\u002F3.agents\u002F2.codex",{"title":355,"path":354,"stem":460},"docs\u002F3.agents\u002F3.opencode",{"title":359,"path":358,"stem":462},"docs\u002F3.agents\u002F4.pi",{"title":363,"path":362,"stem":464},"docs\u002F3.agents\u002F5.cursor",{"title":5,"path":6,"stem":7},{"title":467,"path":468,"stem":469,"children":470,"page":392},"Reference","\u002Fdocs\u002Freference","docs\u002F4.reference",[471,472],{"title":14,"path":385,"stem":387},{"title":9,"path":10,"stem":11},{"title":474,"path":475,"stem":476,"children":477,"page":392},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F5.contributing",[478],{"title":479,"path":480,"stem":481},"Build from source","\u002Fdocs\u002Fcontributing\u002Fbuild-from-source","docs\u002F5.contributing\u002F1.build-from-source",{"id":483,"clone":484,"description":485,"docsNotice":486,"extension":487,"meta":488,"status":489,"stem":492,"__hash__":493},"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":490,"text":491},"Early.","The source is not public yet. It will be published under MIT.","source\u002Fprivate","ZIRSRgoDOBHkU54QRPpdRltyFcq_DTWub-4p70w1DaY",1796109414185,"515e4a29-51e4-43d8-b774-a8b94f7dc369"]