Running Agents on Your Own Machines
agentrqd is a small program you install on a computer
so that AgentRQ can run coding agents on it. You enrol the machine once, and after that you can
start an agent for a workspace from the control panel, watch its terminal, and type into it.
This page is about how to set it up, what it means, what it can and cannot protect you from, and how to turn it off. To go straight to running an agent, see Start an Agent on It, or the step-by-step guides with screenshots for Claude Code and for ACP agents. The install and security sections follow DAEMON.md in the repository.
Read This Before You Enrol a Machine
That is the whole trust model in one sentence, and it is not a caveat. An agent started on your machine can read every file you can read, write every file you can write, reach every network your machine can reach, and use every credential sitting in your home directory — because it is you, as far as the operating system is concerned.
- — Enrol machines you would be comfortable giving that account a shell on.
- — Protect the AgentRQ account accordingly. Your machines are only as safe as it is.
- — Do not enrol a machine that holds something the account's owner should not have.
The daemon refuses to run as root or Administrator, which limits the damage an agent can do to what you can do. That is a meaningful limit and it is not isolation.
Installing It
agentrqd is one static binary. Put it on your
PATH, enrol it, run it. The steps below are for the
platform this page thinks you are reading on — pick another if you are setting up a
different machine, which is the usual case.
The Script — Linux
curl -fsSL https://agentrq.com/install-agentrqd.sh | sh
It works out which archive this machine needs, verifies it
against the SHA-256 checksums published with the release, and installs to
~/.local/bin, a folder you own, so it never asks for a password. If that
folder is not on your PATH yet, it prints the one line that adds it, for the shell you
use. Running it again updates in place. It installs and nothing more: it
does not enrol the machine, start anything, install a service, or run as root.
If you would rather read it first, which is a fair thing to want on the machine you are about to grant command access to:
curl -fsSL https://agentrq.com/install-agentrqd.sh -o install-agentrqd.sh
less install-agentrqd.sh
sh install-agentrqd.sh
Same install, and it is about 300 lines of POSIX sh.
To pass flags through the one-liner, put them after
-s --:
curl -fsSL https://agentrq.com/install-agentrqd.sh | sh -s -- --version 0.7.0
--version pins a release,
--dir installs somewhere else,
--force reinstalls, and
--help lists them.
Or by Hand — Linux
Releases are on the releases page — pick the archive for the machine you are installing on, not the one you are reading this on.
tar xzf agentrqd_*_linux_*.tar.gz
mkdir -p ~/.local/bin
install -m 0755 agentrqd ~/.local/bin/
sudo. If an install guide anywhere tells
you to work around that refusal, it is removing the only thing keeping an agent
to what you can already do yourself.
Nothing here verifies what you downloaded. If you install by hand, check it against
checksums.txt on the release page yourself:
sha256sum -c checksums.txt --ignore-missing
That is the one thing the script does that a manual install usually skips, and the reason it is worth preferring.
The Script — macOS
curl -fsSL https://agentrq.com/install-agentrqd.sh | sh
It works out which archive this machine needs, verifies it
against the SHA-256 checksums published with the release, and installs to
~/.local/bin, a folder you own, so it never asks for a password. If that
folder is not on your PATH yet, it prints the one line that adds it, for the shell you
use. Running it again updates in place. It installs and nothing more: it
does not enrol the machine, start anything, install a service, or run as root.
If you would rather read it first, which is a fair thing to want on the machine you are about to grant command access to:
curl -fsSL https://agentrq.com/install-agentrqd.sh -o install-agentrqd.sh
less install-agentrqd.sh
sh install-agentrqd.sh
Same install, and it is about 300 lines of POSIX sh.
To pass flags through the one-liner, put them after
-s --:
curl -fsSL https://agentrq.com/install-agentrqd.sh | sh -s -- --version 0.7.0
--version pins a release,
--dir installs somewhere else,
--force reinstalls, and
--help lists them.
Or by Hand — macOS
Releases are on the releases page — pick the archive for the machine you are installing on, not the one you are reading this on.
tar xzf agentrqd_*_darwin_*.tar.gz
mkdir -p ~/.local/bin
install -m 0755 agentrqd ~/.local/bin/
# put ~/.local/bin on your PATH, for the shell you use; skip if it is already
line='export PATH="$HOME/.local/bin:$PATH"'
case "$(basename "$SHELL")" in
zsh) echo "$line" >> "${ZDOTDIR:-$HOME}/.zshrc" ;;
# a login bash reads only the first of these that exists, so add to that one
bash) for rc in ~/.bash_profile ~/.bash_login ~/.profile ~/.bash_profile; do
[ -f "$rc" ] && break
done
echo "$line" >> "$rc" ;;
fish) fish -c 'fish_add_path ~/.local/bin' ;;
*) echo "$line" >> ~/.profile ;;
esac
sudo. If an install guide anywhere tells you to work around
that refusal, it is removing the only thing keeping an agent to what you can
already do yourself.
Nothing here verifies what you downloaded. If you install by hand, check it against
checksums.txt on the release page yourself:
sha256sum -c checksums.txt --ignore-missing
That is the one thing the script does that a manual install usually skips, and the reason it is worth preferring.
The Script — Windows
irm https://agentrq.com/install-agentrqd.ps1 | iex
It works out which archive this machine needs, verifies it
against the SHA-256 checksums published with the release, installs to
%LOCALAPPDATA%\Programs, and adds that folder to
your user PATH if it is not there already.
Running it again updates in place. It installs and nothing more: it does not enrol the
machine, start anything, install a service, or require Administrator.
If you would rather read it first, which is a fair thing to want on the machine you are about to grant command access to:
iwr https://agentrq.com/install-agentrqd.ps1 -OutFile install-agentrqd.ps1
notepad install-agentrqd.ps1
.\install-agentrqd.ps1
Same install. Piped straight into
iex, the script has nothing to attach
command-line flags to, so pass them through an environment variable instead:
$env:AGENTRQD_VERSION = "0.7.0"
irm https://agentrq.com/install-agentrqd.ps1 | iex
AGENTRQD_VERSION pins a release,
AGENTRQD_INSTALL_DIR installs somewhere else,
AGENTRQD_FORCE reinstalls. Running the file
directly instead of piping it also accepts
-Version,
-Dir,
-Force and
-Help as ordinary parameters.
Or by Hand — Windows
Take agentrqd_*_windows_*.zip from the
releases page
— the archive for the machine you are installing on, not the one you are reading this
on — and, in PowerShell:
$dir = "$env:LOCALAPPDATA\Programs"
New-Item -ItemType Directory -Force $dir | Out-Null
Expand-Archive agentrqd_*_windows_*.zip -DestinationPath .
Move-Item -Force agentrqd.exe "$dir\agentrqd.exe"
Windows has no user directory that is already on
PATH, so add the one you installed into. It takes
effect in new shells:
# the User value only: $env:Path is that and the system PATH combined
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
[Environment]::SetEnvironmentVariable("Path", "$userPath;$dir", "User")
Nothing here verifies what you downloaded, so check the archive against
checksums.txt on the release page before you
unpack it. Compare the hash this prints with the line for your archive:
Get-FileHash agentrqd_*_windows_*.zip -Algorithm SHA256
That is the one thing the script does that a manual install usually skips, and the reason it is worth preferring.
Enrol It
In the control panel: Machines → Add machine gives you a short code, and shows these same steps. On the machine itself:
agentrqd enroll --server https://your-agentrq-server --code ABCD-EFGH
There is no remote enrolment. Somebody has to be at the machine, which is what makes the code safe to display. The code is single-use and expires after a few minutes.
Once agentrqd is running, the machine shows on the
Machines page with a green dot, its platform, CPU and memory.
Run It
agentrqd serve
To keep it running after you log out, use the service files. The installer saves them
beside the daemon's own config —
~/.config/agentrqd on Linux,
~/Library/Application Support/agentrqd on macOS
— and a manual install leaves them in the archive you unpacked.
agentrqd.service into
~/.config/systemd/user/, then
systemctl --user daemon-reload && systemctl --user enable --now agentrqd.
Add sudo loginctl enable-linger "$USER"
so it survives logout.
com.agentrq.agentrqd.plist into
~/Library/LaunchAgents/, then
launchctl load -w ~/Library/LaunchAgents/com.agentrq.agentrqd.plist.
Both are user-level — a systemd user unit and a LaunchAgent, not a system service and not a LaunchDaemon — for the reason above. Under either, the daemon exits and lets the service manager restart it when it updates itself; run by hand, it re-executes. Both work.
agentrqd serve in
a terminal you leave open; when it updates itself it re-executes in place rather
than waiting for a service manager to restart it.
Start an Agent on It
Once the machine shows a green dot on the Machines page, you start, watch and stop agents on it from the workspace. There is no config file to copy.
-
1
Set a working directory. In the workspace's Settings → General, set the folder on the machine the agent should work in. Without one, the Start button stays greyed out and says so.
-
2
Click the start button. While a machine is online and no agent is connected, an empty workspace offers it in the middle of the page. When AgentRQ already knows what to start, it reads Start Claude Code (or the last agent you started), with "on machine · model · Change" under it, and one click starts it; click Change to choose. Otherwise it reads Start an agent and opens the form. With several machines online, a switch beside the buttons picks the machine.

