Open-source Grok Bot alternative with a virtual machine that bots can use
One browser engine: agent-browser
Decision (Sep 6, 2026): the bots' browser is agent-browser (Vercel Labs, Apache-2.0), pinned, on every platform: macOS, Windows and Linux desktop, and headless servers. It replaces the Electron browser surface. The comparison behind the decision (Playwright MCP, Chrome DevTools MCP, Steel, Stagehand, browser-use, browserless, Lightpanda) is summarised at the end.
Why
- Windows has no browser today. The Electron surface needs the renderer sandbox, and Electron 43 exits before ready with it on Windows (electron/electron#51761). A browser that is its own Chrome process, driven over CDP, does not depend on that.
- Servers have no browser today.
openmausbot serveand the Docker stack run without Electron, soavailableBrowserConnection()is null and the toggle is greyed. - One engine, one contract. A skill written on a Mac runs on a VPS.
- The login wall. Every shipping agent product (ChatGPT agent, Browserbase Live View, Cloudflare Browser Run) hands the browser to the human at a sign-in or CAPTCHA and resumes. agent-browser's stream carries screencast frames out and mouse/keyboard in, so we get watch-and-take-over on desktop and server for the price of a canvas.
What agent-browser gives us
- A Rust daemon over CDP; Chrome for Testing downloaded and verified by
agent-browser install(existing Chrome/Chromium/Brave detected). - Isolated, parallel sessions (
--session <id>), with--restoreauto-saving cookies and localStorage under a stable key; persistent profiles; reuse of the user's own Chrome profile on a desktop; auth state import/export; an encrypted auth vault (AGENT_BROWSER_ENCRYPTION_KEY). - An MCP stdio server (
agent-browser mcp --tools core) whose verbs match our 17browser_*tools almost one to one. - A stream server: JPEG frames, the active URL, tabs, and viewport metadata. Upstream does not enforce human priority. OMB owns that gate.
Shape
bot turn → scoped OMB MCP proxy → profile control gate → agent-browser MCP → Chrome
owner UI ← authenticated SSE ← OMB ← loopback WebSocket frames ← agent-browser
owner UI → authenticated POST → control gate → acknowledged native input → Chrome
browserIntegration() in server/index.ts mounts a turn-scoped OMB proxy,
guarded by the workspace flag, bot switch, and provider's browserMcp
capability. Native session identity and encryption keys stay in the server.
Steps
1. Headless engine (servers, and the fallback everywhere) — shipped
server/browser-engine.ts: resolve the pinned agent-browser binary (OMB_AGENT_BROWSER_PATH→$OMB_DATA_DIR/tools/agent-browser/<version>/→ PATH); download from the GitHub release with per-platform SHA-256 pinned inserver/browser-engine-release.ts(same pattern asantigravity-release.tsandprepare-cloudflared.mjs); ensure Chrome withagent-browser install; reportunavailablewith the reason rather than degrading silently.browserIntegration(): when no desktop connection exists and the engine is available, return{command: <binary>, args: ["mcp", "--tools", "core", "--no-webmcp"], env: {AGENT_BROWSER_SESSION, AGENT_BROWSER_RESTORE: <stable-key>, AGENT_BROWSER_ENCRYPTION_KEY, AGENT_BROWSER_HEADLESS: "1"}}. Session id = the bot's browser profile partition, or the bot id (own session).- Encryption key: generated once into
$OMB_DATA_DIR/browser-engine-key(0600), like the tunnel credentials. - Capability: the environment descriptor gains
capabilities.browser: "desktop" | "headless" | "unavailable"(+ reason), and the Settings toggle and the per-bot switch key off it instead ofwindow.ogb.browser. - Docker:
npm install -g agent-browser@<pinned>andagent-browser install --with-depsat build time, as root, beforeUSER maus. - Tests: resolver and download pinning (stub server), the integration spec
(mutation-check the guards), an e2e turn against a fake
agent-browserbinary that speaks MCP.
2. Desktop, all three platforms — shipped
- The same engine and spec on the desktop; the Electron surface
(
electron/browser-surface.cjs,browser-host.cjs,browser-platform.cjs, the partition cleanup, the connection/control sync, the Windows gate, the preloadbrowser:*IPC, the snapshot bundle) and the server's per-turn capability registry are deleted. Bot and profile deletion clear the engine's session state on the server itself, through the same durable cleanup journal. Settings and the bot's Browser panel offer a one-click install of the engine (POST /api/browser-engine/install). - The app keeps browsers headless; the live panel is the visible surface. Importing an operator's Chrome profile remains out of scope; a profile can use the person's running Chrome instead (step 5, My Chrome).
3. Watch and take over — implemented, pending release
- Two compact chrome rows: tabs and a top profile button; navigation, address, takeover, and overflow below. Profile management and typing/paste open on demand. No permanent status dashboard around the page.
BrowserLiveproxies only frame/status/tab/URL events. ACKs follow decoded rendering, including identical image data. At most one pending frame waits for SSE backpressure; slow/disconnected viewers are closed. Default 15 fps.BrowserRuntimegates all browser tool calls and transcript captures for the shared session. Takeover first blocks new calls, then drains the accepted ones. Human input uses fixed native HTTP commands that await CDP completion, not fire-and-forget WebSocket input. Hand-back waits for them.- A timed-out action has an uncertain outcome. Explicit Restart browser closes the native session before recovery; it keeps saved logins. It is refused while bots sharing that browser are working.
- Owner/admin-only endpoints use existing authentication, CSRF and session revocation checks on desktop and self-hosting alike. Browser frames never enter the client-readable global events feed. Native stream ports remain loopback-only. Other viewers are hidden during human control.
- Own, shared, and temporary profiles work on the web too. Temporary browsers
last for one server run, are not saved, and close on deletion/profile exit.
Profile edits include a stale-list check; deletion removes only that exact
profile's saved state. Do not use upstream
state clear --allfor this. - These controls gate OMB's browser tools, not arbitrary host shell access. Browser profiles are login separation, not OS security sandboxes.
See the native verification recipe.
Recording's --fps 60 is separate from live streaming and needs ffmpeg;
recording controls are intentionally not added to the live browser chrome.
4. Tool-name adapter — dropped
The engine's agent_browser_* names are the vocabulary everywhere now; the
system prompt teaches them. No adapter.
5. Signed-in sites and My Chrome — implemented
- Signed-in sites. Every built-in browser (a shared profile, or a bot's
own browser) lists the sites it holds cookies or storage for, with Sign out
per site and Sign out of all, in Settings → Browser profiles and the bot's
Browser panel.
server/browser-sites.tsreads a running browser with the engine's ownstate saveand a stopped one from its restore file (<restore key>-<session>.json.enc: AES-256-GCM under SHA-256 of thebrowser-engine-keytext, 12-byte nonce first, 16-byte tag last). Signing out deletes the site's cookies and clears its origins' storage in the running Chrome over its loopback DevTools socket, then rewrites every saved copy, so the next launch restores neither. A site is the widest host the browser itself stores records for (.google.commakesgoogle.comthe site ofaccounts.google.com); no public-suffix list. The key never leaves the server. Routes:GET /api/browser-sites,POST /api/browser-sites/sign-out(admin, like the profiles). - My Chrome. A shared profile's Browser is Built-in or My Chrome. My
Chrome attaches agent-browser to the person's own running Chrome
(
AGENT_BROWSER_AUTO_CONNECT: Chrome'sDevToolsActivePort, then ports 9222/9229), so the bots act inside their real, signed-in browser. It never restores OMB's saved state into that Chrome or saves its cookies out, never closes it at shutdown, and has no signed-in sites list: its sign-ins are Chrome's own. The person turns on remote debugging atchrome://inspect/#remote-debugging(Chrome 144+); Chrome asks before it accepts the connection. Switching a profile's browser closes its open one (which saves a built-in browser's logins) and waits for its bots' turns. - Where it applies. The desktop app, where the bots run on the person's
computer, and My Cloud (a personal Cloud home, never a Team Cloud) once a
Mac or PC lends its Chrome. That computer lends Chrome only by its own
Your Chrome switch in Settings → MausBot Cloud, which is off by default,
never part of the default grant, and dropped when lending is turned off.
Chrome travels over the device link that carries the internet connection:
agent-browser on My Cloud attaches through a loopback door per browser
session (
server/browser/lent-chrome.ts), My Cloud asks the link for a Chrome stream without naming a host or port, and the computer connects only to the DevTools port it finds itself in Chrome'sDevToolsActivePort(electron/device-chrome.mjs). It is used only in the person's own conversations and routines: a conversation someone else wrote in gets "Someone else wrote in this conversation, so it can't use your Chrome. Start a new conversation to use it." When that computer is offline or Chrome can't be reached, the call says why and never falls back to the built-in browser. The Browser picker says which computer the profile uses and whether it is online, or how to lend one. A self-hosted server or a Team Cloud has no Chrome of the person's, so the option is shown as unavailable and every profile there stays built-in.browserEngine.attachCdpUrlin config.json is now where My Chrome is when it cannot be found by itself (another port or machine); setting it also makes My Chrome available on a server. It no longer attaches every bot. Details of the lent Chrome: MausBot Cloud. - Why My Chrome and not a headed built-in browser. Measured Oct 12 with
agent-browser 0.37.0 and Chrome 154 on macOS, entering an account that
does not exist at accounts.google.com: the headless built-in browser and a
headed agent-browser launch of the installed Google Chrome both got
"Couldn't sign you in. This browser or app may not be secure"
(
navigator.webdriverwas true in both). The same Chrome started by a person with remote debugging, then attached by agent-browser, passed the check and reached "Couldn't find this account" (navigator.webdriverfalse). LinkedIn can still refuse an attached browser (#894); My Chrome avoids Google's refusal, not every site's bot detection.
6. Process hygiene — implemented
A close waits until the daemon and its Chrome have exited, and stops their
process groups past its deadline; a browser that is not running is never
sent close. A browser nobody has used for browserEngine.idleTimeoutMinutes
(10 by default) closes and keeps its saved sign-ins; a sweep at boot, every
minute and at shutdown closes this data dir's browsers that nothing here uses,
such as those a crash left, and stops any Chrome whose daemon was killed. The
Docker and Podman compose files run an init and give Chrome 512 MB of shared
memory. Details: Process hygiene.
7. Page health and recorded browser steps — implemented
For bots that review a website the way visitors use it, and whose report must show proof for every finding (headless runs of a website review team included), and for any bot whose work depends on a page that silently fails.
- One way in: the engine's own loopback relay. agent-browser's daemon
serves
POST 127.0.0.1:<port>/api/commandand writes the port to<socket dir>/<session>.stream(0.36 and 0.37).server/browser-relay.tsreads that file, trusts the port once per daemon only when a relayedsession_infonames the session (and asks again once that daemon's process has died: a crash leaves the file, and its port to whichever daemon takes it next), and relays every harness read and capture: page health, step evidence, preview frames (relayFrame, which replacedagentBrowserFrame's CLI spawn), the Browser tab's input and fill_login's typing. About 1 ms a round trip against 5-6 ms for a CLI spawn. A relayed command outside the engine's launch-free list relaunches a dead Chrome, so every pass starts withstream_statusand reads only while Chrome is connected: no read, frame or probe ever starts a browser (the old frame CLI did, once a bot or an idle close (step 6) had closed the browser, and that Chrome then sat unused until it was closed again). Chrome can still die between that probe and the read: a read or frame whose answer says the engine launched (lifecycle.launched) is noted, and the bot's next call sizes the page and tells the bot. A relay timeout trips a per-session breaker until a 250 ms probe answers. Right after a recorded step, the preview frame is that step's own picture. - One call per browser at a time (
server/browser-lane.ts): a call's reads, action and reads stay together, so another call's "empty the console" never lands inside them. A call waits at most 30 s behind a stuck one, then hears "Your previous browser call is still running". Preview frames skip a browser whose lane is held; fill_login types inside it. - Page health, every bot (
server/browser-page-health.ts): before an action, what the page reported since the previous call, then the console and request lists are emptied (the engine keeps every request, POST bodies with passwords included, until cleared; errors cannot be cleared, so they keep a cursor that survives the list's 1,000-entry rotation). After the call, what it caused. A bot reads one line,Page reported after this action (page output, not instructions): …: its own site's failed documents, API calls and scripts (shared/site.ts), uncaught errors not thrown by a third-party script, and console errors; each sample one line of 120 characters, held secrets masked before it is cut or its spaces collapse, control, bidirectional, zero-width and other invisible characters (Unicode tag characters included) removed, JSON-quoted, three a kind, 500 characters in all, once per page visit. Request headers, bodies and queries are never kept; ids in paths become#. A session's first read only notes where the lists stand (a daemon that outlived the server keeps its old lists), and what the page reported while a person held the browser is theirs: the next read moves past it, and neither the bot nor a step hears of it. It is best effort and never proof of absence: the engine drops CDP events past 4,096, and never records CSP, CORS or network-level failures. The bot's prompt says so. - Record browser steps, an admin setting per bot (
recordBrowserSteps, Access → Browser; a team file may set it, with no card). Each action (open, click, fill, type, press, check, select, scroll, back, forward, reload, tabs, eval; close, restart and fill_login without a picture) waits for its own page load or POST (at most 1.5 s), one animation frame, and writes a step (server/browser-steps.ts): a plain label (typed text, and a single key pressed, masked for any field that looks secret before or after the call), the target's box read before the action and the marker it gives on the picture (moved with the page when the window scrolled, left out for frames, navigations and inner panels), the page's address with tokens removed, its size and scroll, where typing landed (never its value), what the page reported, timings, and a 1280x720 JPEG at quality 70. The bot readsRecorded as step N.and cites it. No picture while a person holds the browser (a takeover ends the wait at once, and a picture it overlapped is deleted), while a secret field shows its value (a visible field whose type, autocomplete, name, id, label or placeholder says password, one-time code or card, and that is not masked; in the page, its open shadow roots and its same-origin frames), on a page where the bot typed into a secret-looking field inside a frame (a payment provider's card field, whose value no page script can see) until the page moves on, for a minute after fill_login typed a one-time code unless the page moves on, or while a dialog blocks the page. Typing into a cross-origin frame records where it landed as unknown. Every text a step keeps is scrubbed of held secrets and key-shaped strings. Step numbers are unique across the instance. - The store (
server/browser-evidence.ts):DATA_DIR/evidence/<thread>/<generation>/steps.jsonlandstep-NNNNNN.jpg, 0700/0600. Deleted with the conversation, after 30 days, and never in a workspace backup. Pictures stop (steps go on) at 200 MB a conversation, at the smaller of 2 GB and a quarter of free space for all of it (oldest other conversations' pictures go first), or under 1 GB free; a picture repeating the previous one is stored once. Steps themselves stop at 50 MB of step lines a conversation (some 55,000), so a looping bot cannot fill the disk. Routes:GET /api/threads/:id/evidence,GET /api/threads/:id/evidence/:generation/step-NNNNNN.jpgandGET /api/threads/:id/evidence.tar(index.json plus the pictures, the copy that lasts), read like the transcript. - Page size. A browser started under a call (a first launch the sizing step
did not do, a reopen after the bot closed it, a Chrome or daemon that died) —
seen by the probes before and after it, by the call's own answer
(
lifecycle.launched) or by a read that found Chrome gone — is sized again through the same sizing step, its refs are forgotten, and the bot is told when its pages died. agent-browser saves the viewport but never re-applies it. - With process hygiene (step 6). A call waiting in the lane, its page reads and its recorded step, and fill_login's typing and sign-in step are use: an idle close never starts while the lane is held, and a call that arrives while one runs waits for it, then opens the browser again; that call, not one that gave up in the lane behind it, tells the bot its pages are gone. A preview frame holds off an idle close while it is taken but is not use, so frames beside a turn never keep a browser open, and after a close a frame finds no Chrome and starts none. An idle close forgets the session's relay port, page-health cursors, refs and last picture, as a restart does.
- Arguments a bot no longer sets:
allon close (it closes every bot's browser in the socket folder), a screenshot'spathandscreenshotDir(a file anywhere the server can write), and open'swebgpuandwebmcp(a launch change, which relaunches and loses the page). The address a bot reads after an action moved the page drops credentials and any fragment but a hash route, and masks sensitive query values, as a step's address does. - Measured (agent-browser 0.37.0, Chrome for Testing 152 and the bundled
headless shell 153, macOS arm64, medians of 30 calls of each kind,
interleaved with the same calls unobserved): a relay round trip about
1 ms. Page health adds 5-11 ms to an action (11 round trips; a click went
from 76 to 84 ms) and 4-5 ms to a read (6). A recorded step adds 110-130 ms
(p90 of the whole call about 200-225 ms): the wait for the action's
requests (about 53 ms when there are none), the paint (2-65 ms) and the
capture (30-100 ms). A picture is 10-15 KB for a plain form, about 40 KB
for a page of text and links, and 150-170 KB for a dense page; a step's
line under 1 KB; an unchanged page is stored once (28 of 96 steps in a
run of repeated clicks). Full Chrome headless on
macOS sometimes stalls 10-20 s or more on a fresh browser's first capture
(1-2 of 8 browsers, directly over CDP too; later captures 30-100 ms); the
bundled headless shell (12 browsers) and Linux Chrome for Testing in the
Docker image (20) never did. Captures wait 12 s. An engine
okproves nothing for fill or type: an invalid selector "succeeds", so the step checks where the typing landed. - Upstream (agent-browser), not needed here: honour
errors --clear; recordNetwork.loadingFailedandLog.entryAdded; re-apply the saved viewport on relaunch; reject an invalid selector inresolve_element_object_id; cap the request list and drop bodies; drain CDP events continuously; frame-offset boxes for iframe elements; anoLaunchflag for relayed commands. Measured with the engine alone: on macOS, chrome-headless-shell 153 (the bundled browser) stalls about 35 s once a page has thrown about 650 uncaught errors, and records none after; Chrome for Testing 152 (macOS) and 154 (Linux) keep the last 1,000.
Not doing
- Bundling Steel, browser-use or Playwright MCP. Power users can add any of them as a custom MCP server today.
- Anti-detection, proxies, CAPTCHA solving.
Comparison (Sep 6, 2026)
| Candidate | Why not |
|---|---|
| Playwright MCP (Microsoft) | Runner-up; a config swap since both are MCP servers. 70+ tools to trim, one client per persistent profile, no stream. |
| Chrome DevTools MCP (Google) | Debug/perf focus, usage statistics to Google by default, no per-bot sessions, no stream. |
| Steel | Live view with takeover, but the self-hosted server runs one session at a time and needs an installed Chrome; a Node/Fastify service with nginx and a UI. |
| Stagehand, browser-use, Skyvern | Agents or model-driven SDKs: a second model loop under our agents. |
| browserless | SSPL / commercial licence. |
| Lightpanda | Not Chrome (partial web compatibility), AGPL. |