עברית 📰 Blog
← Back to Blog
AI Tools

Moli: A Light Headless Browser That Gives AI Agents Clean Text

Stav Adam
Founder, Masterphub
October 19, 2026

Share this article

Moli: A Light Headless Browser That Gives AI Agents Clean Text
Short answer: Moli is a free, open source browser with no window, built for AI agents. It loads a web page, runs its JavaScript, and hands back clean Markdown or a compact page outline your agent can read. It is written in Rust, runs on Linux, macOS and Windows, and Playwright can connect to it like it connects to Chrome.

What Moli does

Most agents that read the web drive a full Chrome in the background. That works, but Chrome is heavy, and raw HTML is noisy for a model. Moli is a separate browser engine, not a Chrome wrapper, made for one job: open a page the way a real browser would, then give your agent text it can use.

You install one file with a short command (a shell script on Mac and Linux, PowerShell on Windows). There is no ChromeDriver or separate browser to install. Then you have two main commands:

  • moli fetch opens a page and prints it. You pick the output: Markdown, a "semantic tree" (a short outline of the page made for models), or, with layout turned on, a screenshot or a PDF.
  • moli serve starts a local server that speaks the same protocols as Chrome automation (CDP and WebDriver). Playwright can attach to it with connectOverCDP, so existing scripts can point at Moli instead of Chrome.

It runs page JavaScript on a V8 engine, and you can wait for a selector or run your own script on the page before it exports.

Why creators and agent builders care

If your agent reads many pages (research, price checks, collecting sources for a post), two things cost you: memory and tokens. The project's own tests claim Moli used about 92 MiB of memory per task against about 697 MiB for Chrome, and started much faster. Those are the team's numbers, not independent ones, so test on your own pages.

Markdown output also means fewer tokens per page than raw HTML, so your agent can read more for the same cost.

The repo includes a skills folder and a ready prompt you can give your coding agent so it installs Moli and its skills for you.

Who it's for

  • People building research or scraping agents that open lots of pages.
  • Anyone already using Playwright who wants a lighter browser on a small server.
  • Creators who want an agent to turn articles into clean notes or source lists.

What to watch out for

  • It is not Chrome. In the project's own benchmark of 1,308 tasks, Moli passed about 82% while Chrome passed almost all of them. Some sites will break. Keep Chrome as a fallback.
  • No visual fidelity. No GPU, no high quality Canvas, WebGL or video playback. Screenshots are software rendered and won't match Chrome pixel for pixel.
  • Early version. The benchmarks cite version 0.1.1, and the GitHub releases list was empty when checked. Expect changes.
  • Not an MCP server. The README does not describe a built in MCP server, so plan to call it through the command line or Playwright.
  • Cloud option exists. Lexmount sells a managed cloud browser, but the README says the open source browser works fully without it.
  • License: Apache-2.0 or MIT, your choice. Bundled third party parts keep their own licenses. The repo has around 18k stars on GitHub.

Source: lexmount/moli on GitHub

More AI tools and ready prompts at masterphub.io

Share this article