Lerd Local PHP development for Linux, macOS and Windows
Lerd gives each project a .test domain with HTTPS, its own PHP and Node versions, and the databases and services it needs, all running as rootless Podman containers. It's free and open source, with no Docker daemon.


What you get after one install.
An MCP server for Claude Code, Cursor and Codex.
Lerd comes with an MCP server, so the assistant you code with can manage your environment as well: link sites, change PHP versions, start services and workers, run artisan and composer, and look at what a request did. One command registers it with every assistant on the list below.
Manages the environment
site · service · workerLinks sites, switches PHP and Node versions, starts databases and caches, and runs queue workers and the scheduler.
Runs commands
execartisan, composer and the project's own console commands, on the PHP version the site uses.
Reads each request
request lensesN+1 and slow queries, exceptions, error logs and failed jobs for one request, looked up by its id.
Sees browser errors
diag browser_eventsJavaScript errors and failed fetches from the site's pages, once browser logs are on for that site.
Works in worktrees
worktree addEach worktree gets its own .test domain, its dependencies installed, and a database that is shared, cloned or empty.
Snapshots the database
db snapshotBefore a branch switch or a migration. Each snapshot records its branch, so the right one can be restored later.
Claude Code·Cursor·Codex CLI·Gemini CLI·Copilot·Junie·Antigravity·Windsurf·OpenCode
Frameworks Lerd already knows.
Your Node, Python and Rails apps, on the same .test domains.
lerd init recognises the project, picks its dev server and a free port, and runs it on the host, so file watching and hot reload behave as usual. Lerd restarts it if it dies, keeps its logs and puts nginx with TLS in front. Databases and services go into its .env like on any PHP site. Non-PHP apps guide →
Node.js
npm run devNext, Nuxt, NestJS, Vite, Angular or plain Express, on the Node version the project pins.
Python
manage.py runserverDjango starts with runserver on its own. Flask, FastAPI and the rest run your command.
Rails & Rack
bin/rails serverRails runs bin/rails server, a config.ru runs as Rack, and a mise or rbenv Ruby is found.
Go & Rust
go run . / cargo rungo run . and cargo run work out of the box, or Lerd runs your own file watcher in their place.
Containers
Containerfile.lerdIf you'd rather not install the runtime, Lerd writes a starter Containerfile and runs it rootless.
Databases, caches, search and mail.
MariaDB·Valkey·Memcached·Typesense·ClickHouse·OpenSearch·Solr·RabbitMQ·Kafka·Beanstalkd·Soketi·Mercure·Selenium·Gotenberg·LocalStack·SpamAssassin·pgvector·TimescaleDB
phpMyAdmin·Adminer·pgAdmin·Mongo Express·RedisInsight·Elasticvue·Typesense Dashboard·OpenSearch Dashboards·Kafbat UI
Community plugins for everything else.
A plugin adds what Lerd doesn't do yet: CLI commands, dashboard pages, site tabs, tools for AI assistants and hooks that run when something happens. Write one in any language that runs on your machine. Every plugin in the catalog is reviewed at the exact commit Lerd installs.
Linux, macOS and Windows.
Linux
Rootless Podman under systemd on Ubuntu, Fedora, Arch, Omarchy and any other systemd distro, with an Omarchy bar widget. No Docker daemon.
Linux install guide →macOS
Local PHP development on a Mac without a paid tier, using the same dashboard, TUI and MCP server. PHP-FPM and workers can also run natively on the host, in beta.
macOS install guide →Windows
Lerd runs inside WSL2 with the same CLI, dashboard, services and MCP server. The Windows installer sets it all up, and the WSL2 guide covers each step.
Windows install guide →How Lerd is built.
Rootless Podman
Containers run rootless under your own systemd user, with no daemon behind them.
Runs as you
Installs to ~/.local/bin. DNS, TLS and ports are set up without touching system files.
Detects your project
Frameworks are detected from the repo. An optional .lerd.yaml adds services or workers.
Updates within a day
Frameworks and services are versioned definitions that arrive without a release.
Open source, MIT
All of it is free and in one MIT-licensed binary, with no paid tier and no account.
Stays in your home
Everything lives under your home directory, so uninstalling leaves the machine as it was.
Lerd next to Herd, Laragon, DDEV, Lando and Sail.
| Lerd | Laravel Herd | Laragon | DDEV | Lando | Sail | |
|---|---|---|---|---|---|---|
| Runs on Linux | ✓ | ✕ | ✕ | ✓ | ✓ | ✓ |
| Runs on macOS | ✓ | ✓ | ✕ | ✓ | ✓ | ✓ |
| Runs on Windows | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| No Docker daemon | ✓ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Rootless | ✓ | ✓ | – | – | – | ✕ |
| Open source | ✓ | ✕ | ✕ | ✓ | ✓ | ✓ |
| Free, no paid tier | ✓ | – | – | ✓ | ✓ | ✓ |
| Automatic .test + TLS | ✓ | ✓ | ✓ | ✓ | – | ✕ |
| Zero required config | ✓ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Git worktrees as sites | ✓ | ✓ | ✕ | ✕ | ✕ | ✕ |
| Built-in Web UI | ✓ | ✓ | ✕ | – | ✕ | ✕ |
| Terminal dashboard | ✓ | ✕ | ✕ | ✕ | ✕ | ✕ |
| MCP server for AI agents | ✓ | ✓ | ✕ | ✕ | ✕ | ✕ |
| Profiler & debug window | ✓ | ✓ | ✕ | ✕ | ✕ | ✕ |
| Plugins | ✓ | ✕ | ✕ | ✓ | ✓ | ✕ |
Coming from another tool? See Laravel Herd for Linux, Laragon for Linux and the full comparison.
Free for everyone, with support when you need it.
Free forever
All of Lerd, for personal and commercial work. No paid tier, no account and no feature held back.
Install Lerd →Sponsor
Rely on Lerd? Sponsoring funds the time that keeps it maintained, adds new features and gets fixes out faster.
Become a sponsor →Commercial support
Using Lerd across a team? Support covers onboarding, priority fixes and help with your stack.
Get in touch →Questions people ask first.
Is Lerd free?
Yes. Lerd is MIT licensed and all of it is in the one binary, with no paid tier and no account.
Do I need Docker?
No. Lerd runs everything as rootless Podman containers under your own user, with no daemon. The installer offers to install Podman if it is missing.
Does it work on Windows?
Yes, inside WSL2. The Windows installer sets up WSL2, an Ubuntu distro with your Linux user, Lerd and the Lerd desktop app. Windows (WSL2) guide →
Do I have to change my project?
No. Lerd detects the framework from the repository and serves it as it is. An optional .lerd.yaml pins PHP and Node versions, services and workers.
Can it run next to a MySQL or PostgreSQL I already have?
Yes. When a database installed on the host already holds the default port, Lerd publishes its container on the next free port and writes that into the site .env.
Does Lerd work with Claude Code or Cursor?
Yes. Run lerd mcp:enable-global and Lerd's MCP server is registered with Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot in VS Code, Junie, Antigravity, Windsurf and OpenCode. The assistant can then manage sites, services, workers and databases, and run artisan and composer. Set up MCP →
Can I extend it?
Yes, with community plugins that add commands, dashboard pages, AI tools and services. Each one is reviewed at the exact commit Lerd installs. Browse community plugins →
How do I remove it?
Run lerd uninstall. It stops the containers and removes the units, the binary and the network, then asks whether to remove your data and the trusted certificate as well. What uninstall removes →
Install, then run lerd init.
The script installs Lerd and sets up DNS and certificates. Then cd into a project, run lerd init and open its .test address.