[{"data":1,"prerenderedAt":497},["ShallowReactive",2],{"doc:en:\u002Fhosts\u002Fsecurity":3,"navigation:en":264,"surround:en:\u002Fhosts\u002Fsecurity":492},{"page":4,"fallback":263},{"id":5,"title":6,"body":7,"description":251,"extension":252,"meta":253,"navigation":254,"path":255,"seo":256,"stem":261,"__hash__":262},"docs_en\u002Fhosts\u002Fsecurity.md","Security",{"type":8,"value":9,"toc":238},"minimark",[10,14,19,36,45,49,57,60,79,82,93,97,104,127,132,146,178,182,193,203,206,210,213,217],[11,12,13],"p",{},"The daemon runs on your machine and manages your coding agents. Clients (desktop app, phone, CLI, web) connect to it over WebSocket. Your code stays on the machine running the daemon.",[15,16,18],"h2",{"id":17},"connection-options","Connection options",[20,21,22,30],"ul",{},[23,24,25,29],"li",{},[26,27,28],"strong",{},"Relay:"," the daemon connects outbound to a relay and clients meet it there. No open ports.",[23,31,32,35],{},[26,33,34],{},"Direct:"," the daemon listens on a network address and clients connect to it. Use a VPN such as Tailscale for this outside your local network.",[11,37,38,39,44],{},"Setup steps are in ",[40,41,43],"a",{"href":42},"\u002Fhosts\u002Fconnectivity","Connectivity",".",[15,46,48],{"id":47},"relay","Relay",[11,50,51,52,56],{},"The relay is on by default. A new home starts with it enabled, and a home that had it off is turned on once when the daemon starts; the app tells you and lets you keep it or turn it off. If you turn it off, the daemon stays available for direct and VPN connections, and pairing asks before it enables the relay again. ",[53,54,55],"code",{},"zekoder daemon pair --relay"," agrees without the prompt.",[11,58,59],{},"The relay is untrusted by design. Traffic between phone and daemon is end-to-end encrypted, so the relay sees only IP addresses, timing, message sizes, and session IDs. It cannot read, forge, or replay messages.",[61,62,63,70,73,76],"ol",{},[23,64,65,66,69],{},"The daemon keeps a persistent keypair in ",[53,67,68],{},"daemon-keypair.json"," in its home directory.",[23,71,72],{},"The QR code or pairing link carries the daemon's public key.",[23,74,75],{},"The phone sends a handshake with its own public key. The daemon accepts no commands until it completes.",[23,77,78],{},"Both sides derive an encrypted channel (Curve25519 key agreement, XSalsa20-Poly1305) with fresh keys per session.",[11,80,81],{},"The pairing link is the trust anchor. Treat it like a password.",[11,83,84,85,88,89,92],{},"One case cannot be told apart. If you turned the relay off before this version, your config reads ",[53,86,87],{},"\"enabled\": false",", exactly like the old default, so the daemon turns it on once when it starts. The in-app notice is the safeguard: choose ",[26,90,91],{},"Turn off"," to undo it, and the choice sticks.",[15,94,96],{"id":95},"direct-connections","Direct connections",[11,98,99,100,103],{},"The daemon listens on ",[53,101,102],{},"127.0.0.1:6777"," by default, which only local processes can reach. Binding to another address exposes it to that network.",[20,105,106,112,118],{},[23,107,108,111],{},[26,109,110],{},"Unix socket:"," the CLI can talk to a daemon listening on a socket file, which blocks all network access. The apps need a network connection.",[23,113,114,117],{},[26,115,116],{},"VPN:"," bind to the VPN address, set a password, and add it as a direct connection.",[23,119,120,126],{},[26,121,122,125],{},[53,123,124],{},"0.0.0.0",":"," reachable on every interface, including public Wi-Fi. Set a password and firewall rules first.",[128,129,131],"h3",{"id":130},"dns-rebinding","DNS rebinding",[11,133,134,135,138,139,142,143,125],{},"CORS does not stop a malicious site from resolving its domain to your machine. The daemon validates the ",[53,136,137],{},"Host"," header against an allowlist and rejects unknown hosts. Set it with ",[53,140,141],{},"daemon.hostnames"," in ",[53,144,145],{},"config.json",[20,147,148,162,172],{},[23,149,150,153,154,157,158,161],{},[53,151,152],{},"[]"," (default): ",[53,155,156],{},"localhost",", ",[53,159,160],{},"*.localhost",", and all IP addresses.",[23,163,164,167,168,171],{},[53,165,166],{},"[\".example.com\"]",": also ",[53,169,170],{},"example.com"," and its subdomains.",[23,173,174,177],{},[53,175,176],{},"true",": any host. Not recommended.",[15,179,181],{"id":180},"password-authentication","Password authentication",[11,183,184,185,188,189,192],{},"Without a password, anyone who can reach the listening address can connect. With one, every HTTP request needs an ",[53,186,187],{},"Authorization: Bearer \u003Cpassword>"," header and every WebSocket client, relay clients included, sends the password on connect. Relay clients send it inside the encrypted channel. Only ",[53,190,191],{},"\u002Fapi\u002Fhealth"," is exempt.",[11,194,195,196,198,199,202],{},"The password is stored as a bcrypt hash in ",[53,197,145],{},". Setting ",[53,200,201],{},"PASEO_PASSWORD"," in the daemon's environment hashes it at startup.",[11,204,205],{},"A password controls access and does not encrypt traffic. Over an untrusted network, use the relay or a VPN as well.",[15,207,209],{"id":208},"agent-authentication","Agent authentication",[11,211,212],{},"Zekoder runs the agent CLIs already on your machine and does not manage their credentials. Claude Code, Codex, and the others each keep their own login. Zekoder never stores or transmits provider API keys, and agents run as your user with your existing credentials.",[15,214,216],{"id":215},"recommendations","Recommendations",[20,218,219,222,225,231],{},[23,220,221],{},"Use the relay for phone access.",[23,223,224],{},"Set a password whenever you bind to a network address.",[23,226,227,228,230],{},"Never bind to ",[53,229,124],{}," without a password.",[23,232,233,234,44],{},"Keep the daemon updated; see ",[40,235,237],{"href":236},"\u002Fhosts\u002Fupdate-a-remote-host","Update a remote host",{"title":239,"searchDepth":240,"depth":240,"links":241},"",2,[242,243,244,248,249,250],{"id":17,"depth":240,"text":18},{"id":47,"depth":240,"text":48},{"id":95,"depth":240,"text":96,"children":245},[246],{"id":130,"depth":247,"text":131},3,{"id":180,"depth":240,"text":181},{"id":208,"depth":240,"text":209},{"id":215,"depth":240,"text":216},"[object Object]","md",{},null,"\u002Fhosts\u002Fsecurity",{"title":6,"description":257},{"How Zekoder connections are secured":258,"navigation":259},"relay encryption, direct connections, passwords, and what stays on your machine.",{"order":260},5,"hosts\u002Fsecurity","_qvQENUaArSguLlu03cXqtc9tfnIqfs37rq3c3sbMz8",false,[265,270,292,311,364,381,426,459,473,487],{"title":266,"path":267,"stem":268,"order":269},"Zekoder documentation","\u002F","index",-1,{"title":271,"path":272,"stem":273,"children":274,"page":263},"Getting started","\u002Fgetting-started","getting-started",[275,279,284,288],{"title":276,"path":277,"stem":278},"Install","\u002Fgetting-started\u002Finstall","getting-started\u002Finstall",{"title":280,"path":281,"stem":282,"order":283},"Quick start","\u002Fgetting-started\u002Fquick-start","getting-started\u002Fquick-start",1,{"title":285,"path":286,"stem":287,"order":240},"Connect a host","\u002Fgetting-started\u002Fconnect-a-host","getting-started\u002Fconnect-a-host",{"title":289,"path":290,"stem":291,"order":247},"Install on a remote machine","\u002Fgetting-started\u002Fremote-host","getting-started\u002Fremote-host",{"title":293,"path":294,"stem":295,"children":296,"page":263},"Hosts","\u002Fhosts","hosts",[297,298,302,304,308],{"title":6,"path":255,"stem":261},{"title":299,"path":300,"stem":301,"order":283},"The built-in host","\u002Fhosts\u002Fbuilt-in-host","hosts\u002Fbuilt-in-host",{"title":237,"path":236,"stem":303,"order":240},"hosts\u002Fupdate-a-remote-host",{"title":305,"path":306,"stem":307,"order":247},"Register a remote host on a host","\u002Fhosts\u002Fregister-a-remote-host","hosts\u002Fregister-a-remote-host",{"title":43,"path":42,"stem":309,"order":310},"hosts\u002Fconnectivity",4,{"title":312,"path":313,"stem":314,"children":315},"Supported providers","\u002Fproviders","providers",[316,319,323,327,331,335,339,344,349,354,359],{"title":312,"path":313,"stem":317,"order":318},"providers\u002Findex",0,{"title":320,"path":321,"stem":322,"order":283},"Antigravity","\u002Fproviders\u002Fantigravity","providers\u002Fantigravity",{"title":324,"path":325,"stem":326,"order":240},"Claude Code","\u002Fproviders\u002Fclaude-code","providers\u002Fclaude-code",{"title":328,"path":329,"stem":330,"order":247},"Codex","\u002Fproviders\u002Fcodex","providers\u002Fcodex",{"title":332,"path":333,"stem":334,"order":310},"fx","\u002Fproviders\u002Ffx","providers\u002Ffx",{"title":336,"path":337,"stem":338,"order":260},"GitHub Copilot","\u002Fproviders\u002Fgithub-copilot","providers\u002Fgithub-copilot",{"title":340,"path":341,"stem":342,"order":343},"Hoplite","\u002Fproviders\u002Fhoplite","providers\u002Fhoplite",6,{"title":345,"path":346,"stem":347,"order":348},"Muse Code","\u002Fproviders\u002Fmuse-code","providers\u002Fmuse-code",7,{"title":350,"path":351,"stem":352,"order":353},"Oh My Pi","\u002Fproviders\u002Fomp","providers\u002Fomp",8,{"title":355,"path":356,"stem":357,"order":358},"OpenCode","\u002Fproviders\u002Fopencode","providers\u002Fopencode",9,{"title":360,"path":361,"stem":362,"order":363},"Pi","\u002Fproviders\u002Fpi","providers\u002Fpi",10,{"title":365,"path":366,"stem":367,"children":368,"page":263},"Reference","\u002Freference","reference",[369,373,377],{"title":370,"path":371,"stem":372,"order":283},"CLI reference","\u002Freference\u002Fcli","reference\u002Fcli",{"title":374,"path":375,"stem":376,"order":283},"Plugin reference","\u002Freference\u002Fplugins","reference\u002Fplugins",{"title":378,"path":379,"stem":380,"order":240},"Configuration","\u002Freference\u002Fconfiguration","reference\u002Fconfiguration",{"title":382,"path":383,"stem":384,"children":385,"page":263},"Using Zekoder","\u002Fusing-zekoder","using-zekoder",[386,390,394,398,402,406,410,414,418,422],{"title":387,"path":388,"stem":389,"order":283},"Projects and workspaces","\u002Fusing-zekoder\u002Fprojects-and-workspaces","using-zekoder\u002Fprojects-and-workspaces",{"title":391,"path":392,"stem":393,"order":240},"Agents and the composer","\u002Fusing-zekoder\u002Fagents","using-zekoder\u002Fagents",{"title":395,"path":396,"stem":397,"order":240},"Worktree setup and teardown","\u002Fusing-zekoder\u002Fworktrees","using-zekoder\u002Fworktrees",{"title":399,"path":400,"stem":401,"order":247},"Review changes","\u002Fusing-zekoder\u002Freview-changes","using-zekoder\u002Freview-changes",{"title":403,"path":404,"stem":405,"order":310},"Keyboard shortcuts","\u002Fusing-zekoder\u002Fkeyboard-shortcuts","using-zekoder\u002Fkeyboard-shortcuts",{"title":407,"path":408,"stem":409,"order":260},"Settings and updates","\u002Fusing-zekoder\u002Fsettings-and-updates","using-zekoder\u002Fsettings-and-updates",{"title":411,"path":412,"stem":413,"order":343},"Metadata generation","\u002Fusing-zekoder\u002Fmetadata-generation","using-zekoder\u002Fmetadata-generation",{"title":415,"path":416,"stem":417,"order":348},"Schedules","\u002Fusing-zekoder\u002Fschedules","using-zekoder\u002Fschedules",{"title":419,"path":420,"stem":421,"order":353},"Orchestration skills","\u002Fusing-zekoder\u002Fskills","using-zekoder\u002Fskills",{"title":423,"path":424,"stem":425,"order":358},"Phone and web","\u002Fusing-zekoder\u002Fphone-and-web","using-zekoder\u002Fphone-and-web",{"title":427,"path":428,"stem":429,"children":430,"page":263},"Zekoder workflow","\u002Fzekoder-workflow","zekoder-workflow",[431,435,439,443,447,451,455],{"title":432,"path":433,"stem":434,"order":283},"How the workflow works","\u002Fzekoder-workflow\u002Foverview","zekoder-workflow\u002Foverview",{"title":436,"path":437,"stem":438,"order":240},"Commands","\u002Fzekoder-workflow\u002Fcommands","zekoder-workflow\u002Fcommands",{"title":440,"path":441,"stem":442,"order":247},"The Issues screen","\u002Fzekoder-workflow\u002Fissues","zekoder-workflow\u002Fissues",{"title":444,"path":445,"stem":446,"order":310},"Project settings","\u002Fzekoder-workflow\u002Fproject-settings","zekoder-workflow\u002Fproject-settings",{"title":448,"path":449,"stem":450,"order":260},"Coding health reports","\u002Fzekoder-workflow\u002Freports","zekoder-workflow\u002Freports",{"title":452,"path":453,"stem":454,"order":343},"Versions and updates","\u002Fzekoder-workflow\u002Fversion","zekoder-workflow\u002Fversion",{"title":456,"path":457,"stem":458,"order":348},"Error codes","\u002Fzekoder-workflow\u002Ferror-codes","zekoder-workflow\u002Ferror-codes",{"title":460,"order":461,"path":462,"stem":463,"children":464,"page":263},"Productivity tips",50,"\u002Fproductivity-tips","productivity-tips",[465,469],{"title":466,"path":467,"stem":468,"order":283},"Background tasks","\u002Fproductivity-tips\u002Fbackground-tasks","productivity-tips\u002Fbackground-tasks",{"title":470,"path":471,"stem":472,"order":240},"Agent-to-agent messaging","\u002Fproductivity-tips\u002Fagent-messaging","productivity-tips\u002Fagent-messaging",{"title":474,"order":475,"path":476,"stem":477,"children":478,"page":263},"FAQs",98,"\u002Ffaq","faq",[479,483],{"title":480,"path":481,"stem":482,"order":283},"Codex related FAQs","\u002Ffaq\u002Fcodex","faq\u002Fcodex",{"title":484,"path":485,"stem":486,"order":240},"Linux related FAQs","\u002Ffaq\u002Flinux","faq\u002Flinux",{"title":488,"path":489,"stem":490,"order":491},"What changed","\u002Fwhats-changed","whats-changed",99,[493,495],{"title":305,"path":306,"stem":307,"description":494,"order":247,"children":-1},"Save a remote host on one of your hosts so its agents and workspaces can find and use it.",{"title":237,"path":236,"stem":303,"description":496,"order":240,"children":-1},"How a remote host running the Zekoder daemon updates itself, how to update it right away, and what to do with other hosts.",1796318315594]