Skip to main content
A daemon is the process that makes a computer a Reliant machine. It connects out to Reliant, and when an agent in one of your chats reads a file or runs a command, the daemon does the work on that computer. The desktop app runs one for you. This page is for computers without the app: a box under your desk, a cloud VM, a Raspberry Pi, a workstation you only reach over SSH. It follows one setup from start to finish. Your own computer covers the concepts and every daemon start flag.

1. Start in the repository you want agents to work in

A daemon serves one workspace: the git worktree root of the directory you start it from. Every subdirectory of a checkout is the same daemon, and a second worktree gets its own. So cd into the project first. status, logs and stop use the same rule, so run them from the same checkout, or pass --workspace <path>.

2. Pair and start

Start the daemon. With no credential yet, it pairs the machine with your account:
Approve it on any device: open the link, or type the code into Add machine → Your own computer, which then asks “Approve machine <hostname>?”. Nothing has to reach back to this terminal, so pairing works the same over SSH. Once you approve, the daemon saves its credential to ~/.reliant/daemon.json and connects. The computer appears in the app under Settings → Machines, named <instance-id>@<hostname> unless you passed --name. reliant daemon register does only the pairing step, if you prefer to keep it separate.

With nobody to approve it

For a CI runner or an image you bake once, create a daemon credential in the app under Settings → Access Tokens and pipe it in:
The CLI asks Reliant which account the token belongs to, saves it, and connects. Later starts reuse the saved credential, so you only pipe the token in once. Anything that is not an rlat_ token is rejected before anything is saved:
If Reliant refuses the token you piped in, the daemon stops, tells you, and deletes that token. Because you chose the token, it does not switch to pairing behind your back. A daemon that was paired pairs again by itself instead.

3. Keep it running

reliant daemon start runs in the foreground and stops when its terminal closes. It has no flag to detach itself: keeping a process alive is your service manager’s job, and it does that better (restarts, logs, start at boot). For a quick session, run it in tmux or screen. For a machine that should always be available, let your service manager run it. With systemd, a user service looks like this:
Register once by hand (step 2) before enabling it with systemctl --user enable --now reliant-daemon. --non-interactive means a restart never waits on a browser login nobody will approve. If the credential is ever missing, the daemon stays up, reports that it is waiting for sign-in, and continues as soon as a credentials file appears. Use the path command -v reliant prints, and run loginctl enable-linger if the service should keep running after you log out. A short network outage needs no restart. The daemon reconnects by itself.

4. Check that it is healthy

reliant daemon status tells you whether the daemon can serve tool calls right now, which is not the same as whether its process exists:
The Stream line is the connection to Reliant. Agents’ tool calls travel over it, so a daemon whose stream is down serves nothing, however healthy the process looks. Stability says whether the stream has held: a stream that dropped in the last few minutes is reported as UNSTABLE, because it is likely to drop again in the middle of a long tool call. Binary tells you which build is running, which helps after an upgrade. The exit code follows the same rule. status exits 0 only when the stream is established and stable, and non-zero otherwise, including when no daemon is running. That makes it a good pre-flight check before starting long work:
When nothing is running, the output says so and names the record it looked for:
If you expected a daemon here, check that you are in the checkout it serves (step 1).

5. Read its logs

The log is logs/tools-daemon.log in the instance’s folder, and it is rotated for you. When an MCP server will not start, or a command an agent ran behaved oddly on this machine, this is the log to read. Add --verbose to daemon start to copy the log to the terminal as well.

6. Stop it

stop asks the daemon to shut down and waits until the process has exited before saying it stopped. If the daemon has not exited after 12 seconds, stop kills it. If the process survives even that, stop exits non-zero and keeps the runtime record, so the next status still shows the daemon. This matters because two daemons with the same identity disconnect each other until one is gone. --force kills immediately. If you used systemd, stop the service instead (systemctl --user stop reliant-daemon), or the service manager will start the daemon again. stop refuses two daemons, --force included:
  • The daemon it is running under. An agent’s shell is started by the daemon that runs the agent, so stopping that daemon would end the agent’s own session mid-command. Stop a daemon from a terminal of your own.
  • A cloud machine’s daemon. On a Reliant cloud machine, every shell carries the settings of the daemon that runs the machine, so a bare reliant daemon stop there finds that daemon. Reliant runs it and restarts it, and stopping it would disconnect every chat on the machine. stop says so and does nothing; restart the machine from Settings → Machines instead. status and logs work as usual there.

Restart it without interrupting commands

