Skip to content

leaningtech/browsercode

Repository files navigation

BrowserCode logo

Discord server Issues Version

Run AI coding CLIs in the browser

The BrowserPod runtime to build projects that embed agentic AI CLIs.

Table of contents

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 (with Gemini available too) running completely client-side.

Quickstart

Gemini CLI running in BrowserCode on BrowserPod

  1. Go to browsercode.io
  2. BrowserCode will boot instantly, opening with a quick tutorial.
  3. When Claude Code
  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's first 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 Beta open now
Claude Code Beta open now
Codex Coming soon
OpenCode Coming soon

(back to top)