Skip to content
Menu

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.

October 23, 2026 · 2 min read

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

To your agent

use kazibo to put this app online

What happens

use kazibo to put this app onlinereading the project: Express, package-lock.json, server.jsadding configuration.nixcreating the app todo, sending the filesbuilding the dependencies, startinghttps://todo-k3j9x2m4qa.kazibo.app
  1. The agent reads the project: the language, the dependencies, the command that starts the server.
  2. It adds a single file, configuration.nix, that describes how to build and run the app. The rest of the project doesn't change.
  3. It creates the app on Kazibo and writes its name down in .kazibo/app.json: next session, it will know where to deploy.
  4. Kazibo installs the dependencies, from package-lock.json or the list of Python packages, starts the server and checks that it answers.
  5. If something is off, the error tells the agent what to fix: a server listening on localhost instead of 0.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.

To your agent

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

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:

nix
{ 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:

nix
{ 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";
}