Reference
Configuration
The options and environment variables Pelican reads.
| Option | Environment | Default | What it does |
|---|---|---|---|
-p, --port | PELICAN_PORT | 7860 | Port to listen on |
-H, --host | PELICAN_HOST | 127.0.0.1 | Address to listen on |
--name | PELICAN_MACHINE | host name | Name shown for this computer |
--no-auth | PELICAN_AUTH=none | Ask no one to sign in, when a proxy in front authenticates | |
--no-terminal | No terminal; ! commands still run | ||
--open | Open Pelican in this computer’s browser | ||
--demo | Made-up sessions; nothing runs | ||
-v, --version | The versions of Pelican, Claude Code, the Agent SDK and Node | ||
PELICAN_PUBLIC_URL | The address phones use to reach Pelican, such as https://laptop.example.ts.net; Pelican answers to it and takes changes from it | ||
PELICAN_ALLOWED_ORIGINS | Comma-separated origins allowed to make changes, besides Pelican’s own and the public address | ||
PELICAN_ALLOWED_HOSTS | Host names to answer to, besides this computer’s names and addresses, loopback and *.ts.net | ||
PELICAN_TRUSTED_PROXY | 1: believe X-Forwarded-For from a proxy on this computer, so sign-in limits count each client | ||
PELICAN_FRAME_ANCESTORS | Origins allowed to show Pelican in a frame, besides its own | ||
PELICAN_SESSION_URL | Where a tapped notification opens a session ({id} is replaced), for a page that embeds Pelican | ||
PELICAN_KEEP_AWAKE | 0: let the computer sleep while Claude works | ||
PELICAN_IDLE_CLOSE_MS | 30 min | How long an idle Claude process stays open; the next message resumes the session | |
PELICAN_CLAUDE_PATH | claude on PATH | The Claude Code executable to run, where it is not the first claude on PATH nor where its installer put it (Which Claude Code runs) | |
CLAUDE_CONFIG_DIR | ~/.claude | Where Claude Code keeps its sessions | |
PELICAN_CONFIG_DIR | ~/.config/pelican | The access token and the password hash | |
PELICAN_STATE_DIR | ~/.local/state/pelican | Uploads, push keys and subscriptions, the folders you trusted, the folders in the system’s temp folder you started sessions in, the sessions you pinned or archived, and the Agent SDK Pelican fetched | |
PELICAN_SCRATCH_DIR | ~/scratch | Where sessions started without a project get their folders |
pelican token prints the link that signs a browser in (Pelican shows it at start only on a terminal, never in a log), and pelican token --reset makes a new token. pelican password sets a password, which replaces the token until pelican password --off removes it. A new token or password signs every browser out at once, with no restart. pelican login signs Claude Code in. pelican phone is under Use it from your phone, and pelican service under Keep it running. If the port is taken, Pelican says whether it already runs there; pelican token and pelican phone find a running Pelican’s port by themselves.