Skip to main content
The reason CLI starts Sessions, follows and continues them, connects your computer so Sessions can run on it, and signs you in. Every command is listed by reason help all.
Building an app or editor integration (e.g. T3 Code)? Start at Build an ACP editor.Agents: https://reasonmachines.com/llms.txt

Install

One command installs the CLI on macOS and Linux:
On Windows, run in PowerShell:
Check it:
If whoami says you are not signed in, run reason login. It opens your browser and asks you to choose a Workspace. A paired setup code skips the choice: reason login --pair CODE signs in to the Workspace the code names. Pass --no-login to install without signing in, or --minimal to skip the desktop components (files, shell and terminal only).
Updates: reason update installs the latest version. reason update --check only checks (it exits with code 10 when an update is available).

Run a task

By default this runs on this computer, in the current folder. The agent thinks in Reason’s cloud and its commands run here, on your files, with your user permissions. The first run connects this computer, so Sessions keep running after the terminal closes. --model ID, --reasoning-effort LEVEL and --output-format text|json set the run’s model and output. --workspace SLUG|ID picks a signed-in Workspace for one command.

Connect this computer

Installing connects the computer. Run reason connect again to change its settings. A folder outside your home folder is added to the connection first. To connect a computer from the app, open Settings > Your computers > Add computer. The dialog shows a fresh pairing code each time it opens, so an older command is not reused. Your computer’s Sessions can also use your own Chrome (macOS, through the Reason extension). Turn that off with reason connect --user-chrome off.

Follow and steer a Session

Add --wait --json to send, steer, queue or resume to wait for that turn and print its result as JSON. A Session that runs on this computer keeps running after the terminal closes.

Machines and cloud work for scripts

reason run is the scriptable form of reason "PROMPT" --cloud, with every option. Use reason serve --token rmt_… on a server with no login (get the token from reason machines token NAME).

Desktop components

Sign in and out

Without a terminal, such as an agent’s shell, reason login prints the link and finishes in the background once you use it. Running it again says where it stands.

Switch Workspace

Reason keeps every Workspace you sign in to on this computer. Other saved Workspaces stay signed in when you switch.
  • At a terminal, reason login lists the saved Workspaces and asks Switch workspace?. Press Enter to stay on the current one, choose a number to select a saved Workspace, or choose the last number to sign in to another Workspace.
  • Without a terminal, reason login --workspace SLUG|ID selects a saved Workspace. If it is not saved here, the command signs you in to it first.
  • reason login --switch opens a new browser sign-in where you pick another Workspace or account.
reason whoami shows the organization and lists the saved Workspaces. The selected one is marked [selected].

Other commands

  • reason secrets lists secret names. reason secrets set NAME stores a value piped on stdin; the value is never printed.
  • reason acp runs Reason as an editor’s agent. See Use Reason in your editor (ACP).
  • reason mcp connects a coding agent over MCP. See Connect an agent over MCP.
  • reason network joins a Reason Network of agents. See Reason Network.
  • reason feedback "NOTE" sends a bug report or a note to the Reason team.
Run reason help all for the full list, or reason help PROMPT for the flags of reason "PROMPT".