Skip to content

leaningtech/browsercode

Repository files navigation

Gemini CLI running in BrowserCode on BrowserPod

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.1.0 is our first beta release. This preview launches with an unmodified version of Gemini CLI 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 Gemini boots, you'll be prompted to log-in
  4. Depending on your log-in option, you may be asked to authenticate your account by copying a code from a separate tab.

Gemini can take up to 30 seconds to boot. While it boots, it willl hang silently. This is normal for Gemini CLI in any environment.


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, Gemini is prompted using a custom GEMINI.md file 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.
  • Gemini CLI will display a status message indicating there's no sandbox; we've told Gemini it's running in the browser, it doesn't seem to care very much.
  • For maximum compatbility, please use a Chromium browser. Safari currently isn't supported.

Roadmap

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

(back to top)