The desktop app
Anvil's desktop app: manage Laravel and other local apps, worktrees, logs, requests, mail, services, PHP versions and settings from one window.
The app has a menu bar icon (on Windows, in the notification area). On launch the app starts Anvil, enabled services and autostart applications. To build it yourself, see Installation.
Closing the window keeps Anvil running in the menu bar (the notification area on Windows); on
macOS so do ⌘Q (Close Anvil Windows) and quitting from the Dock. Quit Anvil and Stop
Everything (⌥⌘Q), or the same item in the menu bar menu, stops everything. So does killing Anvil (logout, kill, Ctrl-C); leftover dev processes are
stopped on the next start. Changes apply right away.
Confirmations ask in the window, in a small bubble or in the row itself, never in a system dialog.
On Windows and Linux, shortcuts use Ctrl instead of ⌘, and the app says File Explorer (Windows) or File Manager (Linux) for Finder.
Applications

The list
- Applications show by name, without the suffix. Search, filter by type or running only, and sort by name or date modified.
- Order: your groups first (Favorites on top), then one section per parked folder, then linked folders.
- Worktrees fold out from the
⑂ 2 ›chip after the name. They hang under the application with a branch glyph, green while running. - The lock before each address is green and closed for HTTPS, red and open for HTTP. Toggle it with Use HTTPS in the right-click menu. Folders and Docker Compose projects have no address and show a grey folder or stack.
- The + button: New Application…, Add Folder of Applications… (park) and Add Application Folder… (link). On macOS, the first two are also in the File menu.
- A folder added with Add Folder of Applications… that is itself one project isn't parked. Anvil offers Add It as One Application instead.
Title bar
- Set up Anvil (or Finish setup) shows while a one-time step is missing. It opens a list of the steps, each with what it does, whether it asks for your password, and its own button. Nothing runs until you click one. See Getting started.
- Update available opens Restart to update and What's new; see Updates.
- The serving button (top right) starts Anvil. While serving, it opens a menu with the served count, Restart and Stop.
Application tabs
- Header: name, address (more aliases in a popover), type, last edit and Git branch. A
worktree shows
worktree of <app>. On the right: Finder, Terminal and editor buttons, and the state (Stopped,3 running,1 running, 1 crashed), which opens the Dev tab. - Overview: a
Dev · 3 of 4 runningline (Containers · …for Docker Compose), then address, folder and web root. Extra lines show when they apply:- Mail, when the app's
.envsends mail to an Anvil Mailpit: Open inbox, or Start while Mailpit is stopped. With Mail catcher on, it says Caught by Anvil, with Show mail. - mysqli, for a WordPress site on a PHP an earlier Anvil installed without it: Build mysqli; see WordPress.
- Public address, with Tunnel on.
- Browser (
3 errors since 17:40), with Browser errors on. - Aliases: one row per address, with Remove (the folder stays) and Add Alias. A worktree's aliases come from its application and are changed there.
- Mail, when the app's
- Git (repositories only): branch, changes, last commit, remote, and a button for your Git app. New Worktree… adds a worktree; see Worktrees.
- Resources: disk use with clean-up, processes and services.
- Settings: type for every app; Web root for PHP and static apps. PHP apps get PHP version, php.ini
and PHP extensions. Other apps get start command, port, language version (not for .NET, which
follows
global.json) and Start with Anvil. All but static sites get Browser errors. Git repositories also set what a new worktree gets; see Worktrees.- Changing the type, start command, port or version of a running app restarts it; the field
says
Restarting blog…. Changing php.ini restarts the web server. Start with Anvil restarts nothing.
- Changing the type, start command, port or version of a running app restarts it; the field
says


Dev and Containers

Dev has Start/Stop, live process output, one-off scripts from Run ▾, and Configure; see Dev processes. Containers does the same for Docker Compose; see Docker Compose.
Each process has a dot: green running, amber while its port doesn't answer yet, red crashed, grey stopped. A crashed process says Exited with code N. All processes turns red when one has crashed.

Logs

Every log file of the application (Laravel, Symfony, PHP-FPM), parsed and live. Filter by All, Errors or Warnings, or search.
- Repeats fold into one row (×24).
- An entry expands to its context and stack trace. App frames come first, vendor frames are folded, and frames open in your editor.
- Plain-text logs render as a terminal.
- Files over 100 MB open only on request.
Requests

Every request served for the application, its worktrees and extra domains, newest first: time, method, status, path, duration and size. New ones arrive while the tab is open.
- Filter by status class, method or path. Show assets adds Vite, Next.js and other static files.
- A row opens to its request and response headers, protocol, TLS and remote address.
- Cookie, Set-Cookie, Authorization and Proxy-Authorization are stored as
REDACTED.
The log is ~/.anvil/log/requests/<app>.log (rolled at 2 MiB), cleaned with the application's
logs. CLI: anvil app requests; see the
CLI reference.
With Request log off, no requests are logged and the tab is gone.

