Connect Claude Code
AgentRQ starts Claude Code for you on a machine of yours — no config file to copy. This guide covers starting it, the CLAUDE.md instructions that shape it, and permission handling.
- Claude Code installed on the machine — see Install Claude Code below
- AgentRQ account at app.agentrq.com
- A workspace with a working directory (Settings → General)
Start It From a Machine
Enrol the computer that runs Claude Code as a machine, and AgentRQ starts Claude Code there for you. A machine starts Claude Code directly, not through the ACP Gateway: agentrqd writes the workspace's config into the working directory itself, starts Claude Code with the task channel on, and shows its live terminal in the browser. You never handle a token.
-
1
Enrol the machine, once. In AgentRQ, open Machines → + Add machine and run the two commands it shows on the computer that should run the agent, as yourself and never as root. A machine serves every workspace in your account. The machines and daemon docs cover what enrolling grants and how to undo it.

-
2
Click Start Claude Code in the workspace. An empty workspace offers it while a machine is online, with "on machine · model · Change" under it: one click starts it. Click Change (or Start an agent, when the button reads that) to choose for yourself. The workspace needs a working directory, set in Settings → General.

-
3
Pick Claude Code in the agent list, then choose the Model (the models the machine's Claude Code reports), Effort (Default to Max) and Auto-compact (100k to 900k, 400k by default), and click Start Claude Code.
-
4
Answer Claude Code in the terminal AgentRQ opens. Pick Yes, I trust this folder the first time it runs in that folder, and confirm the development channel on every start. Then the workspace's dot turns green and tasks reach Claude Code.


claude --name storefront-api --model opus --effort high --autocompact 400k \
--dangerously-load-development-channels server:agentrq-workspace
Claude Code must already be installed on that machine (see below). If it needs signing in, it asks in that terminal the first time, and you sign in from there.
Install Claude Code
Already installed? Skip ahead — run claude --version
to check first.
curl -fsSL https://claude.ai/install.sh | bash
irm https://claude.ai/install.ps1 | iex
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Not sure which Windows shell you're in? Your prompt shows PS C:\
in PowerShell and just C:\ in CMD. Native installs update
themselves automatically in the background; on native Windows,
Git for Windows is
recommended so Claude Code can use its Bash tool (not needed under WSL).
brew install --cask claude-code
brew upgrade claude-code periodically.winget install Anthropic.ClaudeCode
winget upgrade Anthropic.ClaudeCode periodically.Debian, Fedora, RHEL, and Alpine can also install via apt, dnf, or apk — see the official Linux package manager guide.
claude --version should print a
version number followed by (Claude Code).
1 Add CLAUDE.md Instructions
Tell Claude when and how to use AgentRQ tools by adding instructions to your CLAUDE.md. This is the most important step — it shapes
Claude's behavior throughout your session.
## Human-in-the-Loop (AgentRQ)
# At the start of every session:
Call `workspace` with action `get` to load context about this workspace.
# When you need human input, approval, or a decision:
Use `task` with action `create` and assignee `human`. Include:
- A clear title
- Full context in the body (what you've done, what you need)
- Any relevant file snippets as attachments
Then wait for the human's response via the notification channel.
Do NOT proceed past a blocking decision without human approval.
# When you receive a reply:
Read the reply, set the task `completed` (`task` action `updateStatus`), then continue.
# When asked to make irreversible changes (DB, deploys, deletes):
Always ask via `task` action `create` before executing.
Adapt this template to your workflow. The key is being explicit about when Claude should pause and ask vs. when it can proceed
autonomously. If an existing CLAUDE.md names the
older tools, such as createTask or getWorkspace, update it to the action form. The server
still answers those names for clients that call them directly, but no longer lists them,
so Claude does not see them. See the MCP tools reference.
2 The Notification Channel
When you reply to a task in the AgentRQ dashboard, your response is delivered to Claude Code as a notification channel message — Claude's native push mechanism. The message looks like this in Claude's context:
<channel source="agentrq" chat_id="0ZRgCquBZ7R"
ts="2026-03-24T14:30:00Z" user="human">
[Response to task 0ZRgCquBZ7R]
Approved — but use a UUID primary key instead of auto-increment.
Please add an index on expires_at too.
</channel>
Claude reads this channel message, processes your reply, and continues — all within the same session. No interruption, no re-prompting.
The channel only works when Claude Code starts with --dangerously-load-development-channels server:agentrq-workspace. The machine starts it that way for you; confirm the development-channel question in its terminal on every start.
In the dashboard, the reply is an ordinary message on the task. When Claude Code asks a question it sets the task to blocked, and your answer reaches it the same way.
Claude Code can also send permission requests for sensitive operations. These show up as special task types in your dashboard with Allow / Deny / Allow All buttons.
rm -rf dist/3 Verify the Connection
Once the workspace's dot is green, type this quick test in Claude Code's live terminal:
> Call workspace get and tell me what workspace you're connected to.
Then create a test task called "Connection test" with body "Hello from Claude".
Claude: I called workspace get — connected to workspace "my-api-project"
(ID: 0ZPO4WBMZIP). Creating test task now...
Task created ✓ (ID: 0ZRgXXXXXXX). You should see it in your dashboard.
Check your AgentRQ dashboard — the task should appear instantly. Reply to it, and Claude will receive your message via the notification channel.
Troubleshooting
agentrq-workspace entry and start the agent again
from the workspace page..mcp.json with an agentrq-workspace entry from
another workspace or an old token; the daemon keeps an existing entry, so delete it and
start again..mcp.json
entry from another workspace, the machine keeps it and the agent reports there; delete
that entry and start again.