restart asks the running daemon to restart and waits until the new one has started. With --drain the daemon first stops taking new tool calls (Reliant sends them again once it is back) and lets the tool calls and commands already running finish, for at most 10 minutes; --timeout 2m waits less. Without --drain it restarts at once, interrupting them as stop would. Background processes end with the daemon either way.
The daemon exits with status 75, and whatever started it starts it again, on the binary installed by then: a systemd service with Restart=on-failure (as in step 3) or Restart=always, or the desktop app. So restart refuses, and stops nothing, when nothing would start the daemon again: one run in a terminal, tmux or nohup. Stop and start that one yourself. If another supervisor (runit, a container restart policy) restarts the daemon when it exits non-zero, declare it with RELIANT_SUPERVISOR=<name> in the daemon’s environment. Run restart as the user the daemon runs as. Like stop, it refuses the daemon it runs under and a cloud machine’s daemon, and a daemon older than the command is refused with nothing stopped: restart that one with systemctl --user restart reliant-daemon, which interrupts running commands. restart exits 0 once the new daemon is running, 1 when it refused or failed without stopping anything, 3 when the daemon exited but nothing started a new one within a minute (check systemctl --user status reliant-daemon), and 4 when the daemon did not exit by its drain deadline.

7. Keep it up to date

How a daemon is updated depends on who installed its reliant. The desktop app updates the reliant it ships, Homebrew and your system’s package manager update theirs, and Reliant updates its cloud machines. A reliant you unpacked from a release archive into a directory you can write updates itself:
A daemon run by systemd moves onto the new binary with reliant daemon restart --drain, which lets the commands agents are running finish first. reliant update installs only a release that release.yml signed for its own tag (the Sigstore signature every release carries), and it checks the new binary runs before replacing anything. The previous binary is kept under ~/.reliant/upgrade/previous, and a new binary that fails to start is put back. --yes skips the question, --json prints the report for a script, and --channel alpha follows release candidates, as a release candidate’s build does already.

Let the daemon update itself

A daemon started with --auto-update (or RELIANT_DAEMON_AUTO_UPDATE=true, or auto_update: true in its config file) installs new releases by itself, so a machine you set up once stays current:
It checks for a newer release when it starts and every six hours. It downloads and verifies the release in the background, while it keeps serving. It installs it only at a quiet moment: no tool call running and no tool or terminal activity for ten minutes. Then it restarts in place, with the same process ID, so systemd and other service managers see no restart. The new daemon must reconnect to Reliant within five minutes, or the previous binary is put back and that release is not tried again on this machine. Background processes an agent left running, such as a dev server or a long test run, keep running across the restart: the new daemon takes them over, with the same IDs and output, and still reports how they exit. Open terminal sessions do not survive it. The one kind of background process that cannot outlive the old daemon is a command run with credentials: none: the daemon waits for it to finish, except for a security update Reliant asks for, once its deadline has passed. reliant daemon status shows a release that is waiting as staged. Auto-update is off by default, and it only applies to a reliant that can update itself, as described above. Started with --auto-update, the desktop app’s daemon or a Homebrew one logs why it will not update itself and keeps running. Without the flag, a daemon that Reliant asks to upgrade keeps serving and tells you to run reliant update. On any other install, reliant update changes nothing and names what updates it instead, for example update the Reliant desktop app. A reliant in a directory only root can write, such as /usr/local/bin, needs sudo reliant update, or move it to one you own (~/.local/bin) so it can update itself. On Windows, --check works but the update itself does not yet.

Join a machine pool when it starts

daemon start --label, reliant machine label and reliant machine pool are new in reliant v1.23.0. An older CLI does not list them in --help and rejects them; check yours with reliant --version.
A machine pool is a named set of your machines: those whose labels contain the pool’s selector (by default pool=<name>). A trigger or workflow that targets the pool runs on one of its members. To make a new box a member with no one labelling it in the app, have it declare its labels when it starts:
--label is repeatable and also takes comma-separated pairs (--label pool=pipeline,gate=yes); RELIANT_DAEMON_LABELS=pool=pipeline,gate=yes declares the same without the flag. Keys and values are lowercase slugs (a-z, 0-9, ., _, -), at most 63 characters, and a bad one stops daemon start before it does anything. On every connect, reconnects included, Reliant merges the declared labels into the machine’s labels: each declared key is set to its value, and labels the daemon does not declare, such as ones you added in the app, are left alone. Removing a --label does not remove the label from the machine; do that with reliant machine label <machine> --remove <key>. The pools themselves are managed from any computer you are logged in on:
An agent’s shell may list pools, but not change labels or pools: a label decides which runs a machine takes, which is your call.

Several daemons on one computer

You can run one daemon per checkout, and even one per account in the same checkout. reliant daemon ls lists every instance folder on the computer and whether a daemon is alive in it:
Each instance is named by server, account (_default until you use more than one) and workspace: here, a checkout called reliant-labs and the /tmp directory, neither currently running. A folder appears only once a daemon has started there: status, logs and stop look without creating anything. RUNNING comes from a lock the operating system releases when the process dies, so it is never stale even when a runtime record is left behind.