Install
git clone https://github.com/leaningtech/browsercodeInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Run AI coding CLIs and frameworks in the browser
BrowserCode is a browser-based playground for fast-prototyping full-stack apps and sharing them instantly. It runs on BrowserPod, a multi-language WebAssembly sandbox (Node.js, Rust, and Python in preview), with no installs, no servers, and no cloud compute.
Table of contents
What is BrowserCode?
BrowserCode is a browser-based coding sandbox. It's a working example of BrowserPod, and includes:
- Node.js v22, Rust and Python (preview) running in the browser via WebAssembly (more runtimes coming)
- A browser-contained, POSIX-like filesystem
- Command line tools: bash, git, npm, pnpm, curl, ripgrep and fd
- Browser sandbox isolation from the user's operating system
- Restricted outbound networking: HTTPS only, to an allowlist that includes the npm registry, Yarn 2+, GitHub (
github.comandraw.githubusercontent.com) and the major AI provider APIs - Instant previews over URL via BrowserPod's portal function
- Support for Express.js, Svelte, Next, Nuxt and React (with Wasm overrides)
BrowserCode started out as a way to run AI coding CLIs entirely client-side. It's since grown into a full IDE: alongside the CLIs, it can boot and preview web frameworks directly in the browser, so you can prototype an agent's output without ever leaving the tab.
BrowserCode 1.3.0 is our latest beta release. It runs a full code editor, development environment, and unmodified versions of Claude Code, Codex CLI and Pi, completely client-side.
Quickstart
Want to try BrowserCode without installing anything? Use the hosted app.
- Go to browsercode.io
- BrowserCode will boot instantly, opening with a quick modal tutorial to guide you
- Pick an agent from the sidebar, or open the IDE playground to boot a framework template
- Claude Code signs in by copying a code from a separate tab; Codex CLI asks for an OpenAI API key, stored in your browser; Pi signs in to the provider of your choice with its own
/login
Make it your own
Want to run your own copy, customize the CLIs, or contribute? Clone the repo and run it locally.
Clone the repository and install dependencies
git clone https://github.com/leaningtech/browsercode.git cd browsercode npm installGet a BrowserPod API key at browserpod.io and expose it to the app as
VITE_API_KEYecho "VITE_API_KEY=your-key-here" > .envStart the dev server
npm run devOpen the printed local URL in a Chromium-based browser
Other useful scripts:
npm run build— build a production bundlenpm run preview— preview the production build locallynpm run check— type-check the projectnpm run lint/npm run format— lint and format with Prettier + ESLint
CLI availability and behavior are configured in src/lib/config/tools.ts — this is the place to start if you want to add or tweak a CLI.
Embedding
BrowserCode can run inside another site's page through /embed, composed entirely from the query string.
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…