moli
Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
What is moli?
Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Overview of moli
What it is
Moli is a production-ready headless browser designed for AI agents. It is built in Rust and combines a complete browser runtime with a lightweight resource footprint. Moli supports on-demand layout and rendering, meaning visual work is performed only when needed. It can be used through the CLI, CDP, WebDriver Classic, or WebDriver BiDi. Moli runs on Linux, macOS, and Windows.
Key features
- Complete web runtime: streaming HTML parsing, native DOM, V8 JavaScript, modules, timers, microtasks, events, iframes, workers, CSS cascade, Fetch/XHR/WebSocket, cookies, WebCrypto, and profile-scoped storage (localStorage, IndexedDB, OPFS).
- Extraction-optimized outputs: the CLI directly produces HTML, Markdown, JSON, semantic text trees, and frame-aware serialization, with selector/script/response waits and network tracing.
- Unified automation binary: CDP, WebDriver Classic, and WebDriver BiDi share the same kernel and scheduler. No separate ChromeDriver, geckodriver, or browser installation is required.
- Real visual capabilities on demand: add
--layoutto enable complete box construction, Taffy layout, Parley text layout, layout-backed hit-testing/input, viewport screenshots, and low-frequency CPU-rendered DevTools screencast frames. - Controllable operational options: profiles, cookies, HTTP cache, proxies, resource families, connection limits, timeouts, private-network policy, user-agent overrides, diagnostic logging, and network diagnostics are all available.
- Cost controls: expensive browser operations require explicit opt-in and are never enabled by default. Layout is an on-demand snapshot rather than continuously maintained state.
Use cases
Moli helps AI agents fetch and extract web pages, search the web, and automate browser tasks. It is especially suited to crawling, browser-use agents, retrieval pipelines, evaluation environments, and reinforcement-learning workloads.
Getting started
On Linux or macOS:curl --proto '=https' --tlsv1.2 -fsSL https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | shOn Windows, run in PowerShell:powershell -ExecutionPolicy ByPass -c "irm https://github.com/lexmount/moli/releases/latest/download/moli-installer.ps1 | iex"
License and pricing
Moli is open source under the Apache-2.0 license.
Based on the project's public README and repository metadata.