# Show HN: WebBrain – Open-source browser agent for local LLMs (Ollama, llama.cpp)

> Source: <https://github.com/webbrain-one/webbrain>
> Published: 2026-11-29 02:52:45+00:00

**Key takeaway:** WebBrain connects to any OpenAI-compatible local server — llama.cpp on port 8080, Ollama on :11434/v1, vLLM on :8000/v1, SGLang on :30000 — so the agent runs on a self-hosted model with no API key.

Open-source AI browser agent for chatting with pages, automating tasks, and running multi-step workflows with your choice of LLM.

[English](https://github.com/webbrain-one/webbrain/blob/main/README.md) ·
  [हिन्दी](https://github.com/webbrain-one/webbrain/blob/main/README.hi.md) ·
  [中文](https://github.com/webbrain-one/webbrain/blob/main/README.zh-CN.md) ·
  [Français](https://github.com/webbrain-one/webbrain/blob/main/README.fr.md) ·
  [日本語](https://github.com/webbrain-one/webbrain/blob/main/README.ja.md) ·
  [Türkçe](https://github.com/webbrain-one/webbrain/blob/main/README.tr.md) ·
  [Docs](https://github.com/webbrain-one/webbrain/blob/main/docs) ·
  [Website](https://webbrain.one) ·
  [Discord](https://discord.gg/cgC325ssfw) ·
  [GPL-3.0-or-later](https://github.com/webbrain-one/webbrain/blob/main/LICENSE)

WebBrain is a web browser extension that puts an AI agent in a side panel next to your tabs. Ask it about the page you're on, or hand it a task and let it click, type, and navigate its way through. It runs on the model you choose — a local llama.cpp or Ollama server, a frontier cloud API, or the managed default that needs no setup at all.

Install from the [Chrome Web Store](https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb),
[Firefox Add-ons](https://addons.mozilla.org/firefox/addon/webbrain/), or
[Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/dfbioajafcijomhljabppcelecgdgfeo).

## **Or load it from source**

```
git clone --filter=blob:none https://github.com/webbrain-one/webbrain.git
```

**Chrome** — open `chrome://extensions/`, enable **Developer mode** (top
right), click **Load unpacked**, and select the `webbrain/src/chrome` folder.
For an isolated copy that won't pick up stray working-tree files, run
`npm run build:chrome` first and load `webbrain/build/chrome` instead.

**Firefox** — open `about:debugging#/runtime/this-firefox`, click **Load
Temporary Add-on**, and select `src/firefox/manifest.json` (or
`build/firefox/manifest.json` after `npm run build:firefox`). Temporary add-ons
are removed when Firefox restarts; permanent installation requires signing via
[addons.mozilla.org](https://addons.mozilla.org).

Click the WebBrain icon to open the side panel, then type something like:

- "Summarize this page"
- "Find all links about pricing"
- "Fill in the search box with 'AI agents' and click Search"
- "Navigate to github.com and find trending repositories"

Three modes control what the agent is allowed to do:

| Mode | What it can do | 
|---|---|
| **Ask** | Read-only. Reads the page, answers questions, fetches URLs. | 
| **Act** | Clicks, types, navigates, uploads, downloads, fills forms. | 
| **Dev** | Adds page source, styles, console, network, and reversible page edits. | 

WebBrain picks the mode for each message: it stays in Ask unless your message
asks it to do something in the browser. Start a message with `/ask`, `/act` or
`/dev` to choose the mode yourself.

**WebBrain Compass 1.0** is the default and needs no API key or local setup.

**Local models** need no API key either. Point WebBrain at any OpenAI-compatible
server:

```
llama-server -m your-model.gguf --port 8080          # llama.cpp
ollama serve                                          # Ollama  → :11434/v1
vllm serve your-model --port 8000                     # vLLM    → :8000/v1
python -m sglang.launch_server --model-path your-model --port 30000
```

LM Studio (`:1234/v1`), Osaurus (`:1337/v1`), Jan (`:1337/v1`), LocalAI (`:8080/v1`), and GPT4All
(`:4891/v1`) work the same way. **WebBrain Companion** is our separate desktop
app for local models and supported account subscriptions. [Download it for
Windows, macOS, or Linux](https://github.com/webbrain-one/webbrain/releases/tag/systray-v0.2.1),
then choose the **WebBrain Companion** provider card, click **Load Models**,
select a model, and test the connection. The local endpoint defaults to
`http://127.0.0.1:8327/v1` and needs no API key on this computer. See the
[Companion setup](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#webbrain-companion).
A generic **Local OpenAI-compatible Proxy** card remains available for other
OpenAI-compatible gateways.
**Unsloth Studio (Local)** uses the same OpenAI-compatible path with the Studio
port and `sk-unsloth-` API key configured by the user; see the
[Unsloth Studio setup](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#unsloth-studio).
**Osaurus (Local)** connects to the Mac's Osaurus server with model discovery,
streaming, and tool calls; see the [Osaurus setup](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#osaurus).

**Rapid-MLX** runs locally on Apple Silicon Macs with optional authentication,
model discovery, and Ask streaming. See the [Rapid-MLX setup](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#rapid-mlx)
for the required extension CORS origin and settings.

Size the loaded context window for the selected tier's system prompt and tool
schemas, the page/history, and the requested output. **16k is a configuration
fallback, not a guaranteed minimum; Compact is not guaranteed to fit 8k.**
Mid and Full can exceed 16k before history accumulates, and compaction cannot
shrink fixed instructions or schemas. The sizing estimate is not the model's
exact tokenizer; see the [context guidance](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#local-providers).
WebBrain auto-detects the real window for llama.cpp, Ollama, and LM
Studio, and auto-compacts the conversation as it fills up. For Ollama,
llama.cpp, LM Studio, and LocalAI, it also reads native server metadata before
adding screenshots; Settings → Models → LLM provides Auto, Force on, and Off overrides. When
the optional Model field is blank, the loaded-model capability is rechecked on
every user turn so a server-side hot swap takes effect. There is also a
preview `ollama launch webbrain --model <model>` handoff. Details:
[providers and models](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#local-providers).

**Cloud APIs** — OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, AWS
Bedrock, Mistral, DeepSeek, xAI Grok, MiniMax, Kimi, Qwen, z.ai GLM, Groq,
Together, Cloudflare, Nvidia NIM, Hugging Face, Fireworks, OpenRouter, and more.
Settings → Models → LLM ships **151 built-in provider cards on Chromium** (150 on Firefox),
including an endpoint-free local WebGPU option with the tested LFM2.5 2.6B
preset and an experimental custom Hugging Face ONNX repository option —
see the [full catalog](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#extended-provider-catalog).

For a local or bring-your-own provider, the per-provider **Share queries for
research** switch remains off by default. When enabled, it now shares a
bounded, content-free diagnostic timeline for that provider's model attempts
(including failed runs) alongside the existing scrubbed prompt/response share.
The timeline includes tool names, outcomes, error codes, and timings, but not
tool arguments, page content, or screenshots. If a run fails before a normal
generation share, its bounded model-facing request and final blocker accompany
the diagnostic record. No second sharing switch is
required; turning the existing switch off also purges queued diagnostics.

- **Reads any page** — text, links, forms, tables, PDFs, and interactive
elements, via the accessibility tree rather than brittle selectors
- **Acts on it** — click, type, scroll, navigate, upload, download, and verify
forms, with per-site permission prompts before consequential actions
- **Vision mode** (aka "Tesla" mode) — vision only, like a Tesla on cameras: with a model that
takes images, Act runs see the page as screenshots and click, type and scroll at coordinates; only the changed part
of the screen is sent after each action, and retina displays and browser
zoom are handled ([details](https://github.com/webbrain-one/webbrain/blob/main/docs/vision-mode.md) )
- **Plan before Act** — Act and Dev can generate a structured plan, show it for
approval, and pin the approved plan to the scratchpad before any tool runs
- **Multi-step agent** — autonomous tool-use loop, configurable up to 195 steps
(default 130), with a Continue button when it hits the limit
- **Saved workflows** — turn a successful run into a reusable, value-free
workflow you can re-run, export, and share
- **Scheduled tasks and watches** —`/schedule` for later,`/watch` to poll a
page and act when a condition is met
- **Skills** — trusted instructions and tools that load only when relevant
- **Smart context** — token-aware auto-compaction, tool-result limits, and
emergency overflow recovery
- **Per-tab conversations** — each tab keeps its own history; optional local
user memory for stated preferences
- **Optional cross-device recall** — connect MemCode with OAuth for read-only
lookup while local memory stays the default ([setup and privacy](https://github.com/webbrain-one/webbrain/blob/main/docs/memcode-recall.md) )
- **Reading-first side panel** — streaming Ask replies, floating controls that
keep your question in view as answers grow, copy buttons, a page-inspection
banner, and a stop button that works mid-run
- **Deterministic by default** — temperature`0.15` for browser-control
decisions,`0.3` for Ask,`0` for vision screenshot descriptions

WebBrain separates **tier** from **mode**. Tier (`compact`, `mid`, `full`) is a
per-provider setting controlling how many tools a model sees — Compact suits
small local models, Full unlocks hover, drag-drop, frames, and shadow DOM. Mode
(`ask`, `act`, `dev`) controls what the user is allowing.

The full tool-by-tier matrix, WebMCP notes, and Dev-mode diagnostics are in
[agent tools](https://github.com/webbrain-one/webbrain/blob/main/docs/agent-tools.md).

Type `/help` in the panel for full signatures and flags. The most useful ones:

| Command | What it does | 
|---|---|
| `/ask` ·`/act` ·`/dev` ·`/plan` | Switch mode before sending | 
| `/schedule [prompt]` | Create a scheduled task | 
| `/watch [--keep] [--secs <30-120>] [--long \| --short] <condition and action> [/beep]` | Poll the current page and act when a condition is met | 
| `/workflow` ·`/workflow --save <name>` | Manage saved workflows or compile the last successful run | 
| `/teach --start <name>` ·`/teach --end` | Learn a reusable workflow from your demonstrated actions | 
| `/memory --add <text>` | Save a user preference | 
| `/screenshot [--full-page]` | Capture the tab, or the full scrollable page | 
| `/record [--transcribe]` | Record the current tab, optionally saving a transcript | 
| `/export [--traces \| --config]` | Download the conversation, tool chain, or a Settings snapshot | 
| `/compact` ·`/reset` ·`/verbose` | Compact context, clear the conversation, toggle tool detail | 
| `/allow-api` | Per-conversation override letting `fetch_url` mutate when the UI is failing | 

`/watch` runs its first check immediately, then polls every 60 seconds
(`--secs` accepts 30–120). Relative conditions like "when a new commit appears"
establish a baseline on the first check; `--keep` keeps the watch running and
suppresses repeated alerts for the same stable event key.

Full reference, including `/dangerously-skip-permissions` and the run-capture
suffixes: [slash commands](https://github.com/webbrain-one/webbrain/blob/main/docs/slash-commands.md).

Chrome side panel shortcuts work when the WebBrain side panel has focus.

| Shortcut | What it does | 
|---|---|
| `Ctrl+/` or`Cmd+/` | Focus the input | 
| `Ctrl+Shift+A` or`Cmd+Shift+A` | Start the message with `/ask` | 
| `Ctrl+Shift+X` or`Cmd+Shift+X` | Start the message with `/act` | 
| `Ctrl+Shift+D` or`Cmd+Shift+D` | Start the message with `/dev` | 
| `Escape` | Stop the active run, unless it is only dismissing slash-command autocomplete | 
| `Escape` twice | Stop an active recording from WebBrain or browser pages | 

| [Architecture](https://github.com/webbrain-one/webbrain/blob/main/docs/architecture.md) | System overview, turn flow, subsystems | 
| [Agent tools](https://github.com/webbrain-one/webbrain/blob/main/docs/agent-tools.md) | Tiers, modes, and the full tool matrix | 
| [Slash commands](https://github.com/webbrain-one/webbrain/blob/main/docs/slash-commands.md) | Every command and flag | 
| [Providers and models](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md) | All provider cards, local setup, tiers | 
| [Skills](https://github.com/webbrain-one/webbrain/blob/main/docs/skills.md) | Bundled skills, importing, skill tools | 
| [Omarchy integration](https://github.com/webbrain-one/webbrain/blob/main/docs/omarchy.md) | Native desktop panel, selected-agent setup, and browser pairing | 
| [Security model](https://github.com/webbrain-one/webbrain/blob/main/docs/security-model.md) | Permissions, credentials, trust boundaries | 
| [Cloud Bridge approval](https://github.com/webbrain-one/webbrain/blob/main/docs/cloud-bridge-browser-approval.md) | Opt-in browser registration and approval for backends | 
| [Prompt-injection defense](https://github.com/webbrain-one/webbrain/blob/main/docs/prompt-injection-defense.md) | Defense layers and known gaps | 
| [Privacy and data flow](https://github.com/webbrain-one/webbrain/blob/main/docs/privacy-and-data-flow.md) | What leaves the browser, and what doesn't | 
| [Accessibility tree and refs](https://github.com/webbrain-one/webbrain/blob/main/docs/accessibility-tree-and-refs.md) | How pages are read and targeted | 
| [Site adapters](https://github.com/webbrain-one/webbrain/blob/main/docs/site-adapters.md) | Per-site guidance and versioned workflow contracts | 
| [Export and workflow formats](https://github.com/webbrain-one/webbrain/blob/main/docs/export-and-workflow-formats.md) | `webbrain-config/1` ,`webbrain-workflow/1` | 
| [Adding a tool](https://github.com/webbrain-one/webbrain/blob/main/docs/adding-a-tool.md) ·[Localization](https://github.com/webbrain-one/webbrain/blob/main/docs/localization.md) ·[Test scenarios](https://github.com/webbrain-one/webbrain/blob/main/docs/test-scenarios.md) | Contributor guides | 
| [Community](https://github.com/webbrain-one/webbrain/blob/main/docs/community.md) | Discord server guide: channels, roles, rules, escalation | 

Also available in [中文](https://github.com/webbrain-one/webbrain/blob/main/docs/zh-CN) and [Français](https://github.com/webbrain-one/webbrain/blob/main/docs/fr).

Chat about everything WebBrain — help, local and cloud model setups, site
adapters, show-and-tell, and contributor coordination — on the
[WebBrain Discord](https://discord.gg/cgC325ssfw). See
[community](https://github.com/webbrain-one/webbrain/blob/main/docs/community.md) for how the server is organized, and
[discord-setup](https://github.com/webbrain-one/webbrain/blob/main/docs/discord-setup.md) for the channel, role, and welcome-screen
configuration. Bug reports and feature requests belong in
[GitHub issues](https://github.com/webbrain-one/webbrain/issues), not Discord.

```
src/chrome/     Manifest V3 build — service worker, chrome.scripting, sidePanel
src/firefox/    Manifest V2 build — background page, executeScript, sidebar_action
docs/           Design and reference docs (en, zh-CN, fr)
mcp-server/     MCP server — delegate browser tasks from Claude Code, Codex, Cursor
integrations/omarchy/  Omarchy Quickshell plugin and selected-agent setup helper
lmstudio-plugin/  Web tools + browser delegation as a standalone LM Studio plugin
web/            Landing site and docs site
test/           Node test suite, LLM scenario benchmarks, security corpora
```

Nearly all agent code is shared between the two builds. See
[architecture](https://github.com/webbrain-one/webbrain/blob/main/docs/architecture.md#chrome-vs-firefox-key-differences) for where
they diverge.

**Firefox is meaningfully weaker than Chrome.** Firefox has no equivalent to the
Chrome DevTools Protocol via `chrome.debugger`, so the Firefox build has no
shadow-DOM piercing, no real trusted mouse events (some React/Vue handlers won't
fire), no closed-shadow-root traversal, no `resolveSelector` retry budget, no
SPA-navigation-aware retry, and no CDP screenshots. It uses `tabs.captureTab`
for viewport screenshots, including inactive run tabs, but still cannot provide
Chrome's pixel-perfect or full-page CDP capture. Site adapters, vision
detection, loop detection, the auto-screenshot loop, and the Compact prompt/tool
set *are* mirrored to Firefox. Some single-page apps may also fail to trigger
content-script re-injection after client-side navigation.

See [CONTRIBUTING.md](https://github.com/webbrain-one/webbrain/blob/main/CONTRIBUTING.md). To add a tool, follow the checklist in
[adding a tool](https://github.com/webbrain-one/webbrain/blob/main/docs/adding-a-tool.md). To add a provider, subclass
`BaseLLMProvider`, implement `chat()` (and optionally `chatStream()`), and
register it in `providers/manager.js` — mirroring both changes to
`src/chrome/` and `src/firefox/`. All providers normalize to
`{ content, toolCalls, usage }`; details in
[providers and models](https://github.com/webbrain-one/webbrain/blob/main/docs/providers-and-models.md#adding-a-provider).

Recent changes are in [CHANGELOG.md](https://github.com/webbrain-one/webbrain/blob/main/CHANGELOG.md).

In DeepSeek Harness Desktop, open **Plugins → Installed → Add plugin**, enter `@webbrain/dsh-local@0.1.0` in **Package name or address**, click **Install**, then **Enable now**. With the CLI, install the [WebBrain plugin](https://github.com/webbrain-one/webbrain/blob/main/integrations/deepseek-harness) in your `web` profile.

```
dsh plugin --profile web add @webbrain/dsh-local@0.1.0
```

In the WebBrain extension, choose **Settings → Bridge → DeepSeek Harness**. Follow the pairing steps there, then ask Harness to call `mcp__webbrain__webbrain_connection`. [DeepSeek Harness setup guide](https://www.webbrain.one/docs/mcp/#deepseek-harness)

Let a coding agent use *your* browser. Claude Code, Codex, Cursor and OpenClaw
can delegate a task to WebBrain running in the session you are already signed
into — cookies present, SSO already passed. A headless framework starts logged
out and stalls at the first login wall; this does not.

```
claude mcp add --transport stdio webbrain -- npx -y @webbrain/mcp-server
```

Claude Code launches the server automatically when it starts an MCP session.
To launch it yourself instead, run the following command and leave that terminal
open (press `Ctrl+C` to stop it):

```
npx -y @webbrain/mcp-server
```

In **WebBrain → Settings → Bridge**, choose **Claude Code**, **Cursor**,
**OpenCode**, or **DeepSeek Harness** to see setup steps for that client.
Choose **MCP** for other local MCP clients. Each uses
`ws://127.0.0.1:17374/extension`. Once the client starts the server, paste the
key printed by `npx -y @webbrain/mcp-server@0.1.2 pairing-key` into **Pairing key**
and click **Save & test connection**.
The server only trusts a socket that proves it holds that key (an HMAC over a
fresh challenge; the key is never sent), so another local process cannot pose
as the extension. The LM Studio plugin uses the same key file,
`~/.webbrain/bridge-key`. Update the extension before upgrading the server: a
version without the Pairing key field cannot pair.
On Chromium browsers the bridge runs from the extension's off-screen document.
Firefox hosts it in the background page and is configured under the same
**Settings → Bridge** tab (not yet verified against the MCP server on a real Firefox
install). A backend that needs to approve each browser before it can send
commands can use the opt-in token handshake described in
[Cloud Bridge browser approval](https://github.com/webbrain-one/webbrain/blob/main/docs/cloud-bridge-browser-approval.md).

If Settings reports **Connection error: WebSocket error**, nothing is normally
listening at the configured URL. Start the MCP server, confirm that the URL uses
port `17374`, and leave its process running. See the
[`mcp-server` troubleshooting guide](https://github.com/webbrain-one/webbrain/blob/main/mcp-server/README.md#troubleshooting) for a
listener check and the other bridge ports.

```
webbrain_run(task: "open the Stripe dashboard and list last week's failed
             payments with amounts and customer emails", mode: "ask")
```

Use `webbrain_extract` with a JSON Schema when the caller needs predictable
structured output instead of a prose summary. The server exposes six task-level
tools: run, structured extraction, status, clarification response, abort, and
connection diagnostics.

`mode='ask'` is read-only. `mode='act'` can click and type, gated by the same
in-browser approval prompts a human gets. The server exposes task delegation
rather than the ~50 low-level browser primitives: WebBrain's permission gate
lives in the agent loop, so per-primitive access over a socket would sit below
the gate and bypass it. Details in [`mcp-server/`](https://github.com/webbrain-one/webbrain/blob/main/mcp-server).

The complete client setup, tool arguments, run lifecycle, structured-output
examples, safety boundaries, and troubleshooting guide live at
[`web/docs/mcp/`](https://github.com/webbrain-one/webbrain/blob/main/web/docs/mcp).

The extension holds **one** bridge socket at a time — WebBrain Cloud (17373),
the MCP server (17374), or the LM Studio plugin (17375). Choose the destination
under **Settings → Bridge**. Close the first MCP client before starting another
on port 17374.

Use WebBrain from Omarchy's native desktop panel and your selected Claude Code, Codex, or OpenCode agent. The user-scoped installer builds the paired MCP server from the same checkout and installs a task launcher without changing your default agent:

```
node integrations/omarchy/bin/webbrain-omarchy.mjs install --agent claude
```

Pair the Chromium extension under **Settings → Bridge**, then launch a browser
task from the WebBrain bar widget or `webbrain-omarchy launch --task "..."`.
The panel reports installation readiness; the selected agent owns the browser
connection, results, and run controls. See the
[Omarchy installation guide](https://github.com/webbrain-one/webbrain/blob/main/docs/omarchy.md) for requirements, updates,
uninstall, and troubleshooting.

A standalone [LM Studio](https://lmstudio.ai) plugin at
[`webbrain/web-tools`](https://lmstudio.ai/webbrain/web-tools):

```
lms clone webbrain/web-tools
```

`fetch_url` and `research_url` are pure Node HTTP — no browser needed, but also
no cookies, no session and no JavaScript. With the extension installed on a
Chromium browser, `browser_task` adds delegation to your real signed-in browser,
reaching the authenticated and client-rendered pages plain HTTP cannot. It
degrades with an actionable message when no extension is attached, and the HTTP
tools keep working on Firefox.

Source: [`lmstudio-plugin/`](https://github.com/webbrain-one/webbrain/blob/main/lmstudio-plugin).

```
@software{webbrain2026,
  author = {Sokullu, Emre},
  title = {WebBrain: Open-source AI browser agent for chatting with pages},
  year = {2026},
  publisher = {GitHub},
  url = {https://github.com/webbrain-one/webbrain}
}
```

WebBrain is licensed under
[GPL-3.0-or-later](https://github.com/webbrain-one/webbrain/blob/main/LICENSE) because the distributed browser extension bundles
and integrates the GPL-licensed Xapian/libzim WebAssembly runtime.

Built with ❤️ by [Emre Sokullu](https://emresokullu.com) and [open-source contributors](https://github.com/webbrain-one/webbrain/graphs/contributors).
