Skip to Content
KanoDocs
Self-Hosting & Security

Self-Hosting Deployment Guide

Deploy Kano on Railway, Coolify, or Docker, configure environment variables, connect Git sync, and run backups and upgrades.

Once your infrastructure prerequisites are ready (see System & Infrastructure Requirements), you can launch a production Kano team server in under 15 minutes.

Option 1: Managed PaaS (Railway — fastest setup)

Deploying on a single-container PaaS like Railway provides automatic HTTPS, persistent disk on /data, and zero server maintenance:

  1. Create a service from your Kano deployment image or template with a persistent volume mounted at /data and port 3000 exposed.
  2. Add the required environment variables (KANO_AUTH, KANO_BASE_URL, AUTH_SECRET, KANO_SECRET_KEY, and Google OAuth or KANO_SETUP_TOKEN).
  3. Set the healthcheck path to /api/health (300s startup timeout) and keep replicas set to 1.
  4. Once deployed, update your Google OAuth redirect URI (if using Google sign-in) to https://<your-domain>/api/auth/callback/google and sign in as the first admin.

Option 2: Docker / Coolify / Kubernetes

Run the official Kano server image provided with your deployment package on any Linux host or container orchestrator:

docker run -d --name kano -p 3000:3000 \
  -v kano-workspace:/data/workspace \
  -v kano-db:/data/db \
  -e KANO_AUTH=oauth \
  -e KANO_BASE_URL=https://pm.yourcompany.com \
  -e NEXTAUTH_URL=https://pm.yourcompany.com \
  -e AUTH_SECRET="$(openssl rand -base64 32)" \
  -e KANO_SECRET_KEY="$(openssl rand -base64 32)" \
  -e KANO_ADMIN_EMAILS=admin@yourcompany.com \
  -e KANO_SETUP_TOKEN="$(openssl rand -base64 24)" \
  -e KANO_LICENSE="KANO1...." \
  <kano-container-image>

Route HTTPS traffic (https://pm.yourcompany.com) through your reverse proxy to port 3000 with response buffering disabled for Server-Sent Events.

VariableRequired?Description
KANO_AUTHYesoauth (Google OAuth + email/password) or oidc (Enterprise SSO)
KANO_BASE_URLYesPublic https:// URL with no trailing slash (must match OAuth callbacks)
NEXTAUTH_URLYesSet equal to KANO_BASE_URL
AUTH_SECRETYes32-byte random string (openssl rand -base64 32) signing browser sessions
KANO_SECRET_KEYYes32-byte random string encrypting UI-entered API keys and connector credentials
KANO_SETUP_TOKENYes (unless Google OAuth is set)One-time key (24+ chars) to create the initial administrator account on /signin
AUTH_GOOGLE_ID / AUTH_GOOGLE_SECRETRecommendedGoogle OAuth client credentials
ALLOWED_EMAIL_DOMAINRecommendedComma-separated corporate domain(s) allowed to sign in (e.g. acme.com)
KANO_ADMIN_EMAILSRecommendedComma-separated emails automatically granted Admin role on sign-in
KANO_DEFAULT_ROLEOptionalRole assigned to new teammates (viewer default, commenter, or editor)
GIT_REMOTE_URLRecommendedHTTPS or SSH URL of your private workspace Git repository
GITHUB_TOKEN / GIT_SSH_KEYWith Git syncWrite token or SSH private key for GIT_REMOTE_URL (GIT_SYNC_INTERVAL_S defaults to 300)
KANO_LICENSETeam/EnterpriseYour KANO1.… offline licence string (can also be pasted in Settings → Licence)

First-boot setup & Git sync

  • First administrator: If you started with KANO_SETUP_TOKEN, visit /signin immediately after deploy, enter the token, and create your admin credentials (12+ character password). Once an admin exists, the setup screen permanently closes.
  • Repository initialization: If GIT_REMOTE_URL points to an empty repository, Kano seeds the workspace and pushes the initial structure automatically. If it points to an existing Kano repo, Kano clones it on first boot.
  • Conflict protection: If your hosted server and a local user modify the exact same lines simultaneously, Kano pauses sync rather than overwriting data, pushes the server snapshot to a sync-conflict/... branch, and surfaces exact merge instructions in the UI banner.

Operations, backups & upgrades

  • Backups: With GIT_REMOTE_URL configured, every product change is continuously backed up in Git. Schedule nightly snapshots of /data/db to preserve user accounts, API tokens, encrypted vault entries, and agent run queues across server rebuilds.
  • Upgrades: Pull the new Kano image tag and restart the container. If release notes specify a schema upgrade, run kano migrate inside the container (docker exec -it kano kano migrate).
  • Separate worker (optional): For large teams, run a second container against the same /data/workspace and /data/db volumes executing kano worker, and set KANO_WORKER=off on the web container.

On this page