« All posts

Lerd: An Open-Source, Rootless Herd Alternative for Linux and macOS

Lerd is an open-source, rootless Podman-based PHP dev environment for Linux and macOS, offering Herd-like .test domains, TLS and AI-agent integration.

Lerd is a newly announced open-source local PHP development environment built for Linux and macOS, with beta Windows support via WSL2. Positioned as an alternative to Laravel Herd, it runs Nginx, PHP-FPM and project services inside rootless Podman containers, eliminating any dependency on Docker or sudo.

The tool provides automatic .test domains with self-renewing TLS, per-project PHP version switching (7.4 through 8.5), Node.js isolation, and one-click provisioning for services like MySQL, PostgreSQL, Redis and Meilisearch. It also includes framework auto-detection for Laravel, Symfony, WordPress, Drupal, Magento, CakePHP and Statamic.

Beyond basic environment management, Lerd bundles a debug window that intercepts dump()/dd() calls and SQL queries, an SPX-based flame graph profiler, request timing analytics with p95 metrics, and an in-browser Tinker REPL with LSP-powered autocomplete. It ships both a web dashboard and a terminal UI (lerd tui), alongside an MCP server that lets AI assistants such as Claude Code, Cursor and GitHub Copilot manage the environment directly.

For engineers, Lerd's appeal lies in pairing Herd-like ease of use with Podman's rootless, daemonless security model on Linux — a gap Docker-based tools haven't fully addressed — while adding deep observability and built-in AI-agent integration.