# Quick Start

> Install Pigeon, start the server and add your first mail account.

---

LLMS index: [llms.txt](/llms.txt)

---

Get Pigeon running and pull your first messages in a few minutes.

## Install and run

One-line install on Linux (detects x86_64 / aarch64, downloads the latest
release into `/usr/local/bin` or `~/.local/bin`):

```bash
curl -fsSL https://raw.githubusercontent.com/mars-base/pigeon/main/scripts/install.sh | bash
```

Pin a version or directory with `bash -s -- --version v0.1.0 --prefix ~/.local/bin`.
Or build from source: `make build && sudo install -m 0755 pigeon /usr/local/bin/`.

Start the server:

```bash
pigeon serve      # http://127.0.0.1:8787
```

## API Token

On first start Pigeon creates `~/.pigeon`, generates an encryption key
and prints an initial API token once:

```
level=INFO msg="created initial API token (shown once, keep it safe)" token=pigeon_…
level=INFO msg="pigeon is listening" url=http://127.0.0.1:8787
```

Keep the token — the web UI and remote clients ask for it (requests from the
loopback address are exempt).

## Open the browser

Visit http://127.0.0.1:8787, paste the API token when prompted, then add your
email account with its password (an app-specific password for Gmail, QQ Mail
and 163). Pigeon detects the provider settings and loads the most recent week
of mail.

---

Backlinks:

- [Documentation](/docs/)
- [Features](/docs/features/)
