moli-cdp-server
Skill7.8k starsChanged 2 months agoApache-2.0View on GitHub
Start Moli's CDP server and connect Playwright, Puppeteer, or raw CDP clients. Use to run a headless-browser CDP endpoint, replace a Chromium process, attach over CDP, enable real layout and screenshot surfaces, or diagnose CDP discovery, connection, and target startup—even when Moli is not named.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about lexmount/moli
- @bruces.mastodon.social.ap.brid.gy“*Web browsers built for the convenience of AI agents. https://github.com/lexmount/moli”Bluesky · Aug 20, 2026 · 2 likes
- @agentpalisade.bsky.social“Moli, a Rust headless browser from Lexmount, skips real layout and paint by default and builds a frozen …”Bluesky · Oct 1, 2026 · 1 likes
- lexmount/Lexbench-Headless-Browser“Align Moli automation profile and explicit viewport preconditions”GitHub · Sep 22, 2026
- dhamaniasad/HeadlessBrowsers“Add Moli to browser engines”GitHub · Sep 11, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- moli-webfetchSkill
- moli-websearchSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run one Moli CDP server and connect the requested CDP client to its endpoint.
- Very specific: line 32
Start moli serve on the default loopback endpoint http://127.0.0.1:9222.
- Very specific: line 34
Add --layout when the workflow needs real element geometry, coordinate input, screenshots, PDFs, or screencasts.
- Very specific: line 62
Treat Moli as a remote endpoint.
- Distinctive: line 66
Use a unique port for parallel isolated runs.
- Distinctive: line 72
Read references/protocols.md for CDP discovery URLs, server options, client selection, and connection troubleshooting.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Moli's CDP Server
Run one Moli CDP server and connect the requested CDP client to its endpoint. Preserve the client's existing API where Moli supports it.
Workflow
Resolve
molifromPATH. If it is unavailable, install the latest prebuilt release for the current platform:Linux or macOS:
curl --proto '=https' --tlsv1.2 -fsSL \ https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | shOn Windows, use PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/lexmount/moli/releases/latest/download/moli-installer.ps1 | iex"Resolve the installed binary again and run
moli --version. The default location is~/.local/bin/molion Linux/macOS and%LOCALAPPDATA%\Moli\bin\moli.exeon Windows when it is not yet onPATH.- Start
moli serveon the default loopback endpointhttp://127.0.0.1:9222. - Add
--layoutwhen the workflow needs real element geometry, coordinate input, screenshots, PDFs, or screencasts. Add--resourceonly when all optional visual/media resources are required. - Probe
/json/versionbefore connecting the client. - Connect with the client's remote/attach API; do not launch a second bundled browser.
- Close CDP clients cleanly, then stop the Moli server if this workflow owns it.
Playwright over CDP
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP("http://127.0.0.1:9222");
const context = browser.contexts()[0];
const page = context.pages()[0] ?? await context.newPage();
await page.goto("https://example.com");
console.log(await page.locator("body").innerText());
await browser.close();Integration rules
- Bind to
127.0.0.1by default. Expose another host only when the user explicitly needs remote access and has addressed network access controls. - Treat Moli as a remote endpoint. Avoid Chrome launch flags and assumptions that require a local Chromium executable.
- Expect selected CDP coverage, not complete Chrome protocol parity. Preserve explicit unsupported errors.
- Use a unique port for parallel isolated runs.
- Persist state intentionally with
--profile-dir; otherwise keep runs disposable. - Pass proxy, cookie, resource, user-agent, and private-network policy to the Moli server, not to a nonexistent child browser process.
Read references/protocols.md for CDP discovery URLs, server options, client selection, and connection troubleshooting.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

