Skip to content

Deploy to Kernova Cloud

Deploy to Kernova Cloud

Prerequisites

  1. A Kernova Cloud account → Sign up at kernova-cloud.vercel.app
  2. An API key → Create one in Dashboard → Settings

Login

Terminal window
kernova login --key kn_live_your_api_key_here

This saves your credentials to ~/.kernova/credentials.json.

Deploy

From your project directory:

Terminal window
kernova deploy
# Also send your environment variables (stored encrypted, kept for later deploys)
kernova deploy --env-file .env.local

That’s it. The CLI will:

  1. Package the project, leaving out node_modules, .env*, .git, virtualenvs, caches, local data, and anything in .kernovaignore
  2. Upload it to Kernova Cloud
  3. Build it in a sandbox (with your Dockerfile, or one Kernova writes for the stack it detects)
  4. Start it with your secrets, its own Postgres database, and anything kernova.json asks for
  5. Stream the build log, and print your live URL
✅ Deployed
URL: https://my-app.kernova.site

A 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:

StackDetected fromRuns
Next.jsnext in package.jsonnext start (a static export is served as files)
Static sites: Vite, React, Astro, Vue, Angular, SvelteKit, Gatsby, Docusaurus…the builder in package.jsonbuilt, then served (with index.html for client-side routes)
Node.js: Express, Fastify, Hono, NestJS, Remix, Nuxt…package.jsonyour start script (or start:prod)
Bun, Denobun.lock, deno.jsonbun run start, deno task start
Python: FastAPI, Django, Flask, Streamlit, Gradio…requirements.txt, pyproject.toml (uv, Poetry), Pipfileuvicorn, gunicorn, or the framework’s server
Go, Rustgo.mod, Cargo.tomlthe compiled binary
Ruby: Rails, Sinatra, RackGemfilerails server, puma, rackup
PHP, Laravelcomposer.json, index.phpApache
Plain HTMLindex.htmlserved as files
Anything elsea Dockerfileyour 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"]
}
SettingWhat it does
type"web" (default) serves HTTP. "worker" runs in the background with no web address, for bots and queue consumers (paid plans)
build, startCommands instead of the detected ones
portWhere the app listens
cronsKernova 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
redisA private Redis-compatible store for the app, in REDIS_URL
volumesFolders 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

PartWhat 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
DatabaseIts own Postgres database (with pgvector) in DATABASE_URL, unless you set one
SecretsInjected as environment variables (and available to build steps, for NEXT_PUBLIC_…)

Deploy Options

Terminal window
# Deploy everything (default)
kernova deploy
# Send these environment variables too
kernova deploy --env-file .env.local
# Deploy only agents (skip frontend)
kernova deploy --agents-only
# Deploy only frontend
kernova deploy --app-only

Environment 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 tools
execute: 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:

  1. Add your domain (e.g., agents.mycompany.com)
  2. Point it at Kernova Cloud: a CNAME to cname.kernova.site for a subdomain, or an A record to the address the dashboard shows for a root domain (on Cloudflare, “DNS only”)
  3. Press Verify. Once DNS points here, the domain is live with HTTPS

Plans & Limits

PlanRunsResourcesCrons
Hobby (free)Sleeps after 10 minutes idle, wakes on the next request512 MB, ½ CPU2, at most hourly
ProAlways on; workers1 GB, 1 CPU40, every minute
TeamAlways on; workers2 GB, 2 CPUs100
EnterpriseAlways on; workers4 GB+, 2 CPUs200

Free apps that keep their whole CPU busy for half an hour (crypto mining and the like) are paused.

Checking Deployment Status

Terminal window
# 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_ID

Self-Hosting

If you prefer to host yourself:

Terminal window
# Generate Docker artifacts
kernova deploy docker
# Build and run
docker build -t my-app .
docker run -p 3000:3000 --env-file .env.local my-app

Or use the Node.js entry:

Terminal window
kernova deploy node
kernova build
NODE_ENV=production npx tsx start.ts

Rollbacks

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:

Terminal window
git checkout previous-tag
kernova deploy