Browser sandboxes
A Browser sandbox runs Claude Code next to a real Chromium browser on the sandbox’s own screen. Claude Code gets browser tools (open pages, click, type, read the page, take screenshots), so you can ask it to test your web app, fill a form or collect information from sites. You watch it work live, and take over the mouse and keyboard whenever you want: to sign in to a site, solve a step yourself, or show it what to do.
Watch and take over
Section titled “Watch and take over”Open the sandbox’s Desktop tab. You watch by default; Take control gives you the mouse and keyboard, and Give back control returns to watching. Several people can watch at once. While someone watches, the sandbox stays awake.
The screen is streamed through Stillbox, signed in as you: the sandbox opens no port to the internet.
Record saves the screen as a video in the sandbox’s ~/recordings folder (10 frames a second, up to an hour);
download it from the Files tab. From the API: POST /v1/sandboxes/{id}/desktop/recording with {"recording": true},
then false.
Use the browser from your own code
Section titled “Use the browser from your own code”Programs in the sandbox can drive the same browser with Playwright or Puppeteer over the DevTools protocol at
http://127.0.0.1:9222. Playwright is installed:
const { chromium } = require("playwright"); // NODE_PATH=/usr/local/lib/node_modulesconst browser = await chromium.connectOverCDP("http://127.0.0.1:9222");const page = browser.contexts()[0].pages()[0];await page.goto("https://example.com");The browser keeps its profile (sign-ins, cookies, history) on the sandbox’s disk, and when the sandbox sleeps and wakes, the open pages are still there.
Good to know
Section titled “Good to know”- Give a browser sandbox at least 2 GB of memory; Medium (4 GB) is the default.
- The browser follows the sandbox’s internet access rules.
- Sites you sign in to in the browser stay signed in on the sandbox’s disk. A checkpoint you share with another organization leaves the browser’s profile out, so your sign-ins stay yours.