---
title: "Rex and herdr"
description: "Every environment shows up in Rex and herdr when they're installed. Neither is required."
---

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

# Rex and herdr

Regent works with plain ssh. When [Rex](https://www.superlogical.com/rex) or
[herdr](https://herdr.dev) is installed, it also registers each environment there, and removes
it on `rm`.

## Rex

Each environment is a Rex host with a session, so you can open terminals in it and watch what
agents do:

```sh
rex -S dev ls
```

`regent forward` and `regent desktop` go through Rex when it's there. Add Regent's actions
(New, Open, Start, Stop, Reset, Remove, Dashboard) to Rex's command palette with:

```sh
regent rex install
```

## herdr

Each environment is a saved herdr machine, labelled with its name. Regent installs the
matching herdr binary inside the environment the first time.

## Choose

Regent finds Rex and herdr on your `PATH`. To choose explicitly:

```sh
REGENT_INTEGRATIONS=herdr regent create dev   # only herdr
REGENT_INTEGRATIONS=none regent create dev    # neither
```

A failure to register an environment doesn't fail the create: Regent warns and carries on.

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