> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reason.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Reason

> Reason runs agents that edit code and run commands on your computer and on Reason cloud computers. Pick how you reach it.

> [!NOTE]
>
> Agents: [https://reasonmachines.com/llms.txt](https://reasonmachines.com/llms.txt)

Reason has one model you need before anything else. An agent thinks in the cloud, and its commands run where you point it: on your computer, on a Reason cloud computer, or both in one Session.

* **Session**: the conversation for one task. It has an ID, shows in the Reason app, and you can continue it from any path.
* **Computer**: where commands run. Your own computer runs them after `reason connect`. A Reason cloud computer runs them when you choose cloud.
* **One Session, two computers**: the agent can list your computers and start or continue work on another one, so a single thread can run `pwd` on your Mac and on a cloud computer.

## Three paths

| Path | Use it when | Start here |
| - | - | - |
| Terminal | You want Reason to run a task in a folder on your computer, or in the cloud | [Install the CLI](https://docs.reason.bot/docs/cli.md) |
| Your app | You are building an editor, chat UI or script that starts and follows Sessions | [Choose a path](https://docs.reason.bot/docs/build/choose-a-path.md) |
| An existing agent | Your coding agent (Claude Code, Codex, Zed, T3 Code) should use Reason | [Connect an agent](https://docs.reason.bot/docs/mcp.md) or [Use Reason in your editor (ACP)](https://docs.reason.bot/docs/acp.md) |
| Another agent platform | You are moving agents, memory, skills and routines from Claude Code, Codex, Cursor, Grok Bot or similar | [Migrate to Reason](https://docs.reason.bot/docs/migrate-to-reason.md) |

The Reason API and the CLI both create and continue Sessions. ACP is only the link between an editor and the CLI; no commands run over it.

## Try it in a terminal

Install the CLI, sign in, then run a read-only task in a folder:

```bash theme={null}
curl -fsSL https://reasonmachines.com/install.sh | bash
reason whoami
reason "Explain how authentication works in this folder. Do not change any files."
```

`reason whoami` names the account and Workspace. Pick a Workspace with `reason login --pair CODE` or `--workspace SLUG`.

Check it worked: the command prints the answer and a Session ID, and the Session appears in the Reason app.

## Run on the cloud instead

```bash theme={null}
reason "Run pwd and report the result." --cloud --no-repo
```

The agent runs on a Reason cloud computer and its shell runs there. Add `--repo OWNER/REPO` to start on a GitHub repository. Cloud work on a private repository needs the Reason GitHub App installed on that repository.

## Continue a Session

```bash theme={null}
reason ls
reason send SESSION_ID "Also list the test files."
reason watch SESSION_ID
```

Continue a Session from the app, from the CLI, or from your own editor or API client. Every path reads the same Session.

## Connect GitHub

Connecting GitHub installs the Reason GitHub App on a GitHub account or organization, so Reason can read the repositories you choose and open pull requests.

1. In [Reason](https://reasonmachines.com/customize?tab=plugins\&plugin=github), open **Customize**, then **GitHub**, and choose **Connect GitHub**. GitHub opens in a new tab.
2. On GitHub, pick the account or organization, choose all or only selected repositories, and install. GitHub may first ask you to confirm access with your password, passkey or two-factor code; finish that on the same page. Then approve the authorization step that follows.
3. GitHub returns you to Reason and your repositories appear. To add more later, choose **Add repositories** on the same page.

> [!NOTE]
>
> If GitHub shows a 404 at `github.com/apps/reason-machines/installations`, its confirm-access page expired. Reloading it, or a phone switching to an authenticator app, does this. Nothing was installed. Go back to Reason, choose **Try again** on the notice (or **Connect GitHub**), and finish confirming without leaving the page.

If you are a member but not an owner of a GitHub organization, GitHub sends your install request to the organization's owners. Invite an owner to your Reason workspace; the repositories appear once they approve the request and connect GitHub there.

For what comes next (starting work in a repository, issues, pull requests, checks and merging), see [GitHub](https://docs.reason.bot/docs/github.md).

## Next steps

* [Reason CLI](https://docs.reason.bot/docs/cli.md): every command you need on your computer.
* [Reasons](https://docs.reason.bot/docs/reasons.md), [Loops](https://docs.reason.bot/docs/loops.md), [Memory](https://docs.reason.bot/docs/memory.md) and [Skills](https://docs.reason.bot/docs/skills.md): the agents you keep, their standing work, what they remember and how they work.
* [Slack](https://docs.reason.bot/docs/slack.md): start and continue Sessions from Slack.
* [GitHub](https://docs.reason.bot/docs/github.md): repositories, issues, pull requests, checks and merging.
* [Build on Reason](https://docs.reason.bot/docs/build/choose-a-path.md): ACP, the HTTP API, MCP, and the CLI, and which one to pick.
* [Connect an agent](https://docs.reason.bot/docs/mcp.md): Claude Code, Codex and other MCP clients.
* [Reason Network](https://docs.reason.bot/docs/network.md): let your agents ask each other for help.
* [Add any model](https://docs.reason.bot/docs/add-models.md): provider sign-ins, your own API keys and custom endpoints.
* [Local models](https://docs.reason.bot/docs/local-models.md) and [plans](https://docs.reason.bot/docs/plans.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.