Moli is a headless browser aimed at AI agents that fetch pages, search the web, and automate browser tasks. It runs on Linux, macOS, and Windows and is driven via CLI, CDP, or WebDriver.
Overview
Moli is a production-oriented headless browser built for AI agent workloads. Its design generates layout and pixels only when a task needs them, while structure-first work reads DOM, style, and runtime state without running full layout or paint.
The CLI can render pages to Markdown or compact semantic trees, capture viewport or full-page PNGs and PDFs when layout is enabled, and export content after scripted interactions. A single automation server endpoint exposes CDP, WebDriver Classic, and WebDriver BiDi; Playwright can attach over CDP.
The runtime includes streaming HTML parsing, V8 JavaScript, CSS cascade, networking, cookies, WebCrypto, and profile-scoped storage, with optional on-demand box layout, screenshots, and DevTools-style screencast frames. Profiles, proxies, resource policies, and timeouts are configurable.
Moli is a standalone Rust browser kernel, not a Chromium wrapper, and can be used without Lexmount’s managed cloud browser product. Expensive visual and media operations require explicit flags and stay off by default.
Key features
- CLI page extraction to HTML and Markdown
- CDP, WebDriver Classic, and BiDi
- On-demand layout and screenshots
- Playwright CDP connection
- DOM-first operations without paint
- Profiles, proxies, and resource controls
- Linux, macOS, and Windows binaries
Use cases
- AI agent web fetch and extraction
- Crawling and retrieval pipelines
- Browser automation without separate drivers
- Evaluation and RL browser environments