BrowserPod 3.0 runs Rust BrowserPod 3.0 runs unmodified Rust programs in the browser Announcement
Using a coding agent? Not sure where to start? Talk to us
Sign up for Edge Get an Edge API key, with 1,000 free hours Contact us Talk to the team

The AI agent sandbox in the browser tab

BrowserPod is a microVM that runs in the browser. Give agents a Linux-like environment on the user's device, with Node.js, Rust, git, bash and npm, and nothing to provision.

Why agents belong in the browser

Agents write code, install packages and run commands, and that work needs somewhere safe to happen, close to the person using your product.

BrowserPod moves that work into the user's tab. The agent's tools and output run inside the browser's sandbox, on the device of the person using your product, with the real Node.js, Rust, git and bash. Compute costs you nothing, and there's no pool to run out of.

Agents can adopt BrowserPod on their own, too. The library installs from npm and a pod boots without an account or a key, so an agent can add it to a project like any other dependency. When the work needs npm, GitHub or a model's API, BrowserPod Edge connects the pod.

What you need to know

AI provider APIs through Edge

Edge's default allowlist includes the major AI provider APIs, alongside the npm and Yarn registries and GitHub.

What people build

01

Coding agents in the browser

Claude Code, Codex CLI, Gemini CLI and Pi run unmodified in a tab, inside your product.

02

Run what the model writes

Execute generated scripts and programs on the user's device and stream the output back.

03

Agents that bring their own sandbox

An agent installs BrowserPod from npm and boots pods as it needs them, with no account.

04

Previews of agent-built apps

When the agent starts a dev server, Portals turn it into a URL the user can open.

What agents get

Everything an agent needs to write, install, build and run, inside a boundary built to contain it.

From prompt to running code

  1. Install

    Add the npm package to your app, or let your agent install it. No key and no account.

  2. Boot a pod

    One call starts a Linux-like environment on the user's device.

  3. Run what the agent writes

    Write files into the pod and run them with node, bash or a Rust binary.

  4. Connect with Edge

    When the agent needs npm, GitHub or an AI provider's API, add BrowserPod Edge.

Run the agent's code

Write what the agent produced into the pod, then run it. The output streams to the terminal.

app.js
import { BrowserPod } from "@leaningtech/browserpod";

const pod = await BrowserPod.boot();
const terminal = await pod.createDefaultTerminal(document.querySelector("#console"));

const file = await pod.createFile("/home/user/task.js", "utf-8");
await file.write(agentOutput);
await file.close();

await pod.run("node", ["task.js"], { terminal, cwd: "/home/user" });

Questions

Can I run Claude Code in a pod?

Yes. Claude Code, Codex CLI, Gemini CLI and Pi run unmodified. Their API calls go through BrowserPod Edge, whose allowlist includes the major AI providers.

Can an agent use BrowserPod without an account?

Yes. The library is free for any use, and a pod boots without a key.

Can I see an agent running in a pod?

Yes. BrowserCode, our open playground, runs Claude Code, Codex CLI and Pi in the browser, with no server behind them.

What does it cost to run agents for a million users?

Nothing for compute, which runs on each user's device. Only pods connected through BrowserPod Edge are metered, per connected pod-hour.

Can we self-host BrowserPod?

Yes. Enterprise covers self-hosting the runtime and the network stack, vendoring it into your build and redistributing it in your product.

Stay informed with BrowserPod news

BrowserCode: a browser-based coding playground, powered by WebAssemblyBrowserCode is a free, open source, fully client-side coding playground. Open a tab, pick a template, clone a repo or pick an agent and start building. No account, no installs, no servers, no setup. Ana GabySoftware Engineer @ Leaning TechnologiesBeyond WASI: Running any Rust application in the browser with BrowserPod 3.0BrowserPod can now run real Rust programs in the browser, compiled from unmodified source with stock rustc and cargo. Yuri IozzelliSenior Software Engineer @ Leaning TechnologiesA Linux-like kernel in a browser tab - deep dive in the BrowserPod architectureHow the BrowserPod kernel supports running many Linux applications concurrently in the browser using WebAssembly. Alessandro PignottiCTO @ Leaning TechnologiesBrowserPod 2.0: in-browser WebAssembly sandboxes. Run git, bash, node, python...BrowserPod 2.0 ships with a real bash shell, git, and core Linux utilities. Yuri IozzelliSenior Software Engineer @ Leaning TechnologiesBrowserPod: universal in-browser sandbox powered by Wasm (starting with Node.js)Stefano De Rossi, Alessandro PignottiCEO @ Leaning TechnologiesBrowserPod: WebAssembly in-browser code sandboxes for Node, Python, and RailsBrowserPod Beta is live: zero latency in-browser code sandboxes in WebAssembly for Node, Python and Rails. Alessandro Pignotti, Stefano De RossiCTO @ Leaning TechnologiesBrowserPod: In-browser full-stack environments for IDEs and Agents via WasmBrowserPod is a WebAssembly-based, client-side container that brings full-stack dev environments to the browser, ideal for web IDEs, docs, and AI agents.Alessandro Pignotti, Stefano De RossiCTO @ Leaning Technologies