System requirements

Anvil system requirements on macOS, Windows and Linux: supported versions, the tools to install, the ports it listens on and what setup asks permission for.

Platform

Status
macOS15 (Sequoia) or newer recommended; Anvil itself runs from 12 (Monterey)
Windows10 or 11, 64-bit; Python and Rust come later (beta)
Linuxx86_64, glibc 2.35 or newer: Ubuntu 22.04+, Debian 12+, Fedora, Arch (beta)

On macOS 12 to 14, Anvil, PHP and the web server work, but some downloads need a newer macOS: MySQL needs 14, PostgreSQL 15, Mailpit 13 and Node.js 24 or later 13.5. Anvil says so before downloading. When Anvil picks the Node.js LTS itself, an older Mac gets the newest one that runs there (22).

Tools

macOS

Install the Xcode command line tools:

xcode-select --install

Anvil uses their compiler to build Redis, PHP extensions and Swoole, and their git for Git status and worktrees.

Windows

Install Git for Git status, worktrees and a repository in new applications. Install Git in the app does it with winget, or run:

winget install Git.Git

Nothing else is needed: PHP, most extensions and the services come ready-built, and PHP includes OPcache. Redis runs as Garnet.

Linux

The app needs WebKitGTK 4.1; the .deb brings it. The first MySQL and Redis install builds part of them from source, which needs gcc and make. Git status and worktrees use git.

All platforms

Templates for new applications need the matching language installed in Anvil first: Node.js for Next.js, Nuxt and Vite; Go, .NET, Rust or Python for theirs; PHP for the PHP templates. Anvil downloads Composer itself.

Docker services use the Docker on your computer; Anvil doesn't install it.

Ports

Anvil's servers listen only on loopback: 127.0.0.1, and ::1 for the web server. Applications with their own dev server are told to do the same.

macOSWindowsLinux
HTTP8080; 80 forwarded to it808080
HTTPS8443; 443 forwarded to it4438443
DNS for *.test (UDP)535453Not used yet

macOS lets only administrators listen below 1024, so setup forwards 80 and 443 once. Windows needs no forward. On Linux, addresses keep the port for now: http://<name>.localhost:8080. You can change these ports in Configuration.

Services and dev servers use the same ports everywhere:

PortWhat
3306MySQL
5432PostgreSQL
6379Redis
1025, 8025Mailpit SMTP and web inbox
7070, 7071Versity S3 Gateway API and web console
9000, 9001SILO API and web console
41000–44999Applications with their own dev server, one port each
45000–48999Extra dev servers of an application (a second dev script), one port each

When a service port is taken, Anvil suggests the next free one. Change a service's port in its settings.

Permissions

Anvil runs as your user. Set up Anvil in the app asks for permission once. With the CLI, anvil setup prints or runs what's needed; after the first anvil start, run anvil setup again for the certificate.

macOS

One password prompt:

StepWhat it doesWithout it
Local domainsCreates /etc/resolver/test*.test addresses don't open. Not needed with .localhost (anvil tld localhost)
Standard portsInstalls the dev.anvil.ports LaunchDaemon, which forwards 80 and 443 at every boot. /etc/pf.conf is not touchedAddresses need the port, e.g. http://<name>.test:8080
HTTPS certificateTrusts the local CA in the System keychain. If macOS refuses, the app uses the login keychain (second prompt); with the CLI, run anvil trustHTTPS works, but the browser warns about the certificate

Windows

One administrator prompt:

StepWhat it doesWithout it
Local domainsAdds a Name Resolution Policy rule sending .test to 127.0.0.1*.test addresses don't open
HTTPS certificateTrusts the local CA in the machine's Trusted Root store. anvil trust adds it to your user's store instead, without administrator rightsHTTPS works, but the browser warns about the certificate

Ports 80 and 443 need no step. See On Windows.

Linux

No prompt yet. Anvil starts on .localhost, which needs no setup; .test addresses, ports 80 and 443 and HTTPS trust come in a later release. See On Linux.

All platforms

Setup also puts the terminal commands on your PATH, without a password. See Getting started. anvil uninstall undoes all of it.

Build from source

On macOS: the Xcode command line tools, Rust 1.90 or newer, and, for the desktop app, Node.js and pnpm. See Installation.

On this page