corgi agent peers bootstrap
corgi agent peers bootstrap
Set another machine up over ssh and pair it as a peer
Synopsis
A new laptop or a server joins this one over ssh: corgi and claude are installed, this machine's workspaces are cloned and registered under the same names with their watch, models and routines, the daemon starts at login, and the two pair as peers so one leads each shared tracker. Logins stay by hand (claude auth login, gh auth login) and are printed at the end.
corgi agent peers bootstrap me@build-1 --dry-run corgi agent peers bootstrap me@build-1 --workspace api --with-tokens --lead corgi agent peers bootstrap me@laptop-2 --lan # same network, no tunnel
--with-tokens copies this machine's tracker tokens over the ssh session (never on a command line). --lead makes the other machine do the unattended work. --dangerously-skip-permissions is what a server needs for runs nobody answers; pair it with corgi agent harden there.
corgi agent peers bootstrap <user@host> [flags]
Options
--dangerously-skip-permissions Register the workspaces there with permission prompts off (a server)
--dir string Where the checkouts go on the other machine (default: the same place under home as here)
--dry-run Print the steps and send nothing
-h, --help help for bootstrap
--lan Serve on 0.0.0.0:8765 there instead of a tunnel
--lead The other machine leads every shared tracker
--no-pair Set it up without pairing as peers
--with-claude Copy every Claude account's settings, skills, memories, MCP servers and plugins over ssh
--with-env Copy each workspace's git-ignored .env files over ssh
--with-tokens Copy this machine's tracker tokens and notification URL over ssh
--workspace strings Only these workspace ids
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean the .corgi/corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi agent peers - The other laptops on your trackers: who leads, who is awake