Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Moli is an open-source, headless browser engine written from scratch in Rust specifically for AI agents, web scraping, and automated evaluation harnesses. Rather than wrapping Chromium, Moli builds a custom browser kernel focused on structure-first, pixels-on-demand execution.
A practical rule of thumb is to run stateless browsing and extraction tasks in Moli first and route failed or authenticated workflows through a full Chromium-based browser such as Chrome or BrowserOS (browseros-neo). For a broader comparison of agentic browsers, see AI Browsers and Agentic Web Automation.
Architecture & Core Design¶
Unlike traditional headless browsers that continuously maintain a layout tree, paint pixels, and eagerly fetch visual subresources, Moli treats the native DOM and CSS style state as the single source of truth:
Rust Browser Kernel (Not a Chromium Wrapper): Combines
libcurl(networking),html5ever(HTML parsing),rusty_v8/V8 (JavaScript execution), Servo/Stylo (CSS selectors and cascade),Taffy+Parley(box and text layout), andAnyRender/Vello CPU+usvg(software rendering).On-Demand Layout & Rendering: By default (
LayoutPolicy::Mock), Moli skips layout and paint entirely. Passing--layoutenablesLayoutPolicy::OnDemand, which builds aFrozenLayoutTreeonly when geometry, hit-testing, or screenshots are requested and discards paint state immediately afterward. Optional visual/media resources (--image,--font,--media,--resource) are likewise opt-in.Extraction-Optimized CLI & Unified Protocols: The CLI (
moli fetch) natively outputs Markdown,semantic_tree_text, JSON, or HTML. The same single binary and scheduler also expose CDP (Chrome DevTools Protocol), WebDriver Classic, and WebDriver BiDi, allowing Playwright or Puppeteer to connect without separate driver binaries.Lexmount Browser Cloud: Lexmount Browser is the managed cloud platform built around Moli, offering
lightmode (Moli engine) for fast, low-cost extraction andnormalmode (Chromium fallback) when full browser compatibility is required. Open-source Moli runs locally with no cloud dependency.
Key Strengths & Limitations¶
Strengths¶
Low Memory & CPU Footprint: In Lexmount’s 557-task local benchmark, Moli used ~13% of Chrome’s peak memory (92 MiB vs. 697 MiB median) and ~15% of Chrome’s CPU time (100.6 ms vs. 687 ms), with ~5× faster CDP cold starts (34.85 ms vs. 169.37 ms) in a single process. In a 192-URL public-web crawl, median RSS was 73 MiB vs. 773 MiB for headless Chrome.
Agent-Friendly Outputs: Native Markdown and compact semantic text trees reduce token overhead without custom DOM-to-Markdown scripts.
Explicit Protocol Errors: Unsupported CDP/WebDriver paths return explicit errors rather than silently pretending an action succeeded.
Limitations¶
No GUI or Persistent User Browser: Moli has no visible window, GPU compositor, or interactive desktop profile for everyday human + agent co-browsing.
Partial Chrome Parity: Moli does not support browser extensions, high-fidelity Canvas/WebGL, or full media playback. On the 1,308-task
Lexbench-Headless-Browsersuite, Moli achieved an 81.88% task success rate compared to 99.85% for Chrome.Not Designed for Signed-In Desktop Portals: Workflows that depend on live personal logins, complex SPAs, or human-in-the-loop CAPTCHA/2FA resolution are better handled by a full Chromium browser.
Moli vs. BrowserOS Neo¶
Verdict: Choose Moli for high-volume, stateless web fetching, scraping, and CI/eval pipelines where memory density and speed dominate; choose BrowserOS Neo (browseros-neo) for interactive, authenticated personal or enterprise workflows where near-100% Chromium compatibility and a persistent signed-in profile matter.
Table 1:Moli vs. BrowserOS Neo Comparison
Aspect | ||
|---|---|---|
Status | Active | Active |
Engine | Custom Rust kernel ( | Open-source Chromium fork |
GUI / Interactive Window? | N[1] | Y[2] |
Persistent Signed-In Profile? | N[3] | Y[4] |
Browser Extensions? | N | Y |
Automation Interface | CLI, CDP, WebDriver Classic/BiDi | Local MCP server ( |
Page Representation | Markdown, | Accessibility snapshot ( |
Batched Multi-Step Execution? | Y[5] | Y[6] |
Human-in-the-Loop Support? | N | Y[7] |
Resource Footprint | Very low (~73–92 MiB median RSS/peak) | Heavy (full Chromium multi-process) |
Web Compatibility | High for DOM/JS (~81.9% on Lexbench); no WebGL/extensions | Near-100% (full Chromium) |
Best Fit | High-volume scraping, RAG/fetch, eval harnesses | Signed-in portals, complex SPAs, downloads, daily agent workflows |
Language | Rust | Rust / C++[8] |
License | Apache-2.0 | AGPL-3.0 |
Popularity (Stars) | ~24.3k ★ | ~14.5k ★ |
Practical Hybrid Workflow¶
Because Moli and BrowserOS Neo optimize for opposite ends of the browser spectrum, they pair well in an agent stack:
Tier 1 — Moli (Fast Path): Route public web fetches, documentation lookups, search-result extraction, and stateless scraping to Moli (
moli fetch --dump markdownor Playwright over CDP). Most text-heavy pages succeed in milliseconds at a fraction of Chromium’s RAM.Tier 2 — BrowserOS Neo (Compatibility & Auth Path): Escalate to
browseros-neowhenever a task fails in Moli due to heavy SPA/Canvas rendering, anti-bot gates, or when the task requires your persistent signed-in sessions, direct file downloads, orrequest_human_helpfor 2FA/CAPTCHA.
References¶
Headless-only; supports on-demand software screenshots and PDFs via
--layout.Full desktop Chromium browser (
browseros-neoopens agent tabs in the background without stealing focus).Supports
--profile-dirand--cookiefor programmatic state, but is not an interactive desktop profile with saved user logins.Dedicated persistent Chromium profile with live signed-in sessions, cookies, and saved credentials.
Via Playwright/Puppeteer scripts connected over CDP or WebDriver BiDi.
Via the
runMCP tool (executes multi-step JS workflows in a single call) andrun_skill.Built-in
request_human_help/await_human_helpMCP tools for 2FA, CAPTCHAs, or manual approvals.Companion services and CLI in Rust/TypeScript on top of a C++ Chromium fork.