Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Caddy

$ caddy Official Med Risk
Caddy · Cloud & Infra · Apache-2.0 · macos / linux / windows

caddy 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.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install caddy
CLI vs MCP Decision CLI Only

Local web server, reverse proxy, and Caddyfile-to-JSON compiler; managed directly via CLI or its local admin API.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

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 adapt outputs canonical JSON config; structured JSON logging
  • Non-interactive validate, fmt, and reload commands
Trust & Safety 21 / 25

Validation and formatting are read-only/safe, while caddy run/reload binds network ports and can trigger live ACME certificate issuance.

  • caddy validate catches errors before live reload
  • Running live instances binds ports and contacts ACME CAs
Setup & Portability 15 / 15

Single static Go binary with zero external dependencies across macOS, Linux, and Windows.

  • Static Go binary across Homebrew, apt, Docker, and GitHub Releases
Utility & Efficiency 14 / 15

Replaces multi-tool NGINX + Certbot setups for quick reverse proxies, static servers, and automatic HTTPS.

  • Built-in file-server, reverse-proxy, ACME TLS, and adapt
Maintenance & Lineage 9 / 10

Official caddyserver/caddy project under Apache-2.0 with active maintenance.

  • Official caddyserver/caddy repo under Apache-2.0
Docs & Verifiability 9 / 10

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

Auth Modes
No Auth Config File
Credential Storage

Stores managed ACME/TLS certificates in local XDG data dirs (~/.local/share/caddy or /var/lib/caddy); optional DNS plugin tokens via env vars.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Apache-2.0 open-source; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Convert Caddyfile to canonical JSON
caddy adapt --config ./Caddyfile --pretty

Translates a Caddyfile into Caddy's native JSON config on stdout without starting a server.

Validate Caddyfile before reloading
caddy validate --config ./Caddyfile

Checks configuration syntax and adapter validity offline with exit code 0 on success.

Controlled Writes & Previews

Format Caddyfile cleanly
caddy fmt --overwrite ./Caddyfile

Formats the local Caddyfile canonically (caddy fmt --diff previews changes first).

Strengths for Agents

  • + caddy adapt and caddy validate provide deterministic JSON inspection and pre-flight checks.
  • + Single static Go binary integrates web serving, reverse proxying, and automatic HTTPS.
  • + Supports caddy fmt --diff for clean non-mutating formatting checks.

Caveats & Pitfalls

  • ! caddy run / caddy start binds ports and may contact Let's Encrypt unless local_certs or --internal is configured.
  • ! CLI status subcommands like caddy version or caddy list-modules output plain text.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI