# Rush docs

Send a request; an agent does the work in its own cloud sandbox, with a computer and a browser, and returns a pull request, a report, files or an answer, beside the full record of how it got there.

Base URL: `https://api.phoenix.so`

## Get started

- [API quickstart](https://getrush.ai/docs/quickstart.md): run your first agent: set a key, start a session, watch it work and read the answer
- [Your first run in the console](https://getrush.ai/docs/start/console.md): Sign in at cloud.getrush.ai, connect GitHub, create a Project and start a run, then watch it work and open the pull request it made.

## Concepts

- [Runs and sessions](https://getrush.ai/docs/concepts/runs-and-sessions.md): A session is one agent run. It moves through a fixed set of statuses, takes follow-ups between turns and keeps its sandbox while it is parked.
- [Projects and secrets](https://getrush.ai/docs/concepts/projects.md): A Project ties a repository, its secrets and its shared connections together inside your org. Sessions in it get all three without naming them.
- [Results and proof](https://getrush.ai/docs/concepts/results-and-proof.md): Every run ends with a record you can check: the answer, the branch and pull request, the files it saved, its transcript and what it used.
- [Watch and steer live](https://getrush.ai/docs/concepts/watch-and-steer.md): Follow a run as it works, send it the next instruction, stop it, or take over its desktop. Every surface reads the same event stream.
- [Isolation, plainly](https://getrush.ai/docs/concepts/isolation.md): Each run gets its own microVM, each org sees only its own resources, and secrets reach a run only in the form you chose. What that means in practice.
- [Models and your access](https://getrush.ai/docs/concepts/models.md): API key and template-agent runs use Rush's models, billed per token; your own runs, in the console or an app you signed in, use your own account.
- [Automations](https://getrush.ai/docs/concepts/automations.md): An automation is a saved prompt in a Project with triggers that say when it runs: a GitHub event, a schedule, a webhook call or a Linear issue change.
- [Saved agents](https://getrush.ai/docs/concepts/saved-agents.md): Save a harness with its model, effort, instructions, skills and connections once, then start every run of it by sending its id as agent.
- [Connections](https://getrush.ai/docs/concepts/connections.md): Sign in to a tool or MCP server once, then name it on any run. Skills and resources come in by URL the same way.
- [Webhooks](https://getrush.ai/docs/concepts/webhooks.md): Give an API key an endpoint and every run it starts posts a signed event there when a turn ends, so you never hold a stream or poll.
- [Usage and billing](https://getrush.ai/docs/concepts/usage-and-billing.md): Rush meters compute while a run is awake and tokens on Rush's models. Every session records its tokens and cost; limits answer with a typed code.
- [Rush MCP server](https://getrush.ai/docs/concepts/mcp-server.md): Hand Rush a task from claude.ai, ChatGPT, Claude Code, Cursor or Codex: connect api.phoenix.so/mcp by signing in or with an API key, then start runs as tool calls.
- [Community agents](https://getrush.ai/docs/concepts/community-agents.md): Companies on Rush share saved agents they run. Add one and it becomes your own agent, running on your own apps, while its instructions stay with its maker.

## Use cases

- [Review every pull request](https://getrush.ai/docs/use-cases/review-pull-requests.md): A review on the PR. Each pull request gets an agent that checks it out in its own sandbox, runs the tests and posts a review with the evidence.
- [Fix a bug from an alert](https://getrush.ai/docs/use-cases/fix-bugs-from-alerts.md): A PR with checks. Your alerting posts to a webhook trigger; an agent reproduces the failure, fixes it and opens a pull request with the checks passing.
- [Run an agent per customer task](https://getrush.ai/docs/use-cases/agent-per-customer-task.md): A typed answer, by webhook. Your backend starts one session per customer request with an API key, and Rush posts the result to your webhook when the turn ends.
- [Produce a report or file, no repo](https://getrush.ai/docs/use-cases/reports-without-a-repo.md): A file you download. Send a request with no repository; the agent works in its own computer and returns a file as one of the session's artifacts.
- [Write the missing tests](https://getrush.ai/docs/use-cases/write-missing-tests.md): A PR with passing checks. A nightly schedule starts an agent that finds untested code, writes the tests and opens a pull request by morning.
- [Investigate an incident](https://getrush.ai/docs/use-cases/investigate-incidents.md): A report with evidence. Hand the agent an incident and read access to its sources; it comes back with a report that cites what it found, and no code change.
- [Turn a Linear label into a PR](https://getrush.ai/docs/use-cases/linear-label-to-pr.md): A PR linked to the issue. Label a Linear issue and an agent picks it up, does the work in the Project's repository and opens a pull request.
- [Upgrade dependencies weekly](https://getrush.ai/docs/use-cases/weekly-dependency-upgrades.md): A PR, or needs_review. Once a week an agent bumps your dependencies, runs the tests and opens a pull request, or stops at needs_review and says why.
- [Draft outreach from your CRM](https://getrush.ai/docs/use-cases/draft-outreach-from-your-crm.md): A sourced draft, approval in Slack. For each prospect, an agent researches the company, saves a sourced first message in your CRM and asks you in Slack to approve it. A person sends it.
- [Hand off a long task](https://getrush.ai/docs/use-cases/hand-off-from-terminal.md): A run you pick up later. Start a long run from your code, walk away, and pick it up where it left off with a follow-up or from the console.
- [Steer a run as a team](https://getrush.ai/docs/use-cases/steer-a-run-as-a-team.md): One run, many hands. A teammate starts a run; everyone in the org can read it as it works, and its starter or an org admin steers it with follow-ups or by taking control of its browser.

## Learn

- [Your first run from code](https://getrush.ai/docs/learn/first-api-run.md): Create an API key, start a session with one request, follow it live with curl, read its answer and send a follow-up into the same sandbox.
- [Act on the result with a webhook](https://getrush.ai/docs/learn/act-on-the-result.md): Point your key at an endpoint, verify each signed POST, and handle every finished turn exactly once, even when a delivery is retried.
- [Give a run files, skills and connections](https://getrush.ai/docs/learn/files-skills-connections.md): Start a run with files in its sandbox, skills loaded from a URL or an upload, the tools it may call and the repository or issue it works from.
- [Run a saved agent from code](https://getrush.ai/docs/learn/saved-agents-from-code.md): Save a harness with its model, instructions, skills and connections once, then start each run with its id and a task.
- [Work that starts itself](https://getrush.ai/docs/learn/work-that-starts-itself.md): Turn a prompt into a Project automation that runs on a GitHub event, a Linear issue, a schedule or a webhook, and read what each run did.
- [Steer a run as a team](https://getrush.ai/docs/learn/steer-a-run-as-a-team.md): Invite teammates to your org, see every run in a Project with who started it, queue follow-ups mid-turn and take control of a run's browser.

## Reference

- [API reference](https://getrush.ai/docs/api.md): every public operation
- [Error codes](https://getrush.ai/docs/api/errors.md)