-
3
Pick the agent from the list on the left. Claude Code runs Claude Code directly. Every other agent runs through the open-source ACP Gateway, which
agentrqdruns for you; click + to search every agent in the ACP registry, such as Antigravity, Gemini CLI, Codex or goose. Agents that are not in the registry cannot be started yet. -
4
Choose the model and effort. For Claude Code, the Model slider lists the models the machine's own Claude Code reports, and an Auto-compact slider sets its context window (100k to 900k, 400k by default). For an ACP agent, AgentRQ asks the machine which models the agent offers; there is a default. Effort goes from Default to Max; Default leaves it to the agent.
-
5
Click Start Agent. AgentRQ opens the agent's live terminal, with a Stop button. On the machine,
agentrqdwrites the workspace's.mcp.jsoninto the working directory (and adds it to.gitignorein a git checkout) and starts the agent. You never handle the token.
-
6
Answer first-run prompts in that terminal. It is the real terminal: click into it and use the arrow keys and Enter. Claude Code asks once per folder whether you trust it, and on every start confirms the development channel AgentRQ delivers tasks through. If an agent needs signing in, it asks there the first time, and you sign in from that terminal.

-
7
Check the dot. The dot next to the workspace's name turns green and the page says the agent is connected. Create a task, and the agent picks it up.

