Linux is the default profile. Each environment is a Debian VM on Apple’s container.
regent create api --agents claude-code,codex --cpus 4 --memory 8GOptions
| Flag | What it does |
|---|---|
--profile |
linux (the default), macos or xcode. See macOS and Xcode |
--agents |
Coding agents to install: IDs separated by commas, detected (those on this Mac) or none |
--desktop |
Add a desktop (Xfce, Chromium). See Desktops and screens |
--cpus, --memory |
Resources. Defaults: 4 CPUs, 8G |
--mount |
Share a host folder. See Host folders |
--network |
ssh (this Mac only) or tailnet. See Reach an environment |
--share |
Logins to share. See Logins and sharing |
--egress guarded |
Internet only through an allowlist (--allow adds hosts, --secret gives it secrets). See Guarded egress |
--dns |
DNS server for the environment and image builds. Default: 1.1.1.1 |
--wait |
With --network tailnet, wait for the HTTPS certificate (up to 5 minutes) instead of finishing it in the background |
--idle-stop |
Stop it after this long unused. See Idle stop |
Agents
regent agents lsID NAME ON THIS MAC DEFAULT
claude-code Claude Code ✓ –
codex Codex CLI ✓ –
opencode opencode ✓ –
pi pi ✓ –
antigravity Antigravity CLI – –Set a default with regent config set agents claude-code,codex. Regent never copies agent
logins or API keys from your Mac: log in inside the environment (claude, codex login), or
share the login between environments.
Images
Each combination of profile, agents and desktop is built into an image once and reused. When a profile changes, the next create builds a new image and keeps the old one. Delete images no environment or snapshot uses with:
regent pruneStop, start, reset
regent stop api # the disk is kept
regent start api
regent reset api # a fresh system from the image; the home is kept
regent reset api --agents pi # with different agents
regent reset api --wipe # the home tooWhat’s inside each environment is in Inside an environment.