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
# 1. Generate a master key once, and keep a copy of master.key somewhere safe
test -s master.key || (umask 077 && docker run --rm postkeep/postkeep generate-key > master.key)
# 2. From the folder with master.key, start the server behind your HTTPS proxy
docker run -d --name postkeep -p 127.0.0.1:8080:8080 \
-v postkeep:/data \
-e POSTKEEP_PUBLIC_URL=https://mail.example.com \
-e POSTKEEP_MASTER_KEY="$(cat master.key)" \
-e POSTKEEP_ALLOWED_EMAILS=alice@example.com \
postkeep/postkeepDocker 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# 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=Binary
# Rust 1.94 or newer
cargo build --release
# Generate a master key once, and keep a copy of master.key somewhere safe
test -s master.key || (umask 077 && ./target/release/postkeep generate-key > master.key)
export POSTKEEP_BIND=127.0.0.1:8080
export POSTKEEP_PUBLIC_URL=https://mail.example.com
export POSTKEEP_MASTER_KEY_FILE=$PWD/master.key
export POSTKEEP_ALLOWED_EMAILS=alice@example.com
./target/release/postkeep serveAdd 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.
postkeep Cloud
Hosted for you. It isn’t open yet.
OverviewSettingsBilling
OverviewWorkspace ops · Free
Mailboxes1of 2Free plan
Mailboxes1 of 2 in use
ops@northwind.exampleGmailConnectedDisconnect
Add a mailbox
Mailboxes your agent can reach. To add one, ask your agent.To add one, ask your agent.
Message for your agentCopy message
Connect my Gmail to postkeep- 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.
postkeep Cloud is built on this open-source server.