Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy
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>.
cd ~/src/my-service
2. Pair and start
Start the daemon. With no credential yet, it pairs the machine with your account:
$ reliant daemon startNo daemon credentials found. Registering...Pair this machine with your Reliant account. Code: BDFG-HJKL Approve: https://app.reliantlabs.io/oauth/device?user_code=BDFG-HJKLOr type the code into the Add machine window waiting in Reliant.Waiting for approval...
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:
echo "rlat_…" | reliant daemon start --token
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:
$ echo hello | reliant daemon start --tokeninvalid token format (expected an rlat_ daemon token)
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:
$ reliant daemon statusDaemon is running and its gateway stream is established PID: 244 Binary: …/reliant (built 2026-10-19T06:04:08Z, 21h46m24s ago) Gateway: https://gateway.reliantapi.com (tls) Stream: connected for 11m32s Stability: stable — no reconnects since this daemon started Record: …/daemon-state.json
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:
reliant daemon status >/dev/null && reliant workflow run …
When nothing is running, the output says so and names the record it looked for:
$ reliant daemon statusNo daemon running (no runtime record found) Record: ~/.reliant/instances/https-api.reliantapi.com-c9232e15/_default/reliant-labs-967955db/daemon-state.jsondaemon not running
If you expected a daemon here, check that you are in the checkout it serves (step 1).
5. Read its logs
reliant daemon logs # last 50 lines, then followreliant daemon logs -n 200 --follow=false
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
reliant daemon stop
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.
$ reliant daemon stopError: refusing to stop daemon PID 241: it is a managed daemon (record /home/workspace/.reliant-data/daemon-state.json). Reliant runs this machine's daemon and restarts it; stopping it takes the machine offline. Restart the machine from its page under Settings → Machines in the Reliant app instead
Restart it without interrupting commands
reliant daemon restart --drain
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.
$ reliant daemon restart --drainAsked daemon PID 5120 to restart once its running tool calls and commands finish (at most 10m0s)... Draining: 2 tool call(s) or command(s) running, restarting by 14:32:10 at the latest; new ones are refused and sent again after the restart Drained: drained: nothing is running; exiting so the supervisor restarts the daemonDaemon PID 5120 exited to be restarted (status 75)Daemon restarted: PID 5120 → 5187 (systemd:reliant-daemon.service)
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:
$ reliant update --checkreliant v1.25.0, channel latestNewest release: 1.26.0 (built 2026-11-20)An update is available: run `reliant update`.$ reliant updateUpdate reliant v1.25.0 to 1.26.0 (channel latest)? [y/N] yDownloading reliant 1.26.0 and checking its signature...Signature verified. Replacing /home/me/.local/bin/reliant...Updated reliant v1.25.0 to v1.26.0.A daemon that is already running keeps its version until it restarts: `reliant daemon restart --drain` restarts one run by systemd or the desktop app once its running commands finish; otherwise reliant daemon stop, then reliant daemon start.
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:
reliant machine pool put pipeline --max-runs-per-member 2 # define it, or change only the flags you passreliant machine pool ls # pools, members, live runs and warningsreliant machine label build-box pool=pipeline # label a machine yourself (merges; --replace, --remove)reliant machine pool rm pipeline # refused while a trigger still runs on it
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Reliant","colors":{"primary":"#6E39FF","light":"#8B5CF6","dark":"#6E39FF"},"logo":{"light":"https://mintcdn.com/reliantlabs/NoVh64u5lvQ64evP/images/reliant-logo.svg?fit=max\u0026auto=format\u0026n=NoVh64u5lvQ64evP\u0026q=85\u0026s=23abaccb8c58fa15c19b8080b9ed23ca","dark":"https://mintcdn.com/reliantlabs/NoVh64u5lvQ64evP/images/reliant-logo.svg?fit=max\u0026auto=format\u0026n=NoVh64u5lvQ64evP\u0026q=85\u0026s=23abaccb8c58fa15c19b8080b9ed23ca","href":"/"},"favicon":"https://mintcdn.com/reliantlabs/-3ixAWphy8BqD5FC/favicon.ico?fit=max\u0026auto=format\u0026n=-3ixAWphy8BqD5FC\u0026q=85\u0026s=6f3063bf97699e04c9e99b03d4b29630","navbar":{"links":[{"href":"/changelog","label":"Changelog"},{"href":"https://reliantlabs.io","label":"Main Site"},{"href":"https://github.com/reliant-labs/reliant","label":"GitHub"}],"primary":{"type":"button","label":"Download","href":"https://reliantlabs.io/#downloads"}},"footer":{"socials":{"github":"https://github.com/reliant-labs/reliant","x":"https://x.com/reliantlabs"}},"seo":{"metatags":{"description":"Reliant docs: AI coding agents and multi-agent workflows, the Forge framework for Go and React apps, and hosting with built-in observability.","og:site_name":"Reliant Docs","og:type":"website","og:image":"https://reliantlabs.io/og-image.png","og:image:width":"1200","og:image:height":"630","og:image:alt":"Reliant + Forge: the whole stack for building with AI agents","twitter:card":"summary_large_image","twitter:site":"@reliantlabs","twitter:image":"https://reliantlabs.io/og-image.png"},"indexing":"navigable"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Main Site","icon":"globe","href":"https://reliantlabs.io"},{"anchor":"GitHub","icon":"github","href":"https://github.com/reliant-labs/reliant"},{"anchor":"Slack","icon":"slack","href":"https://join.slack.com/t/reliant-pn51441/shared_invite/zt-4c7wet6o2-W_Tksw80LaRGxZqUz9GQdA"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reliantlabs","hasAudioNarration":false,"actualSubdomain":"reliantlabs","customDomains":["docs.reliantlabs.io"],"gitSource":{"type":"github","owner":"reliant-labs","repo":"reliant","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d9f59ffae5051c40eaf4"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b110e08f4776390e9d2fbbb","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Guides","count":116},{"language":"default","tag":"Reliant","count":85},{"language":"default","tag":"Forge","count":71},{"language":"default","tag":"Reliant Cloud","count":43},{"language":"default","tag":"Agents \u0026 workflows","count":33},{"language":"default","tag":"Observability","count":26},{"language":"default","tag":"Build workflows","count":18},{"language":"default","tag":"Deploy","count":17},{"language":"default","tag":"Start a project","count":15},{"language":"default","tag":"Automations \u0026 integrations","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@reliantlabs.io","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"69b4351bb4eb429b59805b4e","deploymentId":"69b2f13ec3efe3e81c3160ad","questionText":"How does Reliant work?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T16:02:35.042Z","updatedAt":"2026-03-13T16:02:35.042Z","__v":0},{"_id":"69b43515b4eb429b59805b27","deploymentId":"69b2f13ec3efe3e81c3160ad","questionText":"What is Reliant used for?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T16:02:29.723Z","updatedAt":"2026-03-13T16:02:29.723Z","__v":0},{"_id":"69b4350fb4eb429b59805afc","deploymentId":"69b2f13ec3efe3e81c3160ad","questionText":"What can Reliant do?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T16:02:23.336Z","updatedAt":"2026-03-13T16:02:23.336Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--reliant-accent: #6E39FF}#navbar{border-bottom:1px solid rgba(110, 57, 255, 0.16)}#footer{border-top:1px solid rgba(110, 57, 255, 0.16)}#navbar a[href=\"/\"]{display:inline-flex;align-items:center;gap:0.625rem}#navbar a[href=\"/\"] .nav-logo{height:1.5rem;width:auto}#navbar a[href=\"/\"]::after{content:\"Reliant\";display:inline-block;font-size:1.5rem;line-height:1;font-weight:700;letter-spacing:-0.04em;color:inherit}#assistant-entry,#assistant-entry-mobile,#assistant-entry button,#assistant-entry-mobile button{font-weight:600}"}]}
{"page":{"pagePath":"cli/run-a-machine","slug":"/cli/run-a-machine","pageMetadata":{"title":"Run a machine from the terminal","description":"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy","href":"/cli/run-a-machine"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`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. `,_jsx(_components.a,{href:`/machines/your-computer`,children:`Your own computer`}),` covers the concepts and every `,_jsx(_components.code,{children:`daemon start`}),` flag.`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-start-in-the-repository-you-want-agents-to-work-in`,children:`1. Start in the repository you want agents to work in`}),`\n`,_jsxs(_components.p,{children:[`A daemon serves one `,_jsx(_components.strong,{children:`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 `,_jsx(_components.code,{children:`cd`}),` into the project first. `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`logs`}),` and `,_jsx(_components.code,{children:`stop`}),` use the same rule, so run them from the same checkout, or pass `,_jsx(_components.code,{children:`--workspace \u003cpath>`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/src/my-service`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`2-pair-and-start`,children:`2. Pair and start`}),`\n`,_jsx(_components.p,{children:`Start the daemon. With no credential yet, it pairs the machine with your account:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon start`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`No daemon credentials found. Registering...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Pair this machine with your Reliant account.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Code: BDFG-HJKL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Approve: https://app.reliantlabs.io/oauth/device?user_code=BDFG-HJKL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Or type the code into the Add machine window waiting in Reliant.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Waiting for approval...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Approve it on any device: open the link, or type the code into `,_jsx(_components.strong,{children:`Add machine → Your own computer`}),`, which then asks “Approve machine `,_jsx(_components.code,{children:`\u003chostname>`}),`?”. Nothing has to reach back to this terminal, so pairing works the same over SSH. Once you approve, the daemon saves its credential to `,_jsx(_components.code,{children:`~/.reliant/daemon.json`}),` and connects. The computer appears in the app under `,_jsx(_components.strong,{children:`Settings → Machines`}),`, named `,_jsx(_components.code,{children:`\u003cinstance-id>@\u003chostname>`}),` unless you passed `,_jsx(_components.code,{children:`--name`}),`. `,_jsx(_components.code,{children:`reliant daemon register`}),` does only the pairing step, if you prefer to keep it separate.`]}),`\n`,_jsx(Heading,{level:`3`,id:`with-nobody-to-approve-it`,children:`With nobody to approve it`}),`\n`,_jsxs(_components.p,{children:[`For a CI runner or an image you bake once, create a daemon credential in the app under `,_jsx(_components.strong,{children:`Settings → Access Tokens`}),` and pipe it in:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"rlat_…\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --token`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`rlat_`}),` token is rejected before anything is saved:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ echo hello | reliant daemon start --token`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`invalid token format (expected an rlat_ daemon token)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`3-keep-it-running`,children:`3. Keep it running`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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).`]}),`\n`,_jsxs(_components.p,{children:[`For a quick session, run it in `,_jsx(_components.code,{children:`tmux`}),` or `,_jsx(_components.code,{children:`screen`}),`. For a machine that should always be available, let your service manager run it. With systemd, a user service looks like this:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`ini`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ini`,children:_jsxs(_components.code,{language:`ini`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ~/.config/systemd/user/reliant-daemon.service`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`[Unit]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`Description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=Reliant daemon`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`After`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=network-online.target`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`[Service]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WorkingDirectory`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=%h/src/my-service`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`ExecStart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=/usr/bin/reliant daemon start --non-interactive`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`Restart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=on-failure`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`[Install]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WantedBy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=default.target`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Register once by hand (step 2) before enabling it with `,_jsx(_components.code,{children:`systemctl --user enable --now reliant-daemon`}),`. `,_jsx(_components.code,{children:`--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 `,_jsx(_components.code,{children:`command -v reliant`}),` prints, and run `,_jsx(_components.code,{children:`loginctl enable-linger`}),` if the service should keep running after you log out.`]}),`\n`,_jsx(_components.p,{children:`A short network outage needs no restart. The daemon reconnects by itself.`}),`\n`,_jsx(Heading,{level:`2`,id:`4-check-that-it-is-healthy`,children:`4. Check that it is healthy`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`reliant daemon status`}),` tells you whether the daemon can serve tool calls right now, which is not the same as whether its process exists:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon status`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Daemon is running and its gateway stream is established`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` PID: 244`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Binary: …/reliant (built 2026-10-19T06:04:08Z, 21h46m24s ago)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Gateway: https://gateway.reliantapi.com (tls)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Stream: connected for 11m32s`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Stability: stable — no reconnects since this daemon started`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Record: …/daemon-state.json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`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. `,_jsx(_components.strong,{children:`Stability`}),` says whether the stream has held: a stream that dropped in the last few minutes is reported as `,_jsx(_components.code,{children:`UNSTABLE`}),`, because it is likely to drop again in the middle of a long tool call. `,_jsx(_components.strong,{children:`Binary`}),` tells you which build is running, which helps after an upgrade.`]}),`\n`,_jsxs(_components.p,{children:[`The exit code follows the same rule. `,_jsx(_components.code,{children:`status`}),` exits `,_jsx(_components.code,{children:`0`}),` only when the stream is established `,_jsx(_components.strong,{children:`and`}),` stable, and non-zero otherwise, including when no daemon is running. That makes it a good pre-flight check before starting long work:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dev/null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` …`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`When nothing is running, the output says so and names the record it looked for:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon status`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`No daemon running (no runtime record found)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Record: ~/.reliant/instances/https-api.reliantapi.com-c9232e15/_default/reliant-labs-967955db/daemon-state.json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`daemon not running`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`If you expected a daemon here, check that you are in the checkout it serves (step 1).`}),`\n`,_jsx(Heading,{level:`2`,id:`5-read-its-logs`,children:`5. Read its logs`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` logs`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # last 50 lines, then follow`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` logs`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -n`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 200`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --follow=false`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The log is `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`--verbose`}),` to `,_jsx(_components.code,{children:`daemon start`}),` to copy the log to the terminal as well.`]}),`\n`,_jsx(Heading,{level:`2`,id:`6-stop-it`,children:`6. Stop it`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stop`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`stop`}),` asks the daemon to shut down and `,_jsx(_components.strong,{children:`waits until the process has exited`}),` before saying it stopped. If the daemon has not exited after 12 seconds, `,_jsx(_components.code,{children:`stop`}),` kills it. If the process survives even that, `,_jsx(_components.code,{children:`stop`}),` exits non-zero and keeps the runtime record, so the next `,_jsx(_components.code,{children:`status`}),` still shows the daemon. This matters because two daemons with the same identity disconnect each other until one is gone. `,_jsx(_components.code,{children:`--force`}),` kills immediately. If you used systemd, stop the service instead (`,_jsx(_components.code,{children:`systemctl --user stop reliant-daemon`}),`), or the service manager will start the daemon again.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`stop`}),` refuses two daemons, `,_jsx(_components.code,{children:`--force`}),` included:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`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.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`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 `,_jsx(_components.code,{children:`reliant daemon stop`}),` there finds that daemon. Reliant runs it and restarts it, and stopping it would disconnect every chat on the machine. `,_jsx(_components.code,{children:`stop`}),` says so and does nothing; restart the machine from `,_jsx(_components.strong,{children:`Settings → Machines`}),` instead. `,_jsx(_components.code,{children:`status`}),` and `,_jsx(_components.code,{children:`logs`}),` work as usual there.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon stop`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: refusing to stop daemon PID 241: it is a managed daemon (record /home/workspace/.reliant-data/daemon-state.json). Reliant runs this machine's daemon and restarts it; stopping it takes the machine offline. Restart the machine from its page under Settings → Machines in the Reliant app instead`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`restart-it-without-interrupting-commands`,children:`Restart it without interrupting commands`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` restart`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --drain`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`restart`}),` asks the running daemon to restart and waits until the new one has started. With `,_jsx(_components.code,{children:`--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; `,_jsx(_components.code,{children:`--timeout 2m`}),` waits less. Without `,_jsx(_components.code,{children:`--drain`}),` it restarts at once, interrupting them as `,_jsx(_components.code,{children:`stop`}),` would. Background processes end with the daemon either way.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon restart --drain`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Asked daemon PID 5120 to restart once its running tool calls and commands finish (at most 10m0s)...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Draining: 2 tool call(s) or command(s) running, restarting by 14:32:10 at the latest; new ones are refused and sent again after the restart`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Drained: drained: nothing is running; exiting so the supervisor restarts the daemon`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Daemon PID 5120 exited to be restarted (status 75)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Daemon restarted: PID 5120 → 5187 (systemd:reliant-daemon.service)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The daemon exits with status 75, and whatever started it starts it again, on the binary installed by then: a systemd service with `,_jsx(_components.code,{children:`Restart=on-failure`}),` (as in step 3) or `,_jsx(_components.code,{children:`Restart=always`}),`, or the desktop app. So `,_jsx(_components.code,{children:`restart`}),` refuses, and stops nothing, when nothing would start the daemon again: one run in a terminal, `,_jsx(_components.code,{children:`tmux`}),` or `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`RELIANT_SUPERVISOR=\u003cname>`}),` in the daemon’s environment. Run `,_jsx(_components.code,{children:`restart`}),` as the user the daemon runs as. Like `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`systemctl --user restart reliant-daemon`}),`, which interrupts running commands.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`systemctl --user status reliant-daemon`}),`), and 4 when the daemon did not exit by its drain deadline.`]}),`\n`,_jsx(Heading,{level:`2`,id:`7-keep-it-up-to-date`,children:`7. Keep it up to date`}),`\n`,_jsxs(_components.p,{children:[`How a daemon is updated depends on who installed its `,_jsx(_components.code,{children:`reliant`}),`. The desktop app updates the `,_jsx(_components.code,{children:`reliant`}),` it ships, Homebrew and your system’s package manager update theirs, and Reliant updates its cloud machines. A `,_jsx(_components.code,{children:`reliant`}),` you unpacked from a `,_jsx(_components.a,{href:`/getting-started/installation#cli-only-headless-linux-ci-runners`,children:`release archive`}),` into a directory you can write updates itself:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant update --check`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reliant v1.25.0, channel latest`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Newest release: 1.26.0 (built 2026-11-20)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"An update is available: run `reliant update`.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant update`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Update reliant v1.25.0 to 1.26.0 (channel latest)? [y/N] y`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Downloading reliant 1.26.0 and checking its signature...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Signature verified. Replacing /home/me/.local/bin/reliant...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Updated reliant v1.25.0 to v1.26.0.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"A daemon that is already running keeps its version until it restarts: `reliant daemon restart --drain` restarts one run by systemd or the desktop app once its running commands finish; otherwise reliant daemon stop, then reliant daemon start.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`A daemon run by systemd moves onto the new binary with `,_jsx(_components.a,{href:`#restart-it-without-interrupting-commands`,children:_jsx(_components.code,{children:`reliant daemon restart --drain`})}),`, which lets the commands agents are running finish first.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`reliant update`}),` installs only a release that `,_jsx(_components.code,{children:`release.yml`}),` signed for its own tag (the `,_jsx(_components.a,{href:`https://github.com/reliant-labs/reliant/blob/main/dev-docs/cli-release-artifacts.md#signing`,children:`Sigstore signature`}),` every release carries), and it checks the new binary runs before replacing anything. The previous binary is kept under `,_jsx(_components.code,{children:`~/.reliant/upgrade/previous`}),`, and a new binary that fails to start is put back. `,_jsx(_components.code,{children:`--yes`}),` skips the question, `,_jsx(_components.code,{children:`--json`}),` prints the report for a script, and `,_jsx(_components.code,{children:`--channel alpha`}),` follows release candidates, as a release candidate’s build does already.`]}),`\n`,_jsx(Heading,{level:`3`,id:`let-the-daemon-update-itself`,children:`Let the daemon update itself`}),`\n`,_jsxs(_components.p,{children:[`A daemon started with `,_jsx(_components.code,{children:`--auto-update`}),` (or `,_jsx(_components.code,{children:`RELIANT_DAEMON_AUTO_UPDATE=true`}),`, or `,_jsx(_components.code,{children:`auto_update: true`}),` in its config file) installs new releases by itself, so a machine you set up once stays current:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --auto-update`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`credentials: none`}),`: the daemon waits for it to finish, except for a security update Reliant asks for, once its deadline has passed. `,_jsx(_components.code,{children:`reliant daemon status`}),` shows a release that is waiting as `,_jsx(_components.code,{children:`staged`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Auto-update is off by default, and it only applies to a `,_jsx(_components.code,{children:`reliant`}),` that can update itself, as described above. Started with `,_jsx(_components.code,{children:`--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 `,_jsx(_components.code,{children:`reliant update`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`On any other install, `,_jsx(_components.code,{children:`reliant update`}),` changes nothing and names what updates it instead, for example `,_jsx(_components.code,{children:`update the Reliant desktop app`}),`. A `,_jsx(_components.code,{children:`reliant`}),` in a directory only root can write, such as `,_jsx(_components.code,{children:`/usr/local/bin`}),`, needs `,_jsx(_components.code,{children:`sudo reliant update`}),`, or move it to one you own (`,_jsx(_components.code,{children:`~/.local/bin`}),`) so it can update itself. On Windows, `,_jsx(_components.code,{children:`--check`}),` works but the update itself does not yet.`]}),`\n`,_jsx(Heading,{level:`2`,id:`join-a-machine-pool-when-it-starts`,children:`Join a machine pool when it starts`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`daemon start --label`}),`, `,_jsx(_components.code,{children:`reliant machine label`}),` and `,_jsx(_components.code,{children:`reliant machine pool`}),` are new in reliant v1.23.0. An older CLI does not list them in `,_jsx(_components.code,{children:`--help`}),` and rejects them; check yours with `,_jsx(_components.code,{children:`reliant --version`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`A machine pool is a named set of your machines: those whose labels contain the pool’s selector (by default `,_jsx(_components.code,{children:`pool=\u003cname>`}),`). 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:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` daemon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pool=pipeline`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gate=yes`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--label`}),` is repeatable and also takes comma-separated pairs (`,_jsx(_components.code,{children:`--label pool=pipeline,gate=yes`}),`); `,_jsx(_components.code,{children:`RELIANT_DAEMON_LABELS=pool=pipeline,gate=yes`}),` declares the same without the flag. Keys and values are lowercase slugs (`,_jsx(_components.code,{children:`a-z`}),`, `,_jsx(_components.code,{children:`0-9`}),`, `,_jsx(_components.code,{children:`.`}),`, `,_jsx(_components.code,{children:`_`}),`, `,_jsx(_components.code,{children:`-`}),`), at most 63 characters, and a bad one stops `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`--label`}),` does not remove the label from the machine; do that with `,_jsx(_components.code,{children:`reliant machine label \u003cmachine> --remove \u003ckey>`}),`.`]}),`\n`,_jsx(_components.p,{children:`The pools themselves are managed from any computer you are logged in on:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` machine`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pool`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` put`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pipeline`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-runs-per-member`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # define it, or change only the flags you pass`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` machine`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pool`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ls`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # pools, members, live runs and warnings`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` machine`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build-box`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pool=pipeline`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # label a machine yourself (merges; --replace, --remove)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`reliant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` machine`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pool`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pipeline`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # refused while a trigger still runs on it`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`several-daemons-on-one-computer`,children:`Several daemons on one computer`}),`\n`,_jsxs(_components.p,{children:[`You can run one daemon per checkout, and even one per account in the same checkout. `,_jsx(_components.code,{children:`reliant daemon ls`}),` lists every instance folder on the computer and whether a daemon is alive in it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`$ reliant daemon ls`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`~/.reliant/instances`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`RUNNING PID STREAM UPTIME INSTANCE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- - - - https-api.reliantapi.com-c9232e15/_default/reliant-labs-967955db`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- - - - https-api.reliantapi.com-c9232e15/_default/tmp-e9671acd`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Each instance is named by server, account (`,_jsx(_components.code,{children:`_default`}),` until you use more than one) and workspace: here, a checkout called `,_jsx(_components.code,{children:`reliant-labs`}),` and the `,_jsx(_components.code,{children:`/tmp`}),` directory, neither currently running. A folder appears only once a daemon has started there: `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`logs`}),` and `,_jsx(_components.code,{children:`stop`}),` look without creating anything. `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-topics`,children:`Related topics`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/machines/your-computer`,children:`Your own computer`}),`: flags, accounts, TLS options and troubleshooting`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/machines/overview`,children:`Machines overview`}),` and `,_jsx(_components.a,{href:`/machines/choosing`,children:`Choosing a machine`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/cli/sign-in`,children:`Sign in and tokens`}),`: daemon credentials compared with CLI logins`]}),`\n`,_jsx(_components.li,{children:_jsxs(_components.a,{href:`/reference/cli#reliant-daemon`,children:[`CLI reference: `,_jsx(_components.code,{children:`reliant daemon`})]})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run a machine from the terminal","description":"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy","href":"/cli/run-a-machine"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Start in the repository you want agents to work in","slug":"1-start-in-the-repository-you-want-agents-to-work-in","depth":2,"children":[]},{"title":"2. Pair and start","slug":"2-pair-and-start","depth":2,"children":[{"title":"With nobody to approve it","slug":"with-nobody-to-approve-it","depth":3,"children":[]}]},{"title":"3. Keep it running","slug":"3-keep-it-running","depth":2,"children":[]},{"title":"4. Check that it is healthy","slug":"4-check-that-it-is-healthy","depth":2,"children":[]},{"title":"5. Read its logs","slug":"5-read-its-logs","depth":2,"children":[]},{"title":"6. Stop it","slug":"6-stop-it","depth":2,"children":[{"title":"Restart it without interrupting commands","slug":"restart-it-without-interrupting-commands","depth":3,"children":[]}]},{"title":"7. Keep it up to date","slug":"7-keep-it-up-to-date","depth":2,"children":[{"title":"Let the daemon update itself","slug":"let-the-daemon-update-itself","depth":3,"children":[]}]},{"title":"Join a machine pool when it starts","slug":"join-a-machine-pool-when-it-starts","depth":2,"children":[]},{"title":"Several daemons on one computer","slug":"several-daemons-on-one-computer","depth":2,"children":[]},{"title":"Related topics","slug":"related-topics","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"reliantlabs","siteName":"Reliant","title":"Run a machine from the terminal - Reliant","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T03:17:38.309Z","originalFileLocation":"cli/run-a-machine.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\">\u003cmeta data-mint-head name=\"application-name\" content=\"Reliant\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run a machine from the terminal - Reliant\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Reliant Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reliantlabs.io/cli/run-a-machine\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://reliantlabs.io/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run a machine from the terminal - Reliant\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://reliantlabs.io/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/reliantlabs/uVGZZjE6OJeONTe_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Reliant\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6E39FF\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Reliant + Forge: the whole stack for building with AI agents\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reliantlabs.io/cli/run-a-machine\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/run-a-machine.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.reliantlabs.io/#organization\",\"name\":\"Reliant\",\"url\":\"https://docs.reliantlabs.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/reliantlabs/NoVh64u5lvQ64evP/images/reliant-logo.svg?fit=max\u0026auto=format\u0026n=NoVh64u5lvQ64evP\u0026q=85\u0026s=23abaccb8c58fa15c19b8080b9ed23ca\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.reliantlabs.io#website\",\"name\":\"Reliant\",\"url\":\"https://docs.reliantlabs.io\",\"publisher\":{\"@id\":\"https://docs.reliantlabs.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.reliantlabs.io/cli/run-a-machine#webpage\",\"url\":\"https://docs.reliantlabs.io/cli/run-a-machine\",\"name\":\"Run a machine from the terminal\",\"description\":\"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\",\"dateModified\":\"2026-12-02T03:17:38.309Z\",\"isPartOf\":{\"@id\":\"https://docs.reliantlabs.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reliantlabs.io/cli/run-a-machine#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reliantlabs.io/cli/run-a-machine#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Command line\",\"item\":\"https://docs.reliantlabs.io/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run a machine from the terminal\",\"item\":\"https://docs.reliantlabs.io/cli/run-a-machine\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.reliantlabs.io/cli/run-a-machine#article\",\"headline\":\"Run a machine from the terminal\",\"name\":\"Run a machine from the terminal\",\"description\":\"Turn a workstation, server or Raspberry Pi into a Reliant machine with reliant daemon, keep it running, and check that it is healthy\",\"url\":\"https://docs.reliantlabs.io/cli/run-a-machine\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reliantlabs.io/cli/run-a-machine#webpage\"},\"image\":\"https://reliantlabs.io/og-image.png\",\"dateModified\":\"2026-12-02T03:17:38.309Z\",\"publisher\":{\"@id\":\"https://docs.reliantlabs.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.reliantlabs.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Reliant\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Reliant\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/run-a-machine.md","siteName":"Reliant","nav":{"global":{"anchors":[{"anchor":"Main Site","icon":"globe","href":"https://reliantlabs.io"},{"anchor":"GitHub","icon":"github","href":"https://github.com/reliant-labs/reliant"},{"anchor":"Slack","icon":"slack","href":"https://join.slack.com/t/reliant-pn51441/shared_invite/zt-4c7wet6o2-W_Tksw80LaRGxZqUz9GQdA"}]},"tabs":[{"tab":"Reliant","groups":[{"group":"Get started","pages":[{"title":"Reliant: Forge, Cloud, Workflows and Engine","sidebarTitle":"Introduction","href":""},{"title":"Deploy your app: web apps, backends, databases and auth","sidebarTitle":"Deploy your app","href":"/getting-started/deploy-your-app"},{"title":"Why Reliant: one platform from code to production","sidebarTitle":"Why Reliant","href":"/getting-started/why-reliant"},{"title":"What Reliant replaces: one platform instead of 30 tools","sidebarTitle":"What Reliant replaces","href":"/getting-started/what-reliant-replaces"},{"title":"Reliant quick start: run your first AI agent workflow","sidebarTitle":"Quick Start","href":"/getting-started/quick-start"},{"title":"Installation","href":"/getting-started/installation"},{"title":"Reliant concepts and glossary","sidebarTitle":"Key Concepts","href":"/getting-started/concepts"},{"title":"Search the Reliant docs from your agent (docs MCP server)","sidebarTitle":"Search these docs from your agent","href":"/getting-started/search-docs-from-your-agent"}]},{"group":"Use Reliant","pages":[{"title":"AI workflows: multi-agent pipelines in YAML","sidebarTitle":"Workflows Overview","href":"/workflows/overview"},{"title":"Pause, resume and steer running AI workflows","sidebarTitle":"Workflow Control","href":"/workflows/workflow-control"},{"title":"Chats, projects, branches and agent sandboxes","sidebarTitle":"Chats","href":"/features/chats"},{"title":"Branch an AI chat to try another approach","sidebarTitle":"Branching","href":"/features/branching"},{"title":"Workspaces","href":"/features/worktrees"},{"title":"Git Integration","href":"/features/git-integration"},{"title":"Conversation threads and sub-agent isolation in Reliant","sidebarTitle":"Threads","href":"/features/threads"},{"title":"Sub-agents: delegate work with the spawn tool","sidebarTitle":"Sub-agents","href":"/workflows/spawn"},{"title":"Excluding automatic saved memories","href":"/workflows/ambient-memory"},{"title":"Attachments","href":"/features/attachments"},{"title":"Run project commands","href":"/features/processes"}]},{"group":"Built-in workflows","pages":[{"title":"Built-in workflows","href":"/guides/overview"},{"title":"Get It Right","href":"/guides/get-it-right"},{"title":"Best of Three","href":"/guides/best-of-three"},{"title":"Autopilot","href":"/guides/autopilot"},{"title":"Create a Workflow","href":"/guides/create-a-workflow"},{"title":"Import from Claude Code / Cursor","href":"/guides/import"}]},{"group":"Machines","pages":[{"title":"Machines","href":"/machines/overview"},{"title":"Your own computer","href":"/machines/your-computer"},{"title":"Cloud machines \u0026 plans","href":"/machines/cloud"},{"title":"Choosing a machine in workflows","href":"/machines/choosing"}]},{"group":"Command line","pages":[{"title":"The reliant command line","href":"/cli/overview"},{"title":"Sign in and tokens","description":"Sign the reliant CLI in, sign in on a machine with no browser, and create tokens for scripts and CI","href":"/cli/sign-in"},{"title":"Run a machine from the terminal","href":"/cli/run-a-machine"},{"title":"Workflows from the terminal","description":"Check a workflow next to your code with reliant workflow validate, lint and scenario run, then run and supervise it, and schedule it with reliant trigger","href":"/cli/workflows"},{"title":"Preview a running app","href":"/cli/previews"},{"title":"Scripting and CI","href":"/cli/scripting"}]},{"group":"SDK","pages":[{"title":"SDKs: Reliant from your own code","href":"/sdk/overview"},{"title":"Go SDK","href":"/sdk/go"},{"title":"TypeScript SDK","href":"/sdk/typescript"},{"title":"SDK API reference","href":"/sdk/reference"}]},{"group":"Automations \u0026 integrations","pages":[{"title":"Automations","href":"/automations/overview"},{"title":"Schedules","href":"/automations/schedules"},{"title":"Webhooks","href":"/automations/webhooks"},{"title":"Workflow events","href":"/automations/workflow-events"},{"title":"No-machine runs","href":"/automations/no-machine-runs"},{"group":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"},{"title":"Connectors: integrations and MCP servers","sidebarTitle":"Connectors","href":"/integrations/connectors"},{"title":"GitHub","href":"/integrations/github"},{"title":"Gmail","href":"/integrations/gmail"},{"title":"Google Calendar","href":"/integrations/google-calendar"},{"title":"Google Sheets","href":"/integrations/google-sheets"},{"title":"Slack","href":"/integrations/slack"},{"title":"HTTP","href":"/integrations/http"},{"title":"Twilio (SMS and WhatsApp)","href":"/integrations/twilio"}]}]},{"group":"Build workflows","pages":[{"title":"Creating Custom Workflows","href":"/workflows/custom-workflows"},{"title":"Presets","href":"/workflows/presets"},{"title":"Multi-Agent Patterns","href":"/workflows/patterns"},{"title":"Router Nodes","href":"/workflows/routing"},{"title":"Testing Workflows","href":"/workflows/testing"},{"title":"Workflow lint","href":"/workflows/lint"},{"title":"Workflow Examples","href":"/examples/workflow-snippets"},{"title":"Improve Reliant itself","href":"/guides/self-improvement"}]},{"group":"Customize","pages":[{"title":"AI Providers","href":"/settings/api-keys"},{"title":"Model configuration: tags, custom models, local providers","sidebarTitle":"Model Configuration","href":"/settings/model-config"},{"title":"Memory files: persistent context with reliant.md","sidebarTitle":"Memories \u0026 Context","href":"/settings/memories"},{"title":"Agent skills: reusable SKILL.md instructions","sidebarTitle":"Skills","href":"/features/skills"},{"title":"MCP Servers","href":"/settings/mcp-servers"}]},{"group":"Account \u0026 billing","pages":[{"title":"Billing, wallet \u0026 Reliant AI","href":"/account/billing"},{"title":"Project usage: what one app's hosting costs","sidebarTitle":"Project usage","href":"/account/project-usage"},{"title":"Privacy \u0026 Security: what leaves your machine","href":"/help/privacy"}]},{"group":"Reference","pages":[{"title":"Node Types Reference","href":"/reference/nodes"},{"title":"Types Reference","href":"/reference/types"},{"title":"Workflow Schema Reference","href":"/reference/workflow-schema"},{"title":"CEL Expressions Reference","href":"/reference/cel-expressions"},{"title":"Models Reference","href":"/reference/models"},{"title":"Tools Quick Reference","href":"/reference/tools"},{"title":"Scenario Schema","href":"/reference/scenario-schema"},{"title":"LLM Integration Guide","href":"/reference/llm-guide"},{"title":"CLI Reference","href":"/reference/cli"}]},{"group":"Help","pages":[{"title":"FAQ","href":"/help/faq"},{"title":"Reliant troubleshooting: machines, sign-in, models, workflows","sidebarTitle":"Troubleshooting","href":"/help/troubleshooting"},{"title":"Feedback \u0026 Support","href":"/help/feedback"},{"title":"Reliant architecture: how the cloud service fits together","sidebarTitle":"Architecture Overview","href":"/architecture/overview"},{"title":"Server roles: API, worker and daemon gateway","sidebarTitle":"Server Components","href":"/architecture/distributed"},{"title":"Changelog","href":"/changelog"},{"title":"License FAQ","href":"/license-faq"}]}]},{"tab":"Forge","pages":[{"title":"Forge","href":"/forge/overview"}]},{"tab":"Reliant Cloud","pages":[{"title":"Reliant Cloud","href":"/hosting/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides"}]}]},"basePath":"","title":"Run a machine from the terminal - Reliant","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}