| title | Quickstart |
|---|---|
| description | From an empty org to a working environment |
This page takes you from nothing to an environment for a pull request, then connects a coding agent so you can drive environments from any branch. It covers the one-time setup for an org and the per-repo setup.
- You are a member of a GitHub org that uses Rainbow Machine. Access follows org membership: there is no separate account or API key.
- To add a repo or set secrets, you are an owner of that org. Day-to-day work needs no owner role.
- The repo has a dev stack that runs on Linux and a way to seed its data. Most web apps qualify.
If it does not, the dashboard offers to generate one. That runs a discovery agent against the repo and opens a pull request with a draft recipe. Nothing changes until you merge that PR. Review it the way you would review any contributor's PR: the draft is a starting point, and you own the file from then on.
If the build fails, the status reports failure and the comment says which step failed and why.
The dashboard's MCP page for your org shows the MCP URL and a ready-made snippet for Claude Code, Cursor, and VS Code. For Claude Code the snippet is:
claude mcp add --transport http rainbow <your org's MCP URL>Then run /mcp inside Claude Code, pick rainbow, and choose Authenticate. A browser opens on rainbowmachine.ai; sign in with GitHub and approve. Tokens last 7 days and refresh automatically for 60 days, so you rarely see that screen again.
After you connect, ask in plain language. "Start an environment for my branch" calls create_env. "Try that fix in a fork" calls fork_env. The full tool list is in Tools.
No pull request is required at any step:
- Push your branch to origin.
- Ask your agent for an environment for it, or open Environments on the dashboard. The URL comes back in the tool result.
- Open the URL. The environment runs the dev stack, so changes made inside it hot-reload.
- Push again and ask again with the same name. The environment updates in place at the same URL.
- To discard changed data, call
reset_db. It restores the seeded database at the same URL in under a second.
- Your environment: what is in it, how to find it, what the states mean.
- Manage your repo: secrets, outbound access, and what a recipe change costs.