---
title: "Linux environments"
description: "Profiles, agents, resources and what each Linux environment comes with."
---

> 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.

# Linux environments

Linux is the default profile. Each environment is a Debian VM on Apple's `container`.

```sh
regent create api --agents claude-code,codex --cpus 4 --memory 8G
```

## Options

| Flag | What it does |
| --- | --- |
| `--profile` | `linux` (the default), `macos` or `xcode`. See [macOS and Xcode](https://regent.c4n.dev/docs/guides/macos/) |
| `--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](https://regent.c4n.dev/docs/guides/desktop/) |
| `--cpus`, `--memory` | Resources. Defaults: 4 CPUs, 8G |
| `--mount` | Share a host folder. See [Host folders](https://regent.c4n.dev/docs/guides/mounts/) |
| `--network` | `ssh` (this Mac only) or `tailnet`. See [Reach an environment](https://regent.c4n.dev/docs/guides/network/) |
| `--share` | Logins to share. See [Logins and sharing](https://regent.c4n.dev/docs/guides/sharing/) |
| `--egress guarded` | Internet only through an allowlist (`--allow` adds hosts, `--secret` gives it secrets). See [Guarded egress](https://regent.c4n.dev/docs/guides/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](https://regent.c4n.dev/docs/guides/idle-stop/) |

## Agents

```sh
regent agents ls
```

```
ID           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](https://regent.c4n.dev/docs/guides/sharing/) 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:

```sh
regent prune
```

## Stop, start, reset

```sh
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 too
```

What's inside each environment is in [Inside an environment](https://regent.c4n.dev/docs/reference/inside/).

Source: https://regent.c4n.dev/docs/guides/linux/index.mdx
