Caddy
$ caddy Official Med Riskcaddy runs production HTTP/HTTPS servers and reverse proxies with zero-config Let's Encrypt TLS. Its CLI supports validating configs (caddy validate), converting Caddyfiles to native JSON (caddy adapt), formatting (caddy fmt), and spinning up ad-hoc proxies without interactive prompts.
brew install caddy Local web server, reverse proxy, and Caddyfile-to-JSON compiler; managed directly via CLI or its local admin API.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Caddy's native configuration is JSON (caddy adapt), logs are structured JSON by default, and caddy validate / caddy fmt --diff run deterministically without prompts.
caddy adaptoutputs canonical JSON config; structured JSON logging- Non-interactive
validate,fmt, andreloadcommands
Validation and formatting are read-only/safe, while caddy run/reload binds network ports and can trigger live ACME certificate issuance.
caddy validatecatches errors before live reload- Running live instances binds ports and contacts ACME CAs
Single static Go binary with zero external dependencies across macOS, Linux, and Windows.
- Static Go binary across Homebrew, apt, Docker, and GitHub Releases
Replaces multi-tool NGINX + Certbot setups for quick reverse proxies, static servers, and automatic HTTPS.
- Built-in
file-server,reverse-proxy, ACME TLS, andadapt
Official caddyserver/caddy project under Apache-2.0 with active maintenance.
- Official
caddyserver/caddyrepo under Apache-2.0
Thorough official docs at caddyserver.com/docs/ covering CLI commands, Caddyfile, and JSON schema.
- Detailed CLI and JSON config docs at caddyserver.com/docs/
Security, Auth & Guardrails
Stores managed ACME/TLS certificates in local XDG data dirs (~/.local/share/caddy or /var/lib/caddy); optional DNS plugin tokens via env vars.
Apache-2.0 open-source; completely free.
# Caddy Agent Rules - Always run `caddy validate --config ./Caddyfile` after editing config files. - Use `caddy adapt --config ./Caddyfile` to inspect exact JSON routes before `caddy reload`. - Never bind privileged ports (`80`/`443`) or issue live ACME certificates in test loops without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
caddy adapt --config ./Caddyfile --pretty
Translates a Caddyfile into Caddy's native JSON config on stdout without starting a server.
caddy validate --config ./Caddyfile
Checks configuration syntax and adapter validity offline with exit code 0 on success.
Controlled Writes & Previews
caddy fmt --overwrite ./Caddyfile
Formats the local Caddyfile canonically (caddy fmt --diff previews changes first).
Strengths for Agents
- +
caddy adaptandcaddy validateprovide deterministic JSON inspection and pre-flight checks. - + Single static Go binary integrates web serving, reverse proxying, and automatic HTTPS.
- + Supports
caddy fmt --difffor clean non-mutating formatting checks.
Caveats & Pitfalls
- !
caddy run/caddy startbinds ports and may contact Let's Encrypt unlesslocal_certsor--internalis configured. - ! CLI status subcommands like
caddy versionorcaddy list-modulesoutput plain text.