Skip to content

Self-host basics

Required env vars

VarPurpose
KANNA_HOMEData directory (defaults to ~/.kanna/)
KANNA_PORTHTTP port (defaults to 3210)
KANNA_PASSWORDHTTP/WS/API password gate (recommended for exposed deployments)

OAuth pool

For subscription billing, register OAuth tokens via the UI (Settings → OAuth Pool) or seed KANNA_HOME/oauth-pool.json directly. See OAuth Pool Admin.

Persistence

All Kanna state lives under $KANNA_HOME:

  • chats/ — chat transcripts, events
  • projects/ — project metadata
  • oauth-pool.json — registered OAuth tokens
  • settings.json — user settings

Back this directory up. Losing it loses chat history.

Reverse proxy

Kanna does not terminate TLS itself. Front it with Caddy / nginx / Cloudflare Tunnel. Enable KANNA_PASSWORD if exposing publicly.