Pelican Docs

Reference

Configuration

The options and environment variables Pelican reads.

OptionEnvironmentDefaultWhat it does
-p, --portPELICAN_PORT7860Port to listen on
-H, --hostPELICAN_HOST127.0.0.1Address to listen on
--namePELICAN_MACHINEhost nameName shown for this computer
--no-authPELICAN_AUTH=noneAsk no one to sign in, when a proxy in front authenticates
--no-terminalNo terminal; ! commands still run
--openOpen Pelican in this computer’s browser
--demoMade-up sessions; nothing runs
-v, --versionThe versions of Pelican, Claude Code, the Agent SDK and Node
PELICAN_PUBLIC_URLThe address phones use to reach Pelican, such as https://laptop.example.ts.net; Pelican answers to it and takes changes from it
PELICAN_ALLOWED_ORIGINSComma-separated origins allowed to make changes, besides Pelican’s own and the public address
PELICAN_ALLOWED_HOSTSHost names to answer to, besides this computer’s names and addresses, loopback and *.ts.net
PELICAN_TRUSTED_PROXY1: believe X-Forwarded-For from a proxy on this computer, so sign-in limits count each client
PELICAN_FRAME_ANCESTORSOrigins allowed to show Pelican in a frame, besides its own
PELICAN_SESSION_URLWhere a tapped notification opens a session ({id} is replaced), for a page that embeds Pelican
PELICAN_KEEP_AWAKE0: let the computer sleep while Claude works
PELICAN_IDLE_CLOSE_MS30 minHow long an idle Claude process stays open; the next message resumes the session
PELICAN_CLAUDE_PATHclaude on PATHThe 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~/.claudeWhere Claude Code keeps its sessions
PELICAN_CONFIG_DIR~/.config/pelicanThe access token and the password hash
PELICAN_STATE_DIR~/.local/state/pelicanUploads, 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~/scratchWhere 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.