The command line
rxr is Reactor from a terminal. You write a loop in a file, save it as a draft, try it, test
it, publish it and run it, with no page open. An AI agent that works in a terminal can do the
same: every command has an output made for a program.
rxr works in your account as you, and only as far as your role allows. It reaches plutonium.io
through the same server an AI tool connects to (Connect an AI tool),
so the two can do the same things.
Install
curl -fsSL https://plutonium.io/install.sh | sh
This puts one file, rxr, in ~/.local/bin. It runs on macOS and Linux, on arm64 and x86-64,
and it needs nothing else installed. The installer checks the download against a SHA-256 it
carries, and installs nothing when they differ. Set RXR_INSTALL_DIR to install somewhere else.
Sign in
rxr login
rxr opens plutonium.io in your browser. Sign in, and a page asks whether to connect rxr, with
what it could do. Press Allow, and the terminal says it is connected. You paste no key.
When the terminal is on another machine than your browser, run rxr login --no-browser: open
the address it prints, press Allow, and paste the address the browser ends on.
Settings lists the connection under Connected AI tools, as “rxr on” and the machine’s
name. Disconnect there ends it at once. rxr logout forgets the sign-in on one machine.
Your first loop
rxr new support_desk
rxr push support_desk.loop.yml
rxr run support_desk "Where is my order?" --draft
rxr publish support_desk
rxr run support_desk "Where is my order?"
rxr newwritessupport_desk.loop.yml, a small loop that saves as it is. Open the file and change its name, its description and itsentry, the instruction the loop follows. Building a Loop explains every key.rxr pushsaves the file as the loop’s draft. A draft serves nobody. When the document has a problem, the answer names each one and where it is.rxr run --draftruns the draft as you, and prints what the run does and then its reply. Change the file, push, and run again until it does what you want.rxr publishmakes the draft the version that runs use. It asks you first.
rxr chat support_desk --draft is a conversation: each line you type is your next message.
With no command at all, rxr lists your loops to choose from.
To change a loop you have, rxr pull support_desk writes its document to a file, and says which
version number the changed copy must carry.
Start from a sentence
rxr new --describe "Answer questions about our return policy, from our help pages"
LoopAssistant, the assistant on the console, drafts the loop. It asks what it needs to know, one
question at a time, and then shows what it proposes: the loop’s name, what it may do, and the
most one run may cost. When you say yes, rxr writes the draft to a file, as rxr new does.
Nothing is saved before you say yes, and this command publishes nothing. The conversation with LoopAssistant is a run, and costs what a run costs.
Work on a loop
rxr dev support_desk.loop.yml
rxr dev is one terminal for the whole edit loop. Edit the file in your own editor and save it.
Then type a message in the terminal: rxr first saves the changed file as the draft, and then
sends your message to that draft. You never run push by hand, and you never talk to an old
draft by mistake.
- When the file has a problem,
rxrprints each one and where it is, and holds your message until a save succeeds. - A saved change starts the conversation over, because the loop is now a different one.
- Enter alone saves.
/testruns the test cases,/publishpublishes,/quitleaves.
Start a run when something happens on your machine
rxr run can stay running and start a run for each event:
rxr run review "Review what changed." --on-change src
rxr run digest "Write the digest." --every 30m
Triggers and Schedules has the details, and the lines for cron, a git hook and a pipe.
Test cases
A loop document can declare test cases: example conversations that must pass before a version publishes (Testing a Loop).
rxr test support_desk
This runs each case against the draft and prints a verdict for each, with the reason when one
fails. Each case is a run that costs money, so rxr asks before it starts them. A case run acts
on nothing live.
Runs
| Command | What it does |
|---|---|
rxr run <loop> "<message>" | Starts a run and follows it to its reply. --draft runs the draft. |
rxr say <run> "<message>" | Sends your next message to the same run. |
rxr watch <run> | Follows a run that is working. |
rxr show <run> --events | Reads a run now, with each thing it did. |
rxr approve <run> <approval> | Allows a step the run waits for. --decline refuses it. |
rxr stop <run> | Asks a run to stop. |
rxr runs | Lists recent runs. |
When a run asks you a question, rxr shows it, with its choices under numbers, and sends what
you answer. When a run waits for your approval, rxr shows what it asks and waits for your yes
or no. A run costs what any run costs, wherever it was started.
For an AI agent
An agent that drives rxr reads rxr guide: the whole of this page for a program, with the
order of the commands and what each exit status means.
--jsonon any command prints one JSON document on standard output, and nothing else.- No question is asked when there is no terminal. A step that publishes, or that spends
money on test cases, then needs
--yes: the agent asks you, and passes it when you agree. - A run’s own question comes back as
question, with itspromptandoptions. The agent asks you, and sends your answer withrxr say. - The exit status says what happened, so a program need not read sentences:
| Status | Meaning |
|---|---|
| 0 | Done. |
| 1 | plutonium.io refused the request. The message says why, and names the fix. |
| 2 | The command line is wrong, or --yes is missing. |
| 3 | Not signed in. |
| 4 | A run waits for an approval. |
| 5 | A run ended without success, or a test case failed. |
| 6 | plutonium.io could not be reached. |
| 7 | The wait ran out and the run is still working. |
Let a loop use this machine
A loop can read a file or run a command on your own machine, and only what a file there allows:
rxr host init # writes rxr.host.yml, with every key explained
rxr host check # says what each tool name would do; runs nothing
rxr serve # answers the calls, and starts the file's triggers, until you stop it
rxr run, rxr chat and rxr dev answer the calls of the run they follow, when the
directory holds an rxr.host.yml. Tools on Your Own Machine has
the whole of it.
Add the server to an AI tool
An AI tool that speaks MCP needs no rxr: it connects to the same server
(Connect an AI tool). rxr can add the server for you:
rxr mcp add claude
rxr mcp add cursor
rxr mcp add claude runs Claude Code’s own claude mcp add. rxr mcp add cursor writes the
server into .cursor/mcp.json in this directory, and keeps every server the file lists. With
--global, each adds it for all your projects. The tool then signs in itself, through the same
page rxr login opens. rxr mcp alone prints the lines, to add it by hand to any other tool.