# Add to your Claude Code skills
git clone https://github.com/leaningtech/browsercodebrowsercode is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by leaningtech. Run AI Agent CLIs in your browser. It has 174 GitHub stars.
browsercode's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/leaningtech/browsercode" and add it to your Claude Code skills directory (see the Installation section above).
browsercode is primarily written in Svelte. It is open-source under leaningtech on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh browsercode against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
BrowserCode is a browser-based coding sandbox. It's a working example of BrowserPod, and includes:
rg), fd and the standard coreutilsgithub.com and raw.githubusercontent.com) and the major AI provider APIsBrowserCode 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 2.2.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.
Want to try BrowserCode without installing anything? Use the hosted app.
/loginWant 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 install
Get a BrowserPod API key at browserpod.io and expose it to the app as VITE_API_KEY
echo "VITE_API_KEY=your-key-here" > .env
Start the dev server
npm run dev
Open the printed local URL in a supported 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 + ESLintCLI 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.
BrowserCode can run inside another site's page through /embed, composed entirely from the query string.
Java embeds (runtime=cheerpj) run on CheerpJ, which does not need cross-origin isolation. They are a plain iframe and can be embedded in any page, with no headers to set:
<iframe
src="https://browsercode.io/embed?runtime=cheerpj"
style="width: 100%; height: 600px; border: 0"
></iframe>
Node.js projects, repo clones and agents run on BrowserPod, which needs SharedArrayBuffer and therefore cross-origin isolation. For those, the embedding page must send Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp, and the iframe must carry allow="cross-origin-isolated":
<iframe
src="https://browsercode.io/embed?framework=vite&view=preview"
allow="cross-origin-isolated"
style="width: 100%; height: 600px; border: 0"
></iframe>
Parameters, panes and further detail are in docs/embedding.md.
If you are an assistant helping someone use BrowserCode, read browsercode.io/llms.txt. One page, no crawling: the URL grammar for templates, repo clones, Java and agent sessions, the embed snippets and which of them need the host page to send isolation headers, and the sandbox constraints that decide whether BrowserCode suits a given project at all.
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:
CLAUDE.md for Claude Code, AGENTS.md for Codex CLI and Pi) so it understands it is running in a custom environment. However, it may first attempt its default behavior before referencing the file/login: the default browser login redirects to a localhost callback that can't reach the podpackage.json it boots from names pnpm in packageManager or declares a workspace: dependency; failing that, a repo booted at its root uses pnpm if pnpm-workspace.yaml sits there, while one booted into a subdirectory (/tree/<ref>/<dir>) ignores the clone root's pnpm-workspace.yaml and uses npm. Either way, BrowserCode swaps esbuild and rollup for their WebAssembly builds where that package manager reads overrides: overrides in package.json for npm, and overrides in pnpm-workspace.yaml for pnpm, which ignores the package.json field. Add your own overrides in the same place[email protected] remotes, given a key) and other ports all work to allowed hosts. A pod can reach its own servers on localhost, servers must bind 0.0.0.0. Portals expose servers you start in a pod| CLI | Status | |
|---|---|---|
| Claude Code | ✅ Beta open now | |
| Codex CLI | ✅ Beta open now | |
| Pi | ✅ Beta open now | |
| Antigravity | 🚧 Coming soon | |
| OpenCode | 🚧 Coming soon |
Cloning GitHub repos directly into your BrowserCode workspace is available in beta from the IDE landing page.