Skip to main content
PercherPercher

Password protection

SITE_PASSWORD env + [web] password = true

Password-protect your site so only people with the password can access it. Visitors see a branded login page — no browser popup.

# 1. Enable in percher.toml
[web]
port = 3000
password = true

# 2. Set the password
bunx percher env set SITE_PASSWORD=your-secret-here

# 3. Deploy
bunx percher publish

All plans. No extra cost. Visitors who enter the correct password get a 7-day cookie — they won't be asked again until it expires.

← PrevEnvironment variablesNext →Deploy history and retention
Percher — AI-native app hosting