Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tips on the Moli Browser for Agents

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:

Key Strengths & Limitations

Strengths

Limitations

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

Moli

BrowserOS

Status

Active

Active

Engine

Custom Rust kernel (html5ever, Stylo, rusty_v8)

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 (browseros-neo), CLI, SKILL.md

Page Representation

Markdown, semantic_tree_text, DOM, JSON

Accessibility snapshot ([ref=eN]), Markdown, DOM

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:

  1. Tier 1 — Moli (Fast Path): Route public web fetches, documentation lookups, search-result extraction, and stateless scraping to Moli (moli fetch --dump markdown or Playwright over CDP). Most text-heavy pages succeed in milliseconds at a fraction of Chromium’s RAM.

  2. Tier 2 — BrowserOS Neo (Compatibility & Auth Path): Escalate to browseros-neo whenever 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, or request_human_help for 2FA/CAPTCHA.

References

Footnotes
  1. Headless-only; supports on-demand software screenshots and PDFs via --layout.

  2. Full desktop Chromium browser (browseros-neo opens agent tabs in the background without stealing focus).

  3. Supports --profile-dir and --cookie for programmatic state, but is not an interactive desktop profile with saved user logins.

  4. Dedicated persistent Chromium profile with live signed-in sessions, cookies, and saved credentials.

  5. Via Playwright/Puppeteer scripts connected over CDP or WebDriver BiDi.

  6. Via the run MCP tool (executes multi-step JS workflows in a single call) and run_skill.

  7. Built-in request_human_help / await_human_help MCP tools for 2FA, CAPTCHAs, or manual approvals.

  8. Companion services and CLI in Rust/TypeScript on top of a C++ Chromium fork.