Skip to content

Documentation

Learn how to install, configure and integrate Pigeon.

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.

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.

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.

Data flow, synchronization and the on-disk storage layout.