Tutorial
Put a Node or Python app online
Your app runs on your computer. Your agent adds one file to it, sends it to Kazibo, and gives you its address.
You built an app with Claude Code or Cursor: an Express, Flask, FastAPI or Next.js server. It runs on localhost:3000. The goal: the same app, at an address you can send.
Before you start
- Kazibo connected to your coding agent, Claude Code, Codex or Cursor: connect your agent.
- The agent open in the project's folder.
What you say
use kazibo to put this app online
What happens
- The agent reads the project: the language, the dependencies, the command that starts the server.
- It adds a single file,
configuration.nix, that describes how to build and run the app. The rest of the project doesn't change. - It creates the app on Kazibo and writes its name down in
.kazibo/app.json: next session, it will know where to deploy. - Kazibo installs the dependencies, from
package-lock.jsonor the list of Python packages, starts the server and checks that it answers. - If something is off, the error tells the agent what to fix: a server listening on
localhostinstead of0.0.0.0, a hard-coded port, a forgotten file. It fixes it and tries again, without you.
Secrets
Your .env file, with its API keys, never goes with the files. Your agent gets a one-time link and sends the .env through it, or gives you the link to fill in a form. The values go straight into the app's machine, without going through the conversation.
my app needs its Stripe key: set it as a secret
Iterating
Change whatever you want locally, then say "deploy again". Kazibo rebuilds the app; if the new version doesn't start, the old one stays online while the agent fixes it.
Going further
- A database: an app with a database.
- Accounts for your users: add sign-in with Kazibo.
- A problem online: "show me the server's latest errors". The agent reads the machine's logs.
For the curious: the configuration of a Node app
The app is built from package-lock.json, then run by a service that restarts if it crashes:
{ lib, pkgs, ... }:
let
app = pkgs.buildNpmPackage {
pname = "app";
version = "1.0.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.difference ./. ./configuration.nix;
};
npmDeps = pkgs.importNpmLock { npmRoot = ./.; };
npmConfigHook = pkgs.importNpmLock.npmConfigHook;
dontNpmBuild = true;
installPhase = "cp -r . $out";
};
in
{
systemd.services.app = {
wantedBy = [ "multi-user.target" ];
environment.NODE_ENV = "production";
serviceConfig = {
ExecStart = "${pkgs.nodejs}/bin/node ${app}/server.js";
WorkingDirectory = app;
DynamicUser = true;
StateDirectory = "app";
Restart = "always";
};
};
system.stateVersion = "26.05";
}The server listens on 0.0.0.0 and reads its port from PORT, which Kazibo provides.
For the curious: the configuration of a Python app
A Flask app served by gunicorn; the packages come from nixpkgs:
{ pkgs, ... }:
let
python = pkgs.python3.withPackages (p: [
p.flask
p.gunicorn
]);
in
{
systemd.services.app = {
wantedBy = [ "multi-user.target" ];
environment = {
PYTHONUNBUFFERED = "1";
FORWARDED_ALLOW_IPS = "*";
};
serviceConfig = {
ExecStart = "${python}/bin/gunicorn --bind 0.0.0.0:\${PORT} --chdir ${./.} app:app";
DynamicUser = true;
StateDirectory = "app";
Restart = "always";
};
};
system.stateVersion = "26.05";
}