Skip to content

leaningtech/browsercode

Repository files navigation

BrowserCode logo

Discord server Issues Version

Run AI coding CLIs in the browser

A BrowserPod-based solution to embed AI coding CLIs in web applications.

Table of contents

Claude Code running in BrowserCode, scaffolding an Express.js app with a live preview

What is BrowserCode?

BrowserCode is a browser runtime for AI coding CLIs. BrowserCode is a working example of BrowserPod, it includes:

  • Node.js v22 running in the browser via WebAssembly
  • A browser-contained, POSIX-like filesystem
  • Command line tools: bash, git, npm
  • Browser sandbox isolation from the user's operating system
  • Restricted outbound networking
  • Instant previews over URL via BrowserPod's portal function
  • Support for Express.js, Svelte, Next, Nuxt and React (with Wasm overrides)

BrowserCode 0.5.0 is our second beta release. This preview launches with an unmodified version of Claude Code, running completely client-side. Gemini CLI is available as well.

Quickstart

Gemini CLI running in BrowserCode on BrowserPod

  1. Go to browsercode.io
  2. BrowserCode will boot instantly, opening with a quick modal tutorial to guide you
  3. Claude Code will launch instantly
  4. Depending on your log-in option, you may be asked to authenticate your account by copying a code from a separate tab

Breaking BrowserCode

This is BrowserCode beta. Don't be kind to it. Stretch it, bend it, find out what breaks. Here are a few walls you might hit:
  • At launch, Claude is prompted using a custom skill to help it understand that it is running in a custom environment. However, it may first attempt its default behaviour before referencing the file
  • BrowserCode doesn't yet support native binaries, for more information, see the BrowserPod documentation
  • Networking over TCP isn't available
  • For maximum compatbility, please use a Chromium browser. Safari currently isn't supported

Roadmap

CLI Status
Gemini CLI Gemini CLI ✅ Beta open now
Claude Code Claude Code ✅ Beta open now
Codex Codex 🚧 Coming soon
OpenCode OpenCode 🚧 Coming soon

(back to top)