StackMap
Subscribe
Explore / moli
lexmount

moli

Rust headless browser for AI agents on Servo/Stylo components: fetch pages as Markdown or a semantic tree, automate via CDP, WebDriver or BiDi — about 13% of Chrome's memory per task.

16,378 401 Rust Apache-2.0updated today
View on GitHubDispute this mapping →
Curator's take

Use it when you run lots of agent browsing and Chrome's ~700 MiB per task is the bill — Playwright connects over CDP unchanged, and `moli fetch --dump markdown` covers most read-the-web needs. It completed ~82% of its own benchmark's tasks vs Chrome's ~99.8%, so keep Chrome as the fallback for complex sites; no pixel-perfect rendering promise. Versus Lightpanda's Zig browser: more tasks completed, more memory used.

Mapped by ShipWithAI editors · links verified

Continue your stack

What teams reach for next — and why each earns a place beside moli. Ranked by curator confidence.

pairs wellalternativebrowser-usebrowsermoli
pairs wellalternativebuilt withpick a node for the why · open it from the panel
Weekly digest
README.md1 min read

Moli Browser — Structure first. Pixels on demand. Open source browser for AI agents.

Moli

English | 简体中文 | 日本語 | Deutsch | Français | Español

Discord

lexmount%2Fmoli | Trendshift lexmount%2Fmoli | Trendshift

Moli is a production-ready headless browser for AI agents. Its on-demand layout and rendering design combines a complete browser runtime with a lightweight resource footprint.

Moli helps your AI agent fetch and extract web pages, search the web, and automate browser tasks.

Use it through the CLI, CDP, WebDriver Classic, or WebDriver BiDi.

Moli supports Linux, macOS, and Windows.

Quick start

Give this prompt to your AI agent:

Install the skills under https://github.com/lexmount/moli/tree/main/skills,
follow their instructions to download and install the latest prebuilt Moli
binary, then use moli-webfetch to fetch https://example.com and show me the
result.

Direct installation

On Linux or macOS:

curl --proto '=https' --tlsv1.2 -fsSL \
  https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | sh

On Windows, run in PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://github.com/lexmount/moli/releases/latest/download/moli-installer.ps1 | iex"

Showcase

An HTML5 game rendered by Moli and inspected through Chrome DevTools

An HTML5 game rendered by Moli and inspected live through Chrome DevTools.

rust-lang.org rendered by Moli and inspected through Chrome DevTools

rust-lang.org rendered by Moli, with its live DOM, CSS, and geometry available in Chrome DevTools.

CLI usage

Extract a page

Render the page as Markdown with Moli's default completion strategy:

moli fetch \
  --dump markdown \
  --wait-until done \
  https://example.com

Or directly return a compact, model-friendly semantic tree:

moli fetch \
  --dump semantic_tree_text \
  --wait-selector body \
  https://example.com

For visual output, enable on-demand layout and write a viewport PNG, a full-document PNG, or a paginated PDF:

moli fetch --layout --dump screenshot https://example.com > page.png
moli fetch --layout --dump screenshot_full https://examp