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:
- Create a service from your Kano deployment image or template with a persistent volume mounted at
/dataand port3000exposed. - Add the required environment variables (
KANO_AUTH,KANO_BASE_URL,AUTH_SECRET,KANO_SECRET_KEY, and Google OAuth orKANO_SETUP_TOKEN). - Set the healthcheck path to
/api/health(300s startup timeout) and keep replicas set to1. - Once deployed, update your Google OAuth redirect URI (if using Google sign-in) to
https://<your-domain>/api/auth/callback/googleand 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.
Required & recommended environment variables
| Variable | Required? | Description |
|---|---|---|
KANO_AUTH | Yes | oauth (Google OAuth + email/password) or oidc (Enterprise SSO) |
KANO_BASE_URL | Yes | Public https:// URL with no trailing slash (must match OAuth callbacks) |
NEXTAUTH_URL | Yes | Set equal to KANO_BASE_URL |
AUTH_SECRET | Yes | 32-byte random string (openssl rand -base64 32) signing browser sessions |
KANO_SECRET_KEY | Yes | 32-byte random string encrypting UI-entered API keys and connector credentials |
KANO_SETUP_TOKEN | Yes (unless Google OAuth is set) | One-time key (24+ chars) to create the initial administrator account on /signin |
AUTH_GOOGLE_ID / AUTH_GOOGLE_SECRET | Recommended | Google OAuth client credentials |
ALLOWED_EMAIL_DOMAIN | Recommended | Comma-separated corporate domain(s) allowed to sign in (e.g. acme.com) |
KANO_ADMIN_EMAILS | Recommended | Comma-separated emails automatically granted Admin role on sign-in |
KANO_DEFAULT_ROLE | Optional | Role assigned to new teammates (viewer default, commenter, or editor) |
GIT_REMOTE_URL | Recommended | HTTPS or SSH URL of your private workspace Git repository |
GITHUB_TOKEN / GIT_SSH_KEY | With Git sync | Write token or SSH private key for GIT_REMOTE_URL (GIT_SYNC_INTERVAL_S defaults to 300) |
KANO_LICENSE | Team/Enterprise | Your 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/signinimmediately 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_URLpoints 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_URLconfigured, every product change is continuously backed up in Git. Schedule nightly snapshots of/data/dbto 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 migrateinside the container (docker exec -it kano kano migrate). - Separate worker (optional): For large teams, run a second container against the same
/data/workspaceand/data/dbvolumes executingkano worker, and setKANO_WORKER=offon the web container.
System & Infrastructure Requirements
Hardware sizing, storage, networking, reverse-proxy, outbound firewall, and identity prerequisites for self-hosting Kano.
Security, Roles & Compliance
How Kano protects customer data, authenticates users, enforces workspace roles, encrypts secrets, and logs audit trails.