Moli
English | 简体中文 | 日本語 | Deutsch | Français | Español
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 live 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