hytte -h prints the same list. Short flags can be combined with long ones, and --flag value and --flag=value both work.
Flag
Default
Meaning
-p, --port
8000
Port to listen on
-b, --bind
0.0.0.0
Address to bind to. Use 127.0.0.1 behind a proxy or tunnel.
-d, --data-dir
.hytte
Directory for the database, uploads and keys. See Data and backups .
--db
<data-dir>/hytte.db
SQLite database path
--max-upload
52428800 (50 MiB)
Largest upload in bytes, 0 = unlimited
--domain
first --le-domains
Stable public hostname, see below
-t, --tunnel
Public HTTPS URL via a quick tunnel
--tunnel-token
$HYTTE_TUNNEL_TOKEN
Named Cloudflare tunnel token. Implies --tunnel and needs --domain.
The hostname people use, such as chat.example.com (no https://, path or port). It:
enables passkeys and security keys , which are bound to a hostname (the WebAuthn relying-party ID). localhost works without it;
sets the session cookie’s domain when the request comes in on that hostname;
is used in the contact for Web Push (VAPID).
Set it behind a reverse proxy and with a named tunnel. With Let’s Encrypt it defaults to the first of --le-domains.
Flag
Default
Meaning
-i, --persist-images
off
Upload pasted images as (encrypted) files instead of embedding them in the (encrypted) message
-g, --giphy-key
$GIPHY_API_KEY
Giphy API key , enables /giphy
Flag
Meaning
-r, --open-registration
Anyone can sign up on the login page. Without the flag, the admin panel decides (invite-only until changed there). With the flag, the setting is locked.
--require-mfa
Every account must set up two-factor authentication. Without the flag, the admin panel decides. With it, the setting is locked.
-u, --create-user NAME
Create an account, print a one-time setup link and exit
--make-admin NAME
Make a user an admin and exit. The first account is one automatically.
--reset-mfa NAME
Remove a user’s two-factor methods (authenticator app, security keys, passkeys, backup codes) and exit
The account commands work on the database given by -d/--db, also while the server is running.
Flag
Default
Meaning
-s, --tls
HTTPS with a self-signed certificate , generated once and kept in <data-dir>/tls
--cert, --key
HTTPS with your own certificate and key
-l, --lets-encrypt
HTTPS with Let’s Encrypt , auto-renewed
--le-domains
Domain(s) for Let’s Encrypt, comma-separated
--le-email
Contact email for the Let’s Encrypt account (optional)
--le-http
80
Local port for the HTTP-01 challenge
--le-tls
443
Local port for the TLS-ALPN-01 challenge
--le-staging
Use the Let’s Encrypt staging CA for testing
Flag
Meaning
-v, --version
Print the version and exit
-h, --help
Show the help
Variable
Same as
HYTTE_TUNNEL_TOKEN
--tunnel-token. Prefer it, because a flag shows up in ps.
GIPHY_API_KEY
--giphy-key
hytte # local, invite-only
hytte -u alice # add a user (prints a setup link)
hytte -t # public URL via a quick tunnel
hytte -s -t # self-signed HTTPS + tunnel
HYTTE_TUNNEL_TOKEN = … hytte --domain chat.example.com
hytte --cert server.crt --key server.key
hytte -p 443 -l --le-domains chat.example.com