Skip to content

Quick start

Create an environment, run something in it, open a port, and delete it.

1. Create an environment

regent create dev

In a terminal, Regent asks about the machine (Linux or macOS, a desktop, CPUs, memory, open or guarded internet, idle stop), how you want to reach it (this Mac only, or your tailnet), which coding agents to install and which logins to share. It can remember the network, agents, logins and idle stop as defaults. The first time, it also asks for your git identity (set it ahead with regent config set git 'Name <email>', or off).

Each flag skips its question. This line asks nothing (except the git identity the first time):

regent create dev --profile linux --desktop=false --cpus 4 --memory 8G --egress open \
  --idle-stop off --network ssh --agents claude-code --share none

Without a terminal (in scripts and agents) Regent never asks: a choice with no flag and no default fails with the flag to add.

✓ network: ssh only (this Mac)
✓ agents: claude-code
✓ shared: nothing
✓ git: Ada Lovelace <ada@example.com>
✓ Image built (2m14s, 7 stages)
✓ Environment ready (0.2s)
✓ Reachable (2.3s)
✓ dev ready (2m25.6s) · ssh://regent-dev  (this Mac only)

The image build only happens the first time for this setup. The next create takes seconds.

2. Use it

regent ssh dev                          # a shell
ssh regent-dev 'uname -a'               # or plain ssh
scp ./notes.md regent-dev:~/            # copy files in

You’re regent, with passwordless sudo. Install whatever the work needs.

3. Open a port

Start a server inside, then forward its port to this Mac:

ssh regent-dev 'python3 -m http.server 8000 &'
regent forward dev 8000 --open          # http://localhost:8000, until Ctrl-C

4. See what you have

regent ls
NAME  STATE      IP              AGENTS       TAILNET  CPU  MEM
dev   ● running  192.168.64.131  claude-code  off      4    8G

Or open the live dashboard with regent dashboard.

5. Delete it

regent rm dev

rm deletes the VM, its home, its ssh entry and its key. It asks you to type the name; --yes doesn’t. --keep-image keeps the image so the next environment like this one starts in seconds.

Type to search…

↑↓ navigate↵ selectEsc close