Skip to content

Caddy

Go web server and reverse proxy that turns on HTTPS automatically

Permissive (OSI) · Apache-2.0
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

87

Health

Thriving

Overview

Stars

79,482

Last commit

today

Nov 2026

Repository age

11 years

since Jan 2015

Latest version

v2.11.9

Nov 2026

Contributors

–

32 active in 90 days

Releases

8

last 12 months

Language

Go

Caddy is an extensible web server and reverse proxy written in Go. It uses TLS by default and obtains and renews certificates on its own, using Let's Encrypt or ZeroSSL for public names and a local certificate authority for internal names and IPs. It supports HTTP/1.1, HTTP/2 and HTTP/3, and Encrypted ClientHello.

You configure it with a short Caddyfile, with native JSON, or through a JSON API that changes the config while it runs. Config adapters let you write in other formats. Caddy is a single binary with no external dependencies, not even libc, and runs on Linux and macOS, among others. Plugins can be added by building a custom binary with the xcaddy tool.

The project began in 2015, ships under Apache 2.0, and had 8 releases last year. It is a free alternative to Nginx or Apache for people who want HTTPS without managing certificates by hand. Building from source needs Go 1.26 or newer.

Who it's for

Self-hosters running several apps behind one domain

A few Caddyfile lines proxy each app and handle its certificate.

Skip if: You rely on Nginx-specific modules or existing Nginx configs you cannot rewrite.

Small teams that want HTTPS without certificate chores

Automatic issuance and renewal remove a recurring manual task.

Skip if: Your certificates are issued by a separate internal system you must keep using.

Developers who need to change config at runtime

The JSON API lets you update settings without a restart.

Skip if: You prefer static config files managed only by your existing tooling.

The problem it solves

Running a web server with valid HTTPS usually means installing certificates, setting up renewals and tuning config. Caddy handles certificates itself, so you can serve a site or proxy an app with a short config.

Strengths

  • Automatic HTTPS with Let's Encrypt or ZeroSSL and a local CA
  • HTTP/1.1, HTTP/2 and HTTP/3 supported by default
  • Single binary with no external dependencies
  • Config through Caddyfile, JSON, or a live JSON API
  • Modular design with plugins added using xcaddy

Trade-offs

  • Adding plugins means building a custom binary
  • Fewer legacy modules and guides than older servers
  • Building from source requires Go 1.26 or newer

Self-host Caddy

Self-hostable
Yes

Frequently asked questions

Is Caddy free?

Yes. It is open source under the Apache 2.0 license.

Does it handle HTTPS certificates itself?

Yes. It uses Let's Encrypt or ZeroSSL for public names and its own local CA for internal names and IPs.

Can I self-host it?

Yes. You run it as a single binary on your own server.

How do I add plugins?

You build a custom binary with the xcaddy tool, which adds the plugins you choose.

Similar tools in Reverse proxies and web servers

NGINX

Reverse proxies and web servers

Web server, reverse proxy and load balancer for sites and API traffic on Linux and BSD

33k 8.4k 4 days ago Thriving BSD-2-Clause

proxy.py

Reverse proxies and web servers

Python HTTP proxy with plugins for filtering, caching and TLS interception

3.6k 625 2 years ago Dormant BSD-3-Clause

uwsgi

Reverse proxies and web servers

Application server for running Python and other web apps behind a web server

3.6k 696 13 months ago Dormant GPL-2.0-or-later

harp

Reverse proxies and web servers

5k 334 5 months ago Slowing Unknown

Apache HTTP Server

Reverse proxies and web servers

Long-running web server with modules, for hosting sites on Linux, macOS and more

4.1k 1.3k today Active Apache-2.0

Tinyproxy

Reverse proxies and web servers

Small HTTP and HTTPS proxy daemon for small networks and low-resource servers

6.1k 770 today Active GPL-2.0