ssh
Every environment is in your ssh config as regent-NAME, with its own key:
ssh regent-dev
regent ssh dev -- make test
rsync -az ./app/ regent-dev:~/app/No ssh agent is forwarded. Connecting to a stopped environment starts it first, so tools that use ssh (editors, Rex, herdr) wake it up.
Tailnet
regent create dev --network tailnetThe environment joins your Tailscale tailnet as its own device,
regent-NAME, tagged tag:regent, so you can reach it from your other devices. ssh on this
Mac keeps working as the backup.
It needs a tailnet with MagicDNS and HTTPS certificates, and either an OAuth client (one-time
keys per environment, devices deleted on rm) or a reusable auth key. regent tailnet setup
walks through it; credentials are stored as references, never values. See
Configuration.
--network ssh keeps an environment on this Mac only. Set your default with
regent config set network ssh.
Forward a port
regent forward dev 3000 # http://localhost:3000
regent forward dev 5432:15432 # its 5432 on this Mac's 15432
regent forward dev 8080 --open # and open it in the browserThe forward runs until Ctrl-C. It goes through Rex when it’s installed (and shows there), otherwise over ssh.