Lightweight headless browser for AI agents and automation
Moli is a fast, lightweight headless browser written in Rust. It loads and
runs web pages, then returns them as HTML, Markdown, JSON, screenshots or
PDF. It also serves the Chrome DevTools Protocol and WebDriver, so tools
such as Playwright, Puppeteer and Selenium can drive it.
Examples
moli fetch https://example.com --dump markdown
moli fetch https://example.com --layout --dump screenshot > page.png
moli serve --port 9222
File access
Moli can use profiles, cookie files and output paths in your home
directory. To also use USB drives and other removable media (/media,
/mnt), run:
sudo snap connect moli:removable-media