Running coding agents
Run unmodified coding CLIs in a browser sandbox with no access to your machine.
BrowserCode runs unmodified coding CLIs in a browser MicroVM. The agent has a shell, a filesystem and Node.js, all inside your browser tab. It cannot access your machine, your files, or any host outside BrowserCode's allowlist. You can use it to try an agent without installing it, or to let one work unsupervised on a disposable project.
Agents run in a terminal and are keyboard-driven. Click the terminal to focus it, then type.
Sandbox instructions
Each agent starts with an instructions file that describes the sandbox: native packages do not run and which alternatives to use, how previews work, and which hosts are reachable. The files are in the repository:
An agent may try its default approach before it reads the file. If it installs a native package or contacts a host that is not allowed, ask it to read its instructions file.
One session per agent
Each agent can run in one tab at a time, because two sessions would write to the same files. If you open the same agent in a second tab, a dialog offers to move the session there. Selecting Use here closes the session in the first tab, and anything unsaved there is lost.
Different agents can run side by side, for example Claude Code in one tab and Codex CLI in another.
Signing in
Each agent expects to sign in on a local machine, and each needs a different workaround in the sandbox. Read the page for your agent before you start: Claude Code, Codex CLI or Pi.
Credentials are stored in your browser, not on our servers. Anyone with access to your browser profile can read them, so avoid signing in on a shared computer.
Running servers
Ask the agent to start dev servers in the background. A server running in the foreground blocks the agent's turn until it times out.
Saving the agent's work
The agent's work is stored in your browser. To keep it, download the project as a zip or use Share to save it as a link. Clearing site data deletes the MicroVM, its files and your sign-in.