Documentation
Pigeon is a local-first email client in a single Go binary. It syncs IMAP accounts into SQLite and exposes them through a REST API, an MCP server and a command-line digest.
Start with the quick start, then jump to the guide for the feature you need. The REST API guides are split by business area.
- Quick Start — Install, run and add your first account
- Tokens & Auth — Manage API tokens for remote access
- CLI —
pigeon digestand other commands - Backup & Restore — Back up the database and secret key, and restore safely
- Supported Providers — Mailbox providers recognised out of the box
- REST API Basics — Base URL, authentication, errors and conventions
- Accounts & Autodetection — Create accounts and detect provider settings
- Mailboxes & Sync — Mailbox listing, counts and IMAP synchronization
- Messages & Flags — Read mail, fetch bodies and change flags
- Search — Search the local cache across accounts
- Sending Mail — Send over SMTP and archive to the Sent mailbox
- MCP Server — Connect AI clients over stdio or HTTP
- Security & Deployment — Encryption, tokens and running remotely
- Architecture — Components, data flow and storage layout
Install Pigeon, start the server and add your first mail account.
What makes Pigeon different — the highlights at a glance.
Create, list and revoke API tokens for remote clients and agents.
Serve, sync, digest and token management from the terminal.
Back up the database, secret key and manifest into one archive, and restore it safely.
Base URL, authentication, error format and the endpoint map.
Mail providers Pigeon recognises out of the box.
Create, list, update and delete mail accounts, and detect provider settings.
List mailboxes, read counts and run incremental IMAP synchronization.
List and read mail, fetch bodies lazily and change read or flagged state.
Search cached mail across mailboxes and accounts.
Send mail over SMTP and archive a copy to the Sent mailbox.
Read and update web UI settings shared by every browser.
Connect AI clients to Pigeon over stdio or Streamable HTTP.
How Pigeon protects credentials and tokens, and how to run it remotely.
Data flow, synchronization and the on-disk storage layout.