Rig gives each coding agent a Linux desktop in the cloud with your code, a running dev server, tests and a signed-in Chrome, so your laptop stays fast and you can run many agents at once.
Setup · Logins · Repos · Saved desktops · Computer use · Quick start · Manage · Security · FAQ · Docs
Claude Code, Cursor or Codex keeps editing code on your laptop. The heavy work runs in its cloud desktop, which sleeps when nobody uses it and wakes in about two seconds.
One coding agent barely uses your laptop. What freezes it is everything around the agent: a dev server per branch, a Chrome for checking the UI, and test runs. Two or three tasks in, a 16 to 24 GB laptop starts swapping.
Rig moves that work into one cloud desktop per branch. Your laptop runs only the agents.
Stills from the demo video. Every command in it ran for real on a real cloud desktop.
Setup takes about 20 minutes, most of it waiting for the image to build. You need Bun 1.2+ and an E2B account. The full walkthrough is in the setup guide.
npm install -g @shadowwalker2014/rig # or: bun add -g @shadowwalker2014/rig rig help # every command; `rig help ` for one 2. Add your E2B key
rig login # macOS: the Keychain asks for the key, so it never shows on screen Not on a Mac? Copy .env.example to ~/.config/rig/.env, run chmod 600 on it, and set RIG_E2B_API_KEY.
rig cookies push # your browser's logins, except banking and payments For command-line tools, sign in inside a cloud desktop, then save it:
rig new # an empty cloud desktop; prints its id rig desktop # open the link; sign in to Google, `gh auth login`, `vercel login`… rig save # every new cloud desktop now starts signed in rig saved # your saved desktops; * is the one new boxes start from Keep 1Password signed out in a desktop you save. A saved desktop is stored with E2B, and a signed-in 1Password in it would put your vault session there too.
rig skill install # Claude Code 6. Check everything
rig doctor # every line should start with ✓ Bring your logins from your browser Sign in to anything in the browser you already use, then copy those logins into your cloud desktops. Run it again whenever you sign in to something new.
See what is there first. Neither command reads a cookie value or asks for access:
rig cookies browsers # Chrome, Edge, Brave, Arc, Comet, Chromium, Vivaldi, Opera, Firefox, Safari rig cookies sites --from chrome # each site's cookie count, and which ones stay out by default How it stays safe:
Some sites refuse a login copied from another computer, and Google accounts do. For those, sign in once inside the cloud desktop with rig desktop, then run rig save. Details are in docs/cookies.md.
cd my-repo rig up # the first time, it works out how the repo runs and asks about env files The first rig up in a repo runs rig init. It detects the package manager, the dev command and its port, and asks before copying gitignored env files like .env.local into the box. The answers go in a small rig.json, and rig status shows the settings in use. If the box can't read a private repo, rig up stops before anything slow and prints the exact fix. Details are in using Rig in a repo.
{ "setup": "bun install", "dev": "bun run dev", "port": 3000, "copy": [".env.local"], "submodules": true } Every task
cd my-repo rig up # this branch's cloud desktop, with the dev server running rig sync # after editing locally rig exec -- bun test # any command, in its copy of the repo rig exec -- 'bunx tsc --noEmit && bun run lint' rig browser -- open http://localhost:3000 # drive its signed-in Chrome rig browser -- snapshot -i # the page's buttons and fields, for an agent rig shot # screenshot to a local file rig port 3000 # open its app at http://localhost:3000 on your laptop rig logs # the dev server's output Running parallel agents on one branch? rig up --new gives each its own cloud desktop. Pass -b to the other commands.
rig desktop # or just `rig desktop` inside a repo Rig prints a private link. Open it in any browser tab to see and control the cloud desktop's screen: finish a login, type a 2FA code, or watch the agent work.
Set up a cloud desktop once, sign in and install what you need, then save it. Every new cloud desktop starts as a copy of your default saved desktop: its files, its logins and its already-running Chrome.
Rig reminds you to save. Closing rig desktop on a clean box prints the rig save command, and rig doctor flags a missing default.
Save a clean cloud desktop made with rig new. Rig refuses to save one that ran a repo's code, because that code could have planted something that would spread to every cloud desktop started from it.
Your agent can use the whole cloud desktop, not only its Chrome. It can take a screenshot, click, type, press keys, scroll and drag. These are the same actions as Claude's computer-use tool, for things outside a web page: a terminal window, a system dialog, a browser extension or a file picker.
rig screen # screenshot the desktop; prints the file path rig click 640 88 # click at a point in that screenshot rig type "hello" # type into whatever has focus rig key ctrl+l # press keys: Enter, Tab, ctrl+shift+t, cmd+a… rig zoom 0 0 400 200 # a 2x close-up, for small text For Claude Code, add Rig as an MCP server. Claude then gets computer, browser, shell and boxes tools and sees screenshots directly as images:
claude mcp add rig -- rig mcp Use rig browser for anything inside a web page. It reads the page's structure, so it is faster and more reliable than clicking pixels. More in computer use.
Rig ships with an agent skill. It tells your coding agent to run dev servers, tests and browser checks in its cloud desktop instead of on your laptop, and how to hand the screen to you for a login.
rig skill install # Claude Code npx skills add ShadowWalker2014/rig # Claude Code, Cursor, Codex, opencode and more rig guide # the same instructions, for any other agent's AGENTS.md Every command also explains itself: rig help .
Paste this into a fresh Claude Code (or any agent) session, inside the repo you want to work on:
Use Rig (https://github.com/ShadowWalker2014/rig) to run this repo in a cloud desktop instead of on my laptop. Keep editing code locally; run the heavy work in the cloud. 1. Run `rig guide` and follow it. Run `rig help ` whenever you are unsure. 2. Start this branch's cloud desktop with `rig up`. The first time in this repo it runs `rig init`. Ask me before copying any env file. 3. After every edit, run `rig sync`. Run tests with `rig exec -- `. 4. Check the UI with `rig browser -- open http://localhost: `, `rig browser -- snapshot -i` and `rig shot`. Read logs with `rig logs`. 5. If a site needs a login or a 2FA code, run `rig desktop` and give me the link. If a site rejects the cloud login, ask me to sign in to Chrome on my laptop, then run `rig cookies push --site `. 6. For anything outside a web page, use `rig screen`, `rig click`, `rig type` and `rig key`. 7. Never run `rig save`, `rig kill` or `rig cookies push --all` without asking me first. 8. When you finish, run `rig pause`. The same instructions ship with Rig: rig skill install adds them as a Claude Code skill, and rig guide prints them.
rig ls # every cloud desktop: state, repo, branch, last used rig ls --state running # what is costing money right now rig pause --all # stop the meter on everything rig prune # preview: paused cloud desktops unused for 7 days rig prune --merged --yes # delete those, plus ones whose branch is gone rig kill --repo acme/web --state paused --yes rig doctor # key, image, default desktop and settings Clean-up is automatic. Once a day, rig up and rig new delete Rig's own boxes that have been paused and unused for 7 days. Set RIG_AUTO_PRUNE_DAYS to change that, or 0 to turn it off. Filters stay fast. --state, --older-than 7d, --repo, --branch, --here and --all run on E2B's side, so they stay fast with thousands of cloud desktops. A filtered delete previews first and only deletes with --yes. Rig is free. You pay E2B for running time: about $0.46 an hour for 4 CPUs / 16 GB at E2B's rates. Paused cloud desktops cost nothing. More in cleanup and scale. What's inside a cloud desktop Ubuntu 24.04 with an Xfce desktop and Google Chrome, plus:
Add your own tools with a script at ~/.config/rig/image.sh. See the box image.
Set these in your shell or in ~/.config/rig/.env (see .env.example):
Full details are in docs/security.md. Found a vulnerability? Please open a private security advisory.
Rig is open-source cloud desktops for AI agents. Each git branch gets a Linux desktop in the cloud with a dev server, tests and a signed-in Chrome, so AI agents can work in parallel without overloading your laptop. The agent still runs locally; Rig moves only the heavy processes.
Yes. Any agent that can run shell commands can use Rig. rig skill install adds a Claude Code skill, npx skills add ShadowWalker2014/rig installs it for other agents, and rig guide prints the instructions for anything else.
Run rig cookies push. It copies your browser's logins, except banking and payment sites, into your default desktop, so every new cloud desktop starts signed in. Use --site to pick sites or --all to include everything.
Claude Code on the web runs the whole agent in the cloud and starts every session without your logins. Codespaces loses running processes when it stops. Rig keeps the agent on your laptop, keeps each cloud desktop's memory while paused, starts every one already signed in, and lets you take over the browser.
Rig is free and MIT licensed. You pay E2B for running time: about $0.46 an hour for a 4 CPU / 16 GB cloud desktop at E2B's published rates. Paused ones cost nothing.
Yes. It sees Host: localhost: , so dev-origin checks and OAuth redirect callbacks behave as on a laptop. Providers that POST back from their own site (like Sign in with Apple's form_post) are blocked by Rig's cross-site protection; finish those through rig desktop.
The CLI runs anywhere Bun runs; use ~/.config/rig/.env for your key on Linux. Copying browser logins works on macOS. Windows is untested.
E2B combines what Rig needs: pausing with memory kept, waking on traffic, snapshots of a running machine that start many new ones, private ports, and machines big enough for a real dev server.




