---
title: "Troubleshooting"
description: "What to check when something doesn't work."
---

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

# Troubleshooting

Start with:

```sh
regent doctor
```

## Something is missing

If Regent says Apple container, Tart or a macOS image is missing, run the setup command it
names. `--yes` installs without asking, for agents and scripts:

```sh
regent setup --yes
regent setup macos --yes
```

## Every environment shows as unknown

`unknown` means Regent couldn't reach Apple container, so it can't tell. Check that its
services run:

```sh
container system status
container system start
```

## "Regent can't run inside Codex's sandbox"

Codex's command sandbox blocks VMs and the VM network. Let the command run outside the
sandbox, or start Codex with `-s danger-full-access`.

## The first create is slow

The first create with a new combination of profile, agents and desktop builds an image, which
takes a few minutes. Later ones take seconds. Keep images when you delete environments with
`regent rm NAME --keep-image`.

## See every command

```sh
regent create dev -v                      # print every command regent runs
REGENT_TRACE=1 regent create dev && regent trace
```

Source: https://regent.c4n.dev/docs/reference/troubleshooting/index.mdx
