Cloud or self-host

Run postkeep yourself, free under the MIT License, or, once it opens, let postkeep Cloud run it for you.

Self-host

You run it, and you own it.

Docker Compose

# App plus Caddy, which gets the HTTPS certificate for you
git clone https://github.com/postkeep/postkeep.git
cd postkeep/deploy/compose
cp -i .env.example .env && chmod 600 .env
# Generate MASTER_KEY once, and keep a copy somewhere safe
docker run --rm postkeep/postkeep generate-key
# edit .env: PUBLIC_URL, MASTER_KEY, ALLOWED_EMAILS, DOMAIN, CLIENT_IP_HEADER
docker compose --profile caddy up -d
.env
# Public HTTPS origin users and MCP clients reach, without a path.
PUBLIC_URL=https://mail.example.com

# Back it up: without it, stored passwords can't be decrypted.
MASTER_KEY=

# Optional: comma-separated email addresses allowed to connect.
ALLOWED_EMAILS=

# Domain for the optional Caddy profile (usually PUBLIC_URL's host).
DOMAIN=mail.example.com

# X-Forwarded-For for the bundled Caddy profile. Leave empty without a proxy.
CLIENT_IP_HEADER=

Add this address to your agent app: https://mail.example.com/mcp

  • Your server, your database and your master key.
  • Every setting is yours: which providers to offer, who can connect, how long alerts are kept.
  • Read the code, and change it to suit you.

Get started

postkeep Cloud

Hosted for you. It isn’t open yet.

  • Free for 2 mailboxes, no card.
  • You type your app password on a one-time postkeep page, so it stays out of the chat.
  • People with roles, and keys that can be limited, on Business.

About postkeep Cloud

postkeep Cloud is built on this open-source server.