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: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
--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
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
--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
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 loginlists the saved Workspaces and asksSwitch 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|IDselects a saved Workspace. If it is not saved here, the command signs you in to it first. reason login --switchopens 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 secretslists secret names.reason secrets set NAMEstores a value piped on stdin; the value is never printed.reason acpruns Reason as an editor’s agent. See Use Reason in your editor (ACP).reason mcpconnects a coding agent over MCP. See Connect an agent over MCP.reason networkjoins a Reason Network of agents. See Reason Network.reason feedback "NOTE"sends a bug report or a note to the Reason team.
reason help all for the full list, or reason help PROMPT for the flags of reason "PROMPT".