claude --name storefront-api --model opus --effort high --autocompact 400k \
--dangerously-load-development-channels server:agentrq-workspace
npx @agentrq/acp-gateway@latest --agent antigravity-acp \
--model gemini-4-hydrogen --effort high
- Connect Claude Code with Machines — enrol, start Claude Code on Opus 5.5 at high effort, answer its prompts in the terminal and run a first task.
- Connect Agents with the ACP Gateway and Machines — enrol, then start Antigravity on Gemini 4 Hydrogen at high effort, or any other ACP agent.
One machine can run agents for several workspaces, each in its own working directory; a
workspace runs one agent at a time. The agent works only while the machine is on and
agentrqd is running, so install the service files above for a machine
you want always available.
A Profile Is a Credential Boundary, Not an Execution Boundary
One machine can be enrolled with several AgentRQ accounts. Each is a "profile", with its own token and its own machine identity, and the panel shows them separately. Multiple agentrqd Profiles on One Machine walks through enrolling a second account, step by step.
This is worth saying plainly because the desktop app's profiles do isolate — separate cookie jars, separate sessions — and it would be reasonable to assume these work the same way. They do not.
What It Can Do, Exactly
The daemon runs exactly two programs, and nothing else:
claude-code and
acp-gateway.
It will not run a shell, and it will not run a command the server sends it. The control
panel asks for a kind — one of those two names — and the
daemon decides what that means from its own configuration. A backend that has been taken
over cannot ask this machine to run /bin/sh, because
there is no message that says "run this".
What it can do, once one of those two is running, is send it keystrokes. That is the feature. An agent at a terminal can do whatever you could do at that terminal.
Turning It Off
agentrqd disable --profile <id>
This deletes that profile's token from the machine. It works without the server's cooperation and takes effect immediately: the machine can no longer authenticate, so no future connection succeeds, whatever the server thinks. It is the thing to reach for if you believe the account has been compromised.
Also remove the machine in the control panel, which revokes it server-side and closes any connection it currently holds. The two are independent on purpose — either one alone is enough to stop that machine working, and you do not need access to the panel to do the local one.
systemctl --user stop agentrqd,
or closing the terminal it runs in) stops new work but leaves the credential on disk.
Seeing What Is Happening on Your Own Machine
agentrqd status
It reports what is running right now: each agent, the folder it is working in, which profile asked for it, and — the part that matters most — whether anybody is attached to its terminal at this moment.
That question is answerable from the machine, by the person sitting at it, without asking the account that might be doing the watching. A machine whose owner cannot find out what is driving it is not a machine anyone should enrol.
The daemon also writes a log line when a viewer attaches to a terminal on this machine and
when they leave. Under systemd:
journalctl --user -u agentrqd -f.
The Audit Trail, and What Is Deliberately Not in It
- An agent being started, and by whom
- An agent being killed
- A browser attaching to a terminal, and detaching
- An update being approved, and to which version
- Keystrokes — not on the server, not on the machine
- Terminal output, which is relayed and forgotten
What somebody types into a terminal is passwords, tokens, and the contents of files; recording it would build the most sensitive log in the system to answer a question nobody asked. That an attach happened, and when, is the fact worth keeping.
Updates
The daemon checks for new releases and tells the control panel when there is one. It never updates itself on its own initiative. Somebody has to approve it, because approving means: stop every agent running on this machine, replace the daemon, and start them again.
Before anything is replaced, the daemon:
- 1 checks the release manifest's signature against a key built into it,
- 2 checks the downloaded file against the checksum in that manifest,
- 3 runs the new binary and confirms it works on this machine,
- 4 writes down what was running, then stops it.
A build with no release key refuses to update itself and says
so; update it by hand. If an update turns out to be bad,
agentrqd rollback puts the previous binary back — it
is kept for exactly that reason.
Where Things Are
| What | Where |
|---|---|
| Config | ~/.config/agentrqd/config.json
(%AppData%\agentrqd on Windows) |
| Tokens | one 0600 file per profile in
.../agentrqd/tokens/ |
| Local status | .../agentrqd/status.json,
what agentrqd status reads |
The config file is not a credential and can safely be copied, backed up or pasted into a bug report. The tokens directory is.
Commands
agentrqd enroll --server <url> --code <code> [--profile <id>]
agentrqd serve [--profile <id>] [--verbose]
agentrqd status
agentrqd disable --profile <id>
agentrqd rollback
agentrqd version