← Hacker News

Show HN: BrowserCode – Run Claude Code in the Browser via WebAssembly

Hacker News · multimillion · May 11, 2026
BrowserCode is a free and open-source web application that enables TUI agents like Claude Code and Gemini CLI to run entirely in the browser using WebAssembly technology. The application executes unmodified command-line tools through BrowserPod, a sandbox supporting Node.js, Python, git, bash, and other utilities, while keeping all data and execution local to the browser with persistence across sessions. Developers can fork and modify BrowserCode to integrate AI agents directly into web applications running client-side.

Detailed Analysis

BrowserCode represents a notable technical achievement in the deployment of AI coding agents, enabling tools like Anthropic's Claude Code and Google's Gemini CLI to run entirely within a web browser without any server-side execution. Built as a free and open-source application by the team behind BrowserPod, the project leverages WebAssembly to instantiate a full Node.js environment, bash shell, Python runtime, and git tooling directly in the browser sandbox. This allows the unmodified Claude Code command-line tool — exactly as it exists in its native environment — to operate client-side, authenticated via a user's Anthropic account or API key, without any of the underlying computation or file data leaving the local machine.

The architecture relies on two key browser APIs for persistence: the Origin Private File System (OPFS) API and IndexedDB, which together allow BrowserCode to maintain a stateful, disk-like environment across sessions. This is technically significant because TUI (text-based user interface) agents like Claude Code are inherently designed for persistent, stateful interaction with a filesystem — a capability historically difficult to replicate within the ephemeral context of a browser tab. By solving this persistence problem at the storage layer, BrowserCode closes the gap between native CLI behavior and browser-based execution in a meaningful way. The project invites forking and integration, positioning BrowserPod as an embeddable runtime layer for developers who want to ship client-side AI agent experiences inside their own web applications.

The privacy implications of this approach are substantial and speak directly to a growing user demand for local-first AI tooling. Because all execution and data remain on the client machine, users are not routing their codebases or prompts through third-party infrastructure beyond the AI provider's own API calls. This model is particularly attractive for developers working in environments with strict data governance requirements, or those who are simply wary of intermediary services handling sensitive source code. The project's transparency as open-source software further reinforces its trustworthiness for security-conscious adopters.

BrowserCode's release fits within a broader trend of "local-first" and "client-side AI" development that has accelerated as large language models have become more capable and their surrounding tooling more mature. Projects across the ecosystem have increasingly pushed inference, orchestration, and now agentic execution closer to the end user, reducing latency and infrastructure dependency. The use of WebAssembly as the enabling layer is particularly telling — WASM has matured from a performance optimization for compute-heavy web apps into a genuine general-purpose runtime capable of hosting complex, multi-tool development environments. The fact that a production-quality agentic coding tool like Claude Code can run unmodified in this environment signals that the WASM ecosystem has crossed a meaningful threshold of compatibility and capability.

As a preview release, BrowserCode is explicitly positioned as experimental, with the team soliciting bug reports and community engagement through GitHub and Discord. The dual-agent support — Claude Code and Gemini CLI at launch, with others signaled — suggests an intent to build a generalized browser-native runtime for the emerging class of agentic developer tools rather than a product tied to any single AI provider. Should the project mature and gain adoption, it could become a meaningful piece of infrastructure for embedding conversational coding agents directly into web-based IDEs, documentation systems, and educational platforms, with zero backend overhead required from the integrating developer.

Read original article →