With Mail catcher on, each application has a Mail tab: its mail, newest first (time, from, to, subject, attachments, size), live while open.
- A message opens as sandboxed HTML (no scripts; remote images only after Load remote images), Text, Headers or Source.
- Save puts an attachment in Downloads. Delete and Clear remove mail.
- Catch mail off leaves the application to its own mail settings.
Browser errors
A switch in each application's Settings tab, off by default (anvil app browser <site> --on).
Static sites don't have it.
When on, the app's pages, in any browser, report to Anvil for agents and
anvil app browser:
- JavaScript errors with stack frames, unhandled rejections,
console.errorandconsole.warn - failed fetch/XHR and responses of 400 or more
- resources that didn't load, CSP violations and deprecations
- page load timings
No project file changes. Anvil adds one small script before </head> of HTML pages; JSON,
fragments, redirects, downloads and SSE are left alone. For PHP your own auto_prepend_file
still runs. A page whose Content-Security-Policy would block the script gets none, and the
Settings tab and Overview say so.
The script sends only to the page's own origin. No cookies, storage, form values, bodies, headers
or addresses are kept. The log is ~/.anvil/log/browser/<app>.log, cleanable in Settings › Storage.
Packages

- Tiles: the framework and its version, with its platform requirements; the updates and the advisories the last check found. Check for updates and Check security run only when you click them. A tile with findings opens them in a window: installed → latest (majors called out), or the advisory's severity, title, CVE and affected versions. Its foot has Check again and an Update… per package manager, which asks there first.
- Key packages show as badges with their installed versions. By default these are the detected ones (Laravel, Livewire, Tailwind, Vite, PHP, Node.js…). × unpins a badge, + pins any installed package, Reset brings back the defaults. A worktree follows its application until it changes its own.
- Package managers: a row each, saying whether
vendor/ornode_modulesis installed and what the checks found, with View. Composer and the JS package manager get Install packages and Update packages… (asks first); the output opens in a window, with Show in Dev. An npm or yarn app also gets Switch… to pnpm.
Logs and Packages are hidden while there's nothing in them.
New application

New… (⌘N) creates an application from a template; see New applications. Use Existing Folder… serves an existing project and detects its type.
- A template whose PHP or runtime isn't installed says so in the form, with an Install button, before anything is made.
- Once created, Open in Browser opens the app. With the web server stopped the button is Show and selects it in the sidebar.
Processes window

Open it with the pulse icon in the toolbar. Tabs:
- Apps: applications, processes and containers.
- Services.
- Anvil: its own Caddy, PHP-FPM (php-cgi on Windows) and DNS.
- Agents: actions by AI agents and the terminal (e.g.
Claude Code restarted api), newest first.
In the first three, rows show port, PID, CPU, memory and status. Right-click for Restart, Stop and Open in Browser. Click an application header to fold it; click a row to follow its live log in a side pane. If Docker can't list containers, the window says why.

Services
In the sidebar next to Applications; see Services.
Settings

The Settings sidebar: General, Worktrees, Storage, Performance (Windows) and Shortcuts; then Languages; then Features, with a page under it for each feature that has settings of its own, once it is on; About at the bottom.
General
Application folders, launch at login, Dock icon (macOS), notifications, theme, editor, terminal and Git client. Under Addresses: the application address and HTTPS for new applications (existing ones keep theirs). Advanced holds the domain, ports and configuration files.
Languages
A page each for PHP, Node.js, Go, Rust, .NET and Python.
- Install; an installed version's ⋯ menu, at the end of its row, has Uninstall… (asks in the row). PHP's also has Make default; only PHP has a default.
- Pinned versions show Pinned by with the applications, and can't be uninstalled until unpinned.
- PHP's Update automatically keeps each version on its newest patch; off, a version shows Update to the new one. See Updates.
- A click on an installed PHP version opens its extensions, with how many are on: OPcache first (Built in, with a switch), then switches for the PHP extensions every app on that version gets. On Linux, extensions can't be added yet. The PHP page also lists Composer global packages and holds the php.ini limits for all applications.
- Node.js apps use their pin, else the version in
.anvil.toml,.nvmrcor.node-versionif installed, else the newest. The Node.js page shows which npm, pnpm, yarn and bun apps and the terminal get, and installs a missing one.
Worktrees
What a new worktree gets, a preset per application type, and whether the database is copied by default; see Worktrees.
Storage


Anvil's footprint, each application's size, and Delete Logs and Caches in All Applications. The pnpm store shows with its path, size and Prune.
Trim application logs weekly is on by default and runs only while the Anvil app is open:
storage/logsfiles over 10 MB keep their last 1 MB.- Daily logs older than 14 days are deleted.
- Anvil's own logs stay under 5 MB.
Clean Rust builds is off by default, as it deletes build folders. On, once a day while the Anvil app is open, it looks at each stopped Rust application:
- Code unchanged for 7 days: its
targetfolder is deleted. - Otherwise, if you installed cargo-sweep yourself:
cargo sweep --time 30removes the build files no build used in 30 days.
Features

Each feature is off until you turn it on, except Request log.
Request log
On by default. The web server keeps each app's requests for its Requests tab. Off,
nothing is written, apps lose the Requests tab, and anvil app requests and the agents'
requests tool say "Turn on Request log in Settings › Features".
Agents (MCP)
Agents use anvil mcp. They act on the application (or worktree) of the folder they run in,
unless told otherwise. They can:
- list applications and processes
- start, stop and restart applications, and start and stop services (needs the desktop app open)
- read logs, requests, caught mail and browser errors
- ask what broke since they last looked: exits, new errors and warnings, new 5xx requests, new browser errors
- add and remove worktrees
- change an application's PHP or Node.js version, HTTPS, aliases and its processes' autostart
- list a PHP version's extensions (built in, Anvil's, your own, and its php.ini path) with
php_extensions, and turn one from Anvil's list on or off withphp_extension
Limits:
- Removing a worktree is refused while it runs, has uncommitted or unpushed work, or has files
Git doesn't track (a SQLite database, an edited
.env). It never drops a database. - Nothing irreversible is exposed: no dropping databases, deleting service data, cleaning up or uninstalling.
- Start commands and php.ini are off-limits, so agents can't choose what Anvil runs.
- Each tool is marked read-only or destructive for the agent's own permission prompts. Log, request, mail and browser text is marked as untrusted.
See the CLI reference.
Mail catcher
An SMTP server inside Anvil on 127.0.0.1:2525 (mail_port). It stores mail and never sends it
on.
- Each application gets its own inbox. Its processes, terminal
phpand web requests getMAIL_MAILER=smtp,MAIL_HOST,MAIL_PORTandMAIL_USERNAME=<app>(plusMAIL_URLandMAILER_DSN). These win over.envin Laravel and Symfony, so no project file changes. - WordPress sites made by Anvil send through a must-use plugin. Existing WordPress sites' mail isn't caught.
- A running process gets them when it restarts.
- Test runs keep their own mailer (
MAIL_MAILER=arrayinphpunit.xml). - An inbox keeps the newest 500 messages or 50 MB, in
~/.anvil/mail/<app>, cleanable in Settings › Storage. - Mail from no known application shows on the feature's page.
Mailpit stays available as a service.
Database viewer
Adminer at db.test, served by the default PHP.
- Turning it on downloads Adminer into
~/.anvil/adminer, cleanable in Settings › Storage. Turning it off stops serving it and keeps the download. - Browse opens it logged in: on a MySQL or PostgreSQL service, on each of its databases, and on an application's Overview Database line.
- Only Anvil's own services on 127.0.0.1 and SQLite files inside application folders open without a password.
- It makes no requests to adminer.org.
- An application named
dbkeepsdb.test; the feature then says the viewer isn't served.
Tunnel

An application's Overview gets Public address. Share… (after a confirm) opens a
Cloudflare quick tunnel, no account needed, and shows the https://…trycloudflare.com address
with Copy and Stop.
- The address is temporary and changes every time. Turning on the app's HTTPS while shared keeps it working.
- One tunnel per application. It ends when the application's server or Anvil stops, and never starts on its own.
- The app sees the public host (
X-Forwarded-Host,X-Forwarded-Proto), so Laravel links use it when the app trusts proxies. Otherwise the line says links still point to.test. - cloudflared downloads on the first Share into
~/.anvil/tunnel, cleanable in Settings › Storage.
CLI: anvil app share <site> until Ctrl-C.
Updates
Check for Updates… (in the Anvil menu on macOS, the menu bar menu on Windows) opens the Software Update window. It checks, shows what's new in a newer version, and offers Restart to update. Apps running now start again after the restart. Settings › About has the same button.
Menu bar
Open Anvil, Update to X… when a newer version is found, status, Start/Stop, Restart, Default PHP Version, Show Anvil Logs in Finder, Settings, and Quit Anvil and Stop Everything (⌥⌘Q). On Windows the menu always has Check for Updates…; on Linux, use Settings › About. Control applications and services from the window.
Keyboard shortcuts
On macOS all are also in the File, View and Application menus. On Windows and Linux, use Ctrl for ⌘; Ctrl+1 … Ctrl+9 open the tabs in the order they show, and the two quit keys don't exist.
| Applications window | |
|---|---|
| New application | ⌘N |
| Search applications | ⌘F |
| Move through the list | ↑ ↓ |
| Show or hide an application's worktrees | ← → |
| Overview, Git, Dev, Logs, Packages, Resources, Settings tabs | ⌘1 … ⌘7 |
| Open in browser | ⌘O |
| Open in editor | ⌘E |
| Open Terminal in the application | ⌘T |
| Logs tab | ⌘L |
| Open in your Git app | ⌘G |
| Reload applications | ⌘R |
| Settings | ⌘, |
| Close Anvil's windows, keep everything running | ⌘Q |
| Quit Anvil and stop everything | ⌥⌘Q |
Services
Run MySQL, PostgreSQL, Redis, Mailpit and S3 storage as local Anvil services, add Docker containers and servers elsewhere, pick their ports and connect your applications.
CLI reference
Reference for every anvil CLI command, covering sites, worktrees, PHP versions and extensions, language runtimes, services, databases and local HTTPS.