---
title: "Introduction"
description: "Regent makes disposable Linux and macOS machines on your Mac, for you and your coding agents."
---

> Documentation Index
> Fetch the complete documentation index at: https://regent.c4n.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

Regent creates machines on your Mac that you and your agents can break. Each one is a real
VM: Debian Linux on Apple's `container`, or macOS (with Xcode and the simulators if you want)
on Tart. You reach it over ssh, it has root, and when you're done you delete it.

It runs on the Mac you already have. There's no account, no API key and no bill per second,
and your code never leaves the machine unless you send it somewhere.

## What you can do

- Give an agent a machine of its own, where it can install anything, run servers and use a
  browser, instead of your laptop.
- Start a clean Linux in about a second to run a build, a test suite or a migration.
- Build and test iOS and macOS apps in a macOS VM with Xcode and the simulators.
- Open an environment's desktop in your browser, and let agents see and control it.
- Snapshot an environment before a risky change, and fork it to try two things at once.
- Keep an environment's internet to an allowlist, and give it API keys it never sees.

## How it works

```
your Mac
├── regent                      the CLI (and a dashboard)
├── Apple container ─── dev     Debian VM, ssh regent-dev
│                   └── api     Debian VM, ssh regent-api
└── Tart ────────────── ios     macOS VM with Xcode, ssh regent-ios
```

- **One VM per environment.** Linux environments are lightweight VMs on Apple's
  [`container`](https://github.com/apple/container); macOS environments are
  [Tart](https://tart.run) VMs.
- **Images are built once.** The first `regent create` with a given profile, agents and
  desktop builds an image (a few minutes). Every later one with the same setup takes seconds.
- **ssh is the way in.** Each environment gets its own key and an entry in your ssh config,
  `regent-NAME`, so `ssh`, `scp`, `rsync` and your editor's remote mode just work.
  Connecting to a stopped environment starts it.
- **A home that lasts.** On Linux, `/home/regent` is a separate volume. `regent reset` gives
  you a fresh system and keeps your files, logins and history.

## Next

- [Install](https://regent.c4n.dev/docs/getting-started/install/) Regent and what it needs.
- [Quick start](https://regent.c4n.dev/docs/getting-started/quick-start/): create, use and delete an environment.
- [Agent setup](https://regent.c4n.dev/docs/getting-started/agent-setup/): teach Claude Code, Codex, OpenCode and Pi
  to use Regent.

Source: https://regent.c4n.dev/docs/getting-started/introduction/index.mdx
