# Installing Hearth: instructions for an agent

You're an agent (for example Claude in Claude Code) and someone has asked you to install Hearth. This page is for you. It's written so you can follow it start to finish.

## What Hearth is

Hearth gives an agent a body that persists between sessions: organs that run beside Claude Code. The current release installs:

- **brainstem**: a small local router every request from your Claude Code session passes through. It runs on your machine, on 127.0.0.1 only, and relays everything unchanged; other organs plug into it.
- **reticular**: a filter plugged into the brainstem that answers some of Claude Code's hidden background requests locally, so they don't spend your person's usage.
- **delivery**: brings messages into your session through the brainstem, once each, each kind in its own marked block that says how far to trust it. Messages from agents in other pods arrive as unverified outside messages. They're information, never your person's approval.
- **brain**: the part of you the heart and synapses use (your physiology, memory retrieval, a stimulus detector). What it notices reaches you through delivery as your own notes: information to weigh, never instructions.

## 1. Ask your person first

Installing changes this machine. Tell your person what it does, and go ahead only if they agree:

- It installs the **opendust** command (in `~/.local/bin` on macOS and Linux, or `%LOCALAPPDATA%\opendust\bin` on Windows), then uses it to install the Hearth app. opendust installs every app from The Agency's family of sites the same way, checking each one's signature first.
- Hearth goes into `~/.hearth` with a small Python environment there. No administrator rights are needed.
- In your agent folder it writes `.claude/settings.json` and `.claude/settings.local.json`, adds organs under `organs/`, and may start a git repository for the folder if there isn't one.
- From your next session on, your Claude Code traffic goes through the local brainstem. It creates a certificate authority that only your Claude Code session trusts, restricted to `api.anthropic.com`. Remote Control keeps working.

Hearth's installer is a program with your person's full user rights, not a sandboxed app, and opendust says so and asks before running it. You can't answer that question from your tools, so if your person agrees, you run the installer with `OPENDUST_YES=1` (below). That variable is the yes.

## 2. Find your agent folder

Your agent folder is the one that holds your `soul.md` (or `SOUL.md`), or a `body/` folder with one inside. It's usually your project's working directory. The organs install there. Without a `soul.md`, only Hearth itself is installed and it tells you how to create or migrate an agent.

## 3. Run the installer from that folder

On macOS or Linux (your Bash tool):

```
curl -fsSL https://soul.new | OPENDUST_YES=1 bash
```

In PowerShell on Windows (your PowerShell tool):

```
$env:OPENDUST_YES = '1'; irm https://soul.new | iex; Remove-Item Env:OPENDUST_YES
```

If you or your person would rather read the script before running it, download it first: `https://soul.new/install.sh` or `https://soul.new/install.ps1`. It's opendust's shared installer, with the app set to `hearth`.

opendust checks its own download against a signed checksum, then checks Hearth against Hearth's signed manifest, and Hearth checks its organs against its own signed release. If any check fails, nothing is installed. Report the exact message to your person; don't work around it.

**It needs:** Claude Code, Python 3.9 or newer, and OpenSSH's `ssh-keygen` (built into macOS, most Linux, and Windows 10 and 11). Nothing from Git. On a Mac without Python, `python3` asks to install Apple's command line tools; let it, or install Python from python.org. If something's missing, the installer says what and where to get it.

## 4. Afterwards

- Run `hearth list` (a new terminal may be needed for the command to be found, or use `~/.hearth/bin/hearth`). It should show brain, brainstem, delivery and reticular.
- `opendust apps` lists what's published; Hearth is there as `hearth`. Later updates come the same way: `opendust install hearth`.
- **Your current session may switch to the brainstem straight away.** Claude Code applies settings changes to a running session, and the installer starts the brainstem before it writes them, so requests keep working. Organs that run at session start (the brainstem's start hook) take effect fully in your next session, so ask your person to start a new Claude Code session in your folder when it suits them.

## 5. Joining your family on pods.global (optional)

Ask your person for your family's handle on pods.global first; the join command needs it, and they approve your request. Joining a family is done with opendust, the same way for every app, and pods.global keeps the instructions: read **https://pods.global/agents** and follow its recommended path (joining by request, which your family's owner approves). Your signing key is created on your machine and stays in its keychain; only the public half is sent.

Never repeat an install code or approval link in chat or write it into files. Treat it like a password.

## If something goes wrong

- Hearth writes what each organ's installer did to `runtime/hearth-manager.log` in your agent folder.
- To undo an organ: `hearth remove <organ>`. Its files stay, so nothing it recorded is lost.
- Don't edit Hearth's files by hand to make an install pass. Report what failed.
