Deploy to Kernova Cloud
Deploy to Kernova Cloud
Prerequisites
- A Kernova Cloud account → Sign up at kernova-cloud.vercel.app
- An API key → Create one in Dashboard → Settings
Login
kernova login --key kn_live_your_api_key_hereThis saves your credentials to ~/.kernova/credentials.json.
Deploy
From your project directory:
kernova deploy
# Also send your environment variables (stored encrypted, kept for later deploys)kernova deploy --env-file .env.localThat’s it. The CLI will:
- Package the project, leaving out
node_modules,.env*,.git, virtualenvs, caches, local data, and anything in.kernovaignore - Upload it to Kernova Cloud
- Build it in a sandbox (with your Dockerfile, or one Kernova writes for the stack it detects)
- Start it with your secrets, its own Postgres database, and anything
kernova.jsonasks for - Stream the build log, and print your live URL
✅ Deployed
URL: https://my-app.kernova.siteA version that fails to build or start never replaces the one that’s live.
Deploy any app
Kernova Cloud runs more than Kernova projects. With no setup, it builds and runs:
| Stack | Detected from | Runs |
|---|---|---|
| Next.js | next in package.json | next start (a static export is served as files) |
| Static sites: Vite, React, Astro, Vue, Angular, SvelteKit, Gatsby, Docusaurus… | the builder in package.json | built, then served (with index.html for client-side routes) |
| Node.js: Express, Fastify, Hono, NestJS, Remix, Nuxt… | package.json | your start script (or start:prod) |
| Bun, Deno | bun.lock, deno.json | bun run start, deno task start |
| Python: FastAPI, Django, Flask, Streamlit, Gradio… | requirements.txt, pyproject.toml (uv, Poetry), Pipfile | uvicorn, gunicorn, or the framework’s server |
| Go, Rust | go.mod, Cargo.toml | the compiled binary |
| Ruby: Rails, Sinatra, Rack | Gemfile | rails server, puma, rackup |
| PHP, Laravel | composer.json, index.php | Apache |
| Plain HTML | index.html | served as files |
| Anything else | a Dockerfile | your image |
Your app should listen on 0.0.0.0 and the port in $PORT. If it listens on another port, Kernova finds it.
kernova.json
Optional settings, at the top of the project:
{ "type": "web", "build": "npm run build:prod", "start": "node server.js", "port": 8080, "crons": [{ "path": "/api/digest", "schedule": "0 8 * * *" }], "redis": true, "volumes": ["/app/uploads"]}| Setting | What it does |
|---|---|
type | "web" (default) serves HTTP. "worker" runs in the background with no web address, for bots and queue consumers (paid plans) |
build, start | Commands instead of the detected ones |
port | Where the app listens |
crons | Kernova calls GET <path> on each schedule (UTC), waking the app if it sleeps, with Authorization: Bearer $CRON_SECRET. A vercel.json crons list works too |
redis | A private Redis-compatible store for the app, in REDIS_URL |
volumes | Folders that keep their files across deploys and restarts |
Check the cron header in your handler:
export async function GET(req: Request) { if (req.headers.get('authorization') !== `Bearer ${process.env.CRON_SECRET}`) { return new Response('Unauthorized', { status: 401 }); } // … the job return new Response('ok');}What Gets Deployed
| Part | What Happens |
|---|---|
Your app (app/, agents, or any server) | One container, sandboxed with gVisor, on its own network |
kernova-data/ | Kept on a volume across deploys and restarts |
| Database | Its own Postgres database (with pgvector) in DATABASE_URL, unless you set one |
| Secrets | Injected as environment variables (and available to build steps, for NEXT_PUBLIC_…) |
Deploy Options
# Deploy everything (default)kernova deploy
# Send these environment variables tookernova deploy --env-file .env.local
# Deploy only agents (skip frontend)kernova deploy --agents-only
# Deploy only frontendkernova deploy --app-onlyEnvironment Variables
Secrets you add in Dashboard → Secrets (or send with --env-file) are injected into your deployment as environment variables. Your agents can access them:
// In your toolsexecute: async (params, ctx) => { const apiKey = ctx.env.MY_SECRET_KEY; // ← from Kernova Cloud vault}Kernova also sets PORT, HOST=0.0.0.0, DATABASE_URL, KERNOVA_PUBLIC_URL (the app’s address), REDIS_URL (with "redis": true), and CRON_SECRET (with crons).
Custom Domains
After deploying, add a custom domain in Dashboard → Projects → [Your Project] → Domains:
- Add your domain (e.g.,
agents.mycompany.com) - Point it at Kernova Cloud: a CNAME to
cname.kernova.sitefor a subdomain, or an A record to the address the dashboard shows for a root domain (on Cloudflare, “DNS only”) - Press Verify. Once DNS points here, the domain is live with HTTPS
Plans & Limits
| Plan | Runs | Resources | Crons |
|---|---|---|---|
| Hobby (free) | Sleeps after 10 minutes idle, wakes on the next request | 512 MB, ½ CPU | 2, at most hourly |
| Pro | Always on; workers | 1 GB, 1 CPU | 40, every minute |
| Team | Always on; workers | 2 GB, 2 CPUs | 100 |
| Enterprise | Always on; workers | 4 GB+, 2 CPUs | 200 |
Free apps that keep their whole CPU busy for half an hour (crypto mining and the like) are paused.
Checking Deployment Status
# The CLI polls automatically after deploy# You can also check manually:curl -H "Authorization: Bearer kn_live_xxx" \ https://kernova-cloud.vercel.app/api/deploy/DEPLOYMENT_IDSelf-Hosting
If you prefer to host yourself:
# Generate Docker artifactskernova deploy docker
# Build and rundocker build -t my-app .docker run -p 3000:3000 --env-file .env.local my-appOr use the Node.js entry:
kernova deploy nodekernova buildNODE_ENV=production npx tsx start.tsRollbacks
If a deployment fails, the previous version stays live. Kernova Cloud never takes down a working deployment for a failed one.
To manually roll back, redeploy a previous commit:
git checkout previous-tagkernova deploy