Moli on Railway

Open-source Rust headless browser for AI agents, behind a token gate, on Railway.

Official site · License: Apache-2.0 OR MIT · 3 Railway templates

Deploy Moli on RailwayCompare templates

Moli is an open-source headless browser for AI agents, written in Rust by Lexmount. One endpoint speaks the Chrome DevTools Protocol, WebDriver Classic and WebDriver BiDi, so Playwright, Puppeteer, Selenium and browser-use connect to it like a remote Chrome.

It is used as the browser behind AI agents, for scraping JavaScript-heavy pages, and for screenshots, PDFs and page monitoring, without running Chrome locally.

Moli has no login of its own, so an exposed instance is an open browser for anyone who finds it. Moli is licensed Apache-2.0 or MIT, at your option.

What Moli can do

  • CDP, WebDriver Classic and WebDriver BiDi on one endpoint
  • Works with Playwright, Puppeteer, Selenium and browser-use
  • DOM, text, HTML, screenshots and PDFs
  • Single Rust binary
  • Written by Lexmount and released for Linux x86_64 and aarch64

What people use it for

  • A remote browser for AI agents
  • Scraping and extraction of JavaScript-heavy pages
  • Screenshots, link previews and page monitoring
  • A drop-in for code that reads BROWSER_WS_ENDPOINT from a Browserless service

Videos

Moli: The Open-Source Headless Browser Built in Rust for AI Agents (Claude Code, Cursor, Codex) · Qwonc AI
Moli vs Chrome Headless: 7x Less RAM, but Slower · DIY Smart Code

Running Moli on Railway

The Railway template runs Moli 1.1.22 from the official release binary, checksum-verified, on loopback only, behind a small Node.js gate on the public domain. The gate requires a generated MOLI_TOKEN on every request and WebSocket, rewrites CDP discovery to your wss:// address, caps open sessions (10 by default), closes idle ones and blocks pages from reaching private networks. It is one service with no database and no volume, so cost is the CPU and memory in use plus egress.

Moli templates on Railway

Moli v1.1 Headless Browser for AI Agents (CDP)Maintained by Tracklayer
Moli is an open-source headless browser for AI agents, written in Rust by Lexmount, with one endpoint for CDP, WebDriver Classic and WebDriver BiDi. This template runs Moli 1.1.22
1 deployments
Deploy
Moli | Headless Browser for AI Agents (CDP, WebDriver, Playwright) by an independent creator
Rust headless browser for AI agents: CDP, WebDriver, Playwright, 30 MB
1 deployments
Deploy
Moli by an independent creator
Lightweight Rust headless browser for AI agents over CDP
0 deployments
Deploy

Tracklayer templates are listed first. Other Moli templates follow, ordered by total deployments on Railway. How this works.

Deployment numbers as of 2026-11-20.

Questions about Moli

How do I connect Playwright or Puppeteer?

Use the BROWSER_WS_ENDPOINT variable from the service, which includes your token. Variants for the Railway private network are also provided, for apps in the same project.

Is it safe to expose?

Moli has no login of its own, so the template keeps it on loopback and requires a token on every request. Keep the token private; anyone who has it can use the browser.

Can pages reach my other Railway services?

Not by default. Pages are blocked from private networks, including *.railway.internal.

Can I use it for scraping at scale?

Railway's Fair Use Policy forbids abusive scraping, proxies and bots. Use it for your own agents, monitoring and testing.

How do I upgrade?

The Moli version is pinned in the service's Dockerfile. Change it to a new release, which also needs the matching checksum, and redeploy.

Guides

Similar apps

Tracklayer maintains the templates marked as such; Moli is a trademark of its owners and this site is not affiliated with them.