[{"data":1,"prerenderedAt":731},["ShallowReactive",2],{"doc:en:\u002Fhosts\u002Fregister-a-remote-host":3,"navigation:en":498,"surround:en:\u002Fhosts\u002Fregister-a-remote-host":726},{"page":4,"fallback":497},{"id":5,"title":6,"body":7,"description":489,"extension":490,"meta":491,"navigation":492,"path":493,"seo":494,"stem":495,"__hash__":496},"docs_en\u002Fhosts\u002Fregister-a-remote-host.md","Register a remote host on a host",{"type":8,"value":9,"toc":481},"minimark",[10,14,26,31,53,57,64,103,198,205,209,227,234,237,269,273,280,283,287,419,426,430,451,468,477],[11,12,13],"p",{},"A host can keep a list of other hosts. Agents running on it use that list to find a remote host, list its workspaces, and start work there. This is separate from the hosts you add in Zekoder Desktop: the desktop list belongs to the app, and this list belongs to the daemon of the host you register it on.",[11,15,16,17,21,22,25],{},"This page calls the host that keeps the list ",[18,19,20],"strong",{},"host A",", and the host it points to ",[18,23,24],{},"host B",".",[27,28,30],"h2",{"id":29},"before-you-start","Before you start",[32,33,34,38,41],"ul",{},[35,36,37],"li",{},"Host A and host B both run the Zekoder daemon, version 0.13 or newer.",[35,39,40],{},"Host A can reach host B over the network, a VPN such as Tailscale, SSH, or a pairing link.",[35,42,43,44,48,49,52],{},"Run the commands on a machine with the ",[45,46,47],"code",{},"zekoder"," CLI. Use ",[45,50,51],{},"--host"," to choose host A.",[27,54,56],{"id":55},"register-host-b","Register host B",[11,58,59,60,63],{},"Run ",[45,61,62],{},"host add"," against host A and give it the address of host B:",[65,66,71],"pre",{"className":67,"code":68,"language":69,"meta":70,"style":70},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","zekoder --host localhost:6777 host add 100.78.212.30:6777 --label agentshome\n","bash","",[45,72,73],{"__ignoreMap":70},[74,75,78,81,85,88,91,94,97,100],"span",{"class":76,"line":77},"line",1,[74,79,47],{"class":80},"sBMFI",[74,82,84],{"class":83},"sfazB"," --host",[74,86,87],{"class":83}," localhost:6777",[74,89,90],{"class":83}," host",[74,92,93],{"class":83}," add",[74,95,96],{"class":83}," 100.78.212.30:6777",[74,98,99],{"class":83}," --label",[74,101,102],{"class":83}," agentshome\n",[32,104,105,117,185],{},[35,106,107,109,110,113,114,25],{},[45,108,51],{}," selects host A, the daemon that stores the entry. Use ",[45,111,112],{},"localhost:\u003Cport>"," when you run the command on host A itself. A daemon installed by Zekoder listens on port ",[45,115,116],{},"6777",[35,118,119,120,123,124],{},"The address after ",[45,121,122],{},"add"," is host B. It accepts:",[125,126,127,140],"table",{},[128,129,130],"thead",{},[131,132,133,137],"tr",{},[134,135,136],"th",{},"Form",[134,138,139],{},"Example",[141,142,143,154,164,174],"tbody",{},[131,144,145,149],{},[146,147,148],"td",{},"Host and port",[146,150,151],{},[45,152,153],{},"100.78.212.30:6777",[131,155,156,159],{},[146,157,158],{},"WebSocket URL",[146,160,161],{},[45,162,163],{},"wss:\u002F\u002Fhost-b.example.com",[131,165,166,169],{},[146,167,168],{},"SSH to a running daemon",[146,170,171],{},[45,172,173],{},"ssh:\u002F\u002Fdeploy@build-box",[131,175,176,179],{},[146,177,178],{},"Relay or pairing link",[146,180,181,182],{},"the link from ",[45,183,184],{},"zekoder daemon pair",[35,186,187,190,191,194,195,25],{},[45,188,189],{},"--label"," is a name for people. Use ",[45,192,193],{},"--meta key=value"," to attach notes such as ",[45,196,197],{},"team=infra",[11,199,200,201,204],{},"If host B has a password, add ",[45,202,203],{},"?password=..."," to an SSH address, or use a pairing link.",[27,206,208],{"id":207},"check-that-it-connected","Check that it connected",[65,210,212],{"className":67,"code":211,"language":69,"meta":70,"style":70},"zekoder --host localhost:6777 host ls\n",[45,213,214],{"__ignoreMap":70},[74,215,216,218,220,222,224],{"class":76,"line":77},[74,217,47],{"class":80},[74,219,84],{"class":83},[74,221,87],{"class":83},[74,223,90],{"class":83},[74,225,226],{"class":83}," ls\n",[11,228,229,230,233],{},"The entry shows ",[45,231,232],{},"online"," once host A reaches host B, and fills in host B's server ID. An unreachable host stays saved and retries on its own, so you can register it before it is up.",[11,235,236],{},"For details and recovery guidance, inspect it by its ID, not its label:",[65,238,240],{"className":67,"code":239,"language":69,"meta":70,"style":70},"zekoder --host localhost:6777 host inspect \u003Cregistration-id>\n",[45,241,242],{"__ignoreMap":70},[74,243,244,246,248,250,252,255,259,262,266],{"class":76,"line":77},[74,245,47],{"class":80},[74,247,84],{"class":83},[74,249,87],{"class":83},[74,251,90],{"class":83},[74,253,254],{"class":83}," inspect",[74,256,258],{"class":257},"sMK4o"," \u003C",[74,260,261],{"class":83},"registration-i",[74,263,265],{"class":264},"sTEyZ","d",[74,267,268],{"class":257},">\n",[27,270,272],{"id":271},"what-host-a-can-do-with-it","What host A can do with it",[11,274,275,276,279],{},"Agents on host A discover host B with ",[45,277,278],{},"list_hosts",". They can then list and create workspaces there and see its agents in the parent's Subagents track. Registering a host gives host A access to host B. It does not give host B access back to host A. To let both find each other, register each on the other.",[11,281,282],{},"Credentials are stored on host A in a private file, and the CLI never prints them.",[27,284,286],{"id":285},"change-or-remove-an-entry","Change or remove an entry",[65,288,290],{"className":67,"code":289,"language":69,"meta":70,"style":70},"zekoder --host localhost:6777 host update \u003Cregistration-id> --meta team=tools\nzekoder --host localhost:6777 host update \u003Cregistration-id> --connection 'ssh:\u002F\u002Fdeploy@new-address'\nzekoder --host localhost:6777 host disable \u003Cregistration-id>\nzekoder --host localhost:6777 host enable \u003Cregistration-id>\nzekoder --host localhost:6777 host rm \u003Cregistration-id>\n",[45,291,292,320,353,375,397],{"__ignoreMap":70},[74,293,294,296,298,300,302,305,307,309,311,314,317],{"class":76,"line":77},[74,295,47],{"class":80},[74,297,84],{"class":83},[74,299,87],{"class":83},[74,301,90],{"class":83},[74,303,304],{"class":83}," update",[74,306,258],{"class":257},[74,308,261],{"class":83},[74,310,265],{"class":264},[74,312,313],{"class":257},">",[74,315,316],{"class":83}," --meta",[74,318,319],{"class":83}," team=tools\n",[74,321,323,325,327,329,331,333,335,337,339,341,344,347,350],{"class":76,"line":322},2,[74,324,47],{"class":80},[74,326,84],{"class":83},[74,328,87],{"class":83},[74,330,90],{"class":83},[74,332,304],{"class":83},[74,334,258],{"class":257},[74,336,261],{"class":83},[74,338,265],{"class":264},[74,340,313],{"class":257},[74,342,343],{"class":83}," --connection",[74,345,346],{"class":257}," '",[74,348,349],{"class":83},"ssh:\u002F\u002Fdeploy@new-address",[74,351,352],{"class":257},"'\n",[74,354,356,358,360,362,364,367,369,371,373],{"class":76,"line":355},3,[74,357,47],{"class":80},[74,359,84],{"class":83},[74,361,87],{"class":83},[74,363,90],{"class":83},[74,365,366],{"class":83}," disable",[74,368,258],{"class":257},[74,370,261],{"class":83},[74,372,265],{"class":264},[74,374,268],{"class":257},[74,376,378,380,382,384,386,389,391,393,395],{"class":76,"line":377},4,[74,379,47],{"class":80},[74,381,84],{"class":83},[74,383,87],{"class":83},[74,385,90],{"class":83},[74,387,388],{"class":83}," enable",[74,390,258],{"class":257},[74,392,261],{"class":83},[74,394,265],{"class":264},[74,396,268],{"class":257},[74,398,400,402,404,406,408,411,413,415,417],{"class":76,"line":399},5,[74,401,47],{"class":80},[74,403,84],{"class":83},[74,405,87],{"class":83},[74,407,90],{"class":83},[74,409,410],{"class":83}," rm",[74,412,258],{"class":257},[74,414,261],{"class":83},[74,416,265],{"class":264},[74,418,268],{"class":257},[11,420,421,422,425],{},"Changing the connection keeps host B's pinned identity. If host B really changed, verify it, then add ",[45,423,424],{},"--replace-identity",". Removing an entry leaves agents and workspaces on host B running.",[27,427,429],{"id":428},"troubleshooting","Troubleshooting",[11,431,432,437,438,440,441,444,445,447,448,25],{},[18,433,434,25],{},[45,435,436],{},"Cannot connect to daemon"," The ",[45,439,51],{}," address is wrong. Check the port with ",[45,442,443],{},"zekoder status",": a desktop-managed daemon uses ",[45,446,116],{},", not ",[45,449,450],{},"6767",[11,452,453,463,464,467],{},[18,454,455,456,459,460,25],{},"Status stays ",[45,457,458],{},"connecting"," or ",[45,461,462],{},"failed"," Host A cannot reach host B. Check the address, the VPN or firewall, and that host B's daemon listens on a non-loopback address. A daemon installed by Zekoder listens on ",[45,465,466],{},"127.0.0.1"," only, so reach it with SSH or a pairing link instead.",[11,469,470,471,476],{},"See ",[472,473,475],"a",{"href":474},"\u002Fgetting-started\u002Fconnect-a-host","Connect a host"," for adding a host in Zekoder Desktop.",[478,479,480],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":70,"searchDepth":322,"depth":322,"links":482},[483,484,485,486,487,488],{"id":29,"depth":322,"text":30},{"id":55,"depth":322,"text":56},{"id":207,"depth":322,"text":208},{"id":271,"depth":322,"text":272},{"id":285,"depth":322,"text":286},{"id":428,"depth":322,"text":429},"Save a remote host on one of your hosts so its agents and workspaces can find and use it.","md",{},{"order":355},"\u002Fhosts\u002Fregister-a-remote-host",{"title":6,"description":489},"hosts\u002Fregister-a-remote-host","R6-PROL3OOyh_Fz1twhm-V0wf9h1HRMUpWONUMXqEVw",false,[499,504,523,545,598,615,660,693,707,721],{"title":500,"path":501,"stem":502,"order":503},"Zekoder documentation","\u002F","index",-1,{"title":505,"path":506,"stem":507,"children":508,"page":497},"Getting started","\u002Fgetting-started","getting-started",[509,513,517,519],{"title":510,"path":511,"stem":512},"Install","\u002Fgetting-started\u002Finstall","getting-started\u002Finstall",{"title":514,"path":515,"stem":516,"order":77},"Quick start","\u002Fgetting-started\u002Fquick-start","getting-started\u002Fquick-start",{"title":475,"path":474,"stem":518,"order":322},"getting-started\u002Fconnect-a-host",{"title":520,"path":521,"stem":522,"order":355},"Install on a remote machine","\u002Fgetting-started\u002Fremote-host","getting-started\u002Fremote-host",{"title":524,"path":525,"stem":526,"children":527,"page":497},"Hosts","\u002Fhosts","hosts",[528,532,536,540,541],{"title":529,"path":530,"stem":531},"Security","\u002Fhosts\u002Fsecurity","hosts\u002Fsecurity",{"title":533,"path":534,"stem":535,"order":77},"The built-in host","\u002Fhosts\u002Fbuilt-in-host","hosts\u002Fbuilt-in-host",{"title":537,"path":538,"stem":539,"order":322},"Update a remote host","\u002Fhosts\u002Fupdate-a-remote-host","hosts\u002Fupdate-a-remote-host",{"title":6,"path":493,"stem":495,"order":355},{"title":542,"path":543,"stem":544,"order":377},"Connectivity","\u002Fhosts\u002Fconnectivity","hosts\u002Fconnectivity",{"title":546,"path":547,"stem":548,"children":549},"Supported providers","\u002Fproviders","providers",[550,553,557,561,565,569,573,578,583,588,593],{"title":546,"path":547,"stem":551,"order":552},"providers\u002Findex",0,{"title":554,"path":555,"stem":556,"order":77},"Antigravity","\u002Fproviders\u002Fantigravity","providers\u002Fantigravity",{"title":558,"path":559,"stem":560,"order":322},"Claude Code","\u002Fproviders\u002Fclaude-code","providers\u002Fclaude-code",{"title":562,"path":563,"stem":564,"order":355},"Codex","\u002Fproviders\u002Fcodex","providers\u002Fcodex",{"title":566,"path":567,"stem":568,"order":377},"fx","\u002Fproviders\u002Ffx","providers\u002Ffx",{"title":570,"path":571,"stem":572,"order":399},"GitHub Copilot","\u002Fproviders\u002Fgithub-copilot","providers\u002Fgithub-copilot",{"title":574,"path":575,"stem":576,"order":577},"Hoplite","\u002Fproviders\u002Fhoplite","providers\u002Fhoplite",6,{"title":579,"path":580,"stem":581,"order":582},"Muse Code","\u002Fproviders\u002Fmuse-code","providers\u002Fmuse-code",7,{"title":584,"path":585,"stem":586,"order":587},"Oh My Pi","\u002Fproviders\u002Fomp","providers\u002Fomp",8,{"title":589,"path":590,"stem":591,"order":592},"OpenCode","\u002Fproviders\u002Fopencode","providers\u002Fopencode",9,{"title":594,"path":595,"stem":596,"order":597},"Pi","\u002Fproviders\u002Fpi","providers\u002Fpi",10,{"title":599,"path":600,"stem":601,"children":602,"page":497},"Reference","\u002Freference","reference",[603,607,611],{"title":604,"path":605,"stem":606,"order":77},"CLI reference","\u002Freference\u002Fcli","reference\u002Fcli",{"title":608,"path":609,"stem":610,"order":77},"Plugin reference","\u002Freference\u002Fplugins","reference\u002Fplugins",{"title":612,"path":613,"stem":614,"order":322},"Configuration","\u002Freference\u002Fconfiguration","reference\u002Fconfiguration",{"title":616,"path":617,"stem":618,"children":619,"page":497},"Using Zekoder","\u002Fusing-zekoder","using-zekoder",[620,624,628,632,636,640,644,648,652,656],{"title":621,"path":622,"stem":623,"order":77},"Projects and workspaces","\u002Fusing-zekoder\u002Fprojects-and-workspaces","using-zekoder\u002Fprojects-and-workspaces",{"title":625,"path":626,"stem":627,"order":322},"Agents and the composer","\u002Fusing-zekoder\u002Fagents","using-zekoder\u002Fagents",{"title":629,"path":630,"stem":631,"order":322},"Worktree setup and teardown","\u002Fusing-zekoder\u002Fworktrees","using-zekoder\u002Fworktrees",{"title":633,"path":634,"stem":635,"order":355},"Review changes","\u002Fusing-zekoder\u002Freview-changes","using-zekoder\u002Freview-changes",{"title":637,"path":638,"stem":639,"order":377},"Keyboard shortcuts","\u002Fusing-zekoder\u002Fkeyboard-shortcuts","using-zekoder\u002Fkeyboard-shortcuts",{"title":641,"path":642,"stem":643,"order":399},"Settings and updates","\u002Fusing-zekoder\u002Fsettings-and-updates","using-zekoder\u002Fsettings-and-updates",{"title":645,"path":646,"stem":647,"order":577},"Metadata generation","\u002Fusing-zekoder\u002Fmetadata-generation","using-zekoder\u002Fmetadata-generation",{"title":649,"path":650,"stem":651,"order":582},"Schedules","\u002Fusing-zekoder\u002Fschedules","using-zekoder\u002Fschedules",{"title":653,"path":654,"stem":655,"order":587},"Orchestration skills","\u002Fusing-zekoder\u002Fskills","using-zekoder\u002Fskills",{"title":657,"path":658,"stem":659,"order":592},"Phone and web","\u002Fusing-zekoder\u002Fphone-and-web","using-zekoder\u002Fphone-and-web",{"title":661,"path":662,"stem":663,"children":664,"page":497},"Zekoder workflow","\u002Fzekoder-workflow","zekoder-workflow",[665,669,673,677,681,685,689],{"title":666,"path":667,"stem":668,"order":77},"How the workflow works","\u002Fzekoder-workflow\u002Foverview","zekoder-workflow\u002Foverview",{"title":670,"path":671,"stem":672,"order":322},"Commands","\u002Fzekoder-workflow\u002Fcommands","zekoder-workflow\u002Fcommands",{"title":674,"path":675,"stem":676,"order":355},"The Issues screen","\u002Fzekoder-workflow\u002Fissues","zekoder-workflow\u002Fissues",{"title":678,"path":679,"stem":680,"order":377},"Project settings","\u002Fzekoder-workflow\u002Fproject-settings","zekoder-workflow\u002Fproject-settings",{"title":682,"path":683,"stem":684,"order":399},"Coding health reports","\u002Fzekoder-workflow\u002Freports","zekoder-workflow\u002Freports",{"title":686,"path":687,"stem":688,"order":577},"Versions and updates","\u002Fzekoder-workflow\u002Fversion","zekoder-workflow\u002Fversion",{"title":690,"path":691,"stem":692,"order":582},"Error codes","\u002Fzekoder-workflow\u002Ferror-codes","zekoder-workflow\u002Ferror-codes",{"title":694,"order":695,"path":696,"stem":697,"children":698,"page":497},"Productivity tips",50,"\u002Fproductivity-tips","productivity-tips",[699,703],{"title":700,"path":701,"stem":702,"order":77},"Background tasks","\u002Fproductivity-tips\u002Fbackground-tasks","productivity-tips\u002Fbackground-tasks",{"title":704,"path":705,"stem":706,"order":322},"Agent-to-agent messaging","\u002Fproductivity-tips\u002Fagent-messaging","productivity-tips\u002Fagent-messaging",{"title":708,"order":709,"path":710,"stem":711,"children":712,"page":497},"FAQs",98,"\u002Ffaq","faq",[713,717],{"title":714,"path":715,"stem":716,"order":77},"Codex related FAQs","\u002Ffaq\u002Fcodex","faq\u002Fcodex",{"title":718,"path":719,"stem":720,"order":322},"Linux related FAQs","\u002Ffaq\u002Flinux","faq\u002Flinux",{"title":722,"path":723,"stem":724,"order":725},"What changed","\u002Fwhats-changed","whats-changed",99,[727,729],{"title":542,"path":543,"stem":544,"description":728,"order":377,"children":-1},"Connect Zekoder to a daemon over SSH, the relay, or Tailscale.",{"title":529,"path":530,"stem":531,"description":730,"children":-1},"[object Object]",1796318314654]