Self-host open source Kortix, and close the unproven-address window
Self-hosting Kortix is closer to a normal deploy than the category suggests: one Docker Compose stack on a Linux server, a domain pointed at it, and three commands. Kortix is the open-source CompanyOS: your agents, their skills, your company memory, and every connector in one git repo you own, with the agents working on real cloud computers; it is the one I would self-host, and I work on Kortix's marketing, so weigh that accordingly.
What a fresh instance already gets right
The first hour of a self-hosted install decides how much of the instance is proven, and the defaults do more of that work than the install guide suggests.
Two ways to get it wrong, and both are quiet. An instance that is not reachable runs no sessions, because the sandbox cannot call the API back. Local mode says so in one line: no session runs there, and nothing outside the loopback reaches the API. The other mistake is subtler. A new instance confirms every sign-up without sending an email, so a sign-up's address is unproven until you set EMAIL_URL.
Who may sign up is a separate setting, and its default is the safe one. KORTIX_SIGNUP_MODE takes three values: invite, which accepts "only an address with a pending invitation (Members → Invite, or a SCIM user)" and is "the default on a domain or tunnel instance without EMAIL_URL"; open, which accepts anyone and is the default on a laptop instance and on an instance with EMAIL_URL; and closed, which accepts nobody (self-hosting docs). A domain install that has not set EMAIL_URL therefore starts in invite, and only invited addresses get in.
The admin address is not part of that question at all. "Nobody can claim an address in
KORTIX_PLATFORM_ADMIN_EMAILSby signing up.kortix self-host admin addcreates those accounts." The account that matters here is created by the operator, not by whoever finds the box first.
What is left is the unproven address, and it is worth closing. While ENABLE_EMAIL_AUTOCONFIRM is true, the API treats the email of a password, email-code or social login as unproven, and whoever signed up first holds the address. Set EMAIL_URL and every new account confirms by email. Set KORTIX_SIGNUP_MODE=open on a domain or tunnel instance without it and you have widened the door yourself: anyone who reaches the instance can then create a confirmed account for any address that is not an admin address, and doctor fails open-sign-up.
The control is a sequence, and it is shorter than it looks. The admin account is created, EMAIL_URL goes in, and the instance stops accepting unproven addresses. Where every account already exists, DISABLE_SIGNUP=true closes sign-up entirely, and it is stricter than closed: the auth service then also refuses the first SSO sign-in of a new person.
What you need before you start
Six things to arrange before the first start.
A Linux host with a public address, on x86_64 or arm64. A bootstrap installs Docker Engine and the Compose plugin where they are missing; where they already run, only the CLI is needed. The CLI itself also runs on macOS.
DNS, before the first start. A or AAAA records for <domain> and api.<domain>, both pointed at the server, because Caddy needs them to get the certificate. Add a wildcard *.p.<domain> for sandbox previews: without it, browser previews fall back to a path proxy that breaks root-absolute links, and doctor fails.
Inbound HTTP and HTTPS, 443 and 80, allowed by the firewall.
A Platinum API key. Without it, sessions do not start and projects have no Drive.
A model provider key, entered inside the app once the admin exists. Each project holds its own, and the self-hosted stack ships no managed model line.
Optional, and safe to defer: a *.apps.<domain> wildcard to host Apps, and COMPOSIO_API_KEY for the connector app catalog.
Two things belong on the checklist before the install, not after it. init writes .env with mode 0600, and API_KEY_SECRET in that file encrypts every stored secret, connector credential and token. A lost API_KEY_SECRET makes them unreadable, so copy the file somewhere safe before you invite anyone. The other is the sign-up lock: a mail server string for EMAIL_URL, a switch that closes the door once your team is in, or init --disable-signup on an install that mints accounts elsewhere.
The install, in the order that closes the window
The CLI installs one Docker Compose stack: every platform service, configured from four files, brought up by a single command and updated the same way.
First, DNS. Records before certificate, and before any service answers on 443.
Second, three commands on the server, in a shell where Docker and the Compose plugin are present. The first installs the CLI from kortix.com. The second writes the stack's files and sets the domain and the admin address. The third runs docker compose up and starts the services. A bootstrap script covers a bare server in one call: it installs Docker and the Compose plugin, installs the CLI, runs init, sets the domain and starts the stack, and re-running it is safe. Both paths end with the same four files on disk.
Third, create the admin account. Run kortix self-host admin add you@example.com: it creates a confirmed account, adds the address to KORTIX_PLATFORM_ADMIN_EMAILS when it is missing, and prints a one-time password. Sign in at https://<domain>/auth and change the password. A password, email-code or social sign-in matches that list; a SAML sign-in never does. Do this as soon as the stack answers, because everything after it depends on an admin existing.
Fourth, close the unproven-address window. Set
EMAIL_URLto an SMTP connection string: Kortix then confirms new accounts by email and adds magic-link sign-in. Where every account already exists, setDISABLE_SIGNUP=trueinstead, then runkortix self-host startso the auth service reads the value. With sign-up off, nobody signs up, the admin included, which is why this comes fourth and never second.
Then run kortix self-host doctor. Its open-sign-up check fails when a domain or tunnel instance has sign-up open and email confirmation off, so a passing run is the proof that the window is closed.
The rest of the first session is plumbing, and the account menu lives inside a project. Connect managed git at /admin/git, where Create a GitHub App is the recommended route. Create one project at /new on the admin account, open the project menu, then choose Switch Project and Create an account, because a personal account cannot hold SAML SSO and this is the only route to a team account. Build the team's project in that account, since a project cannot move between accounts. Add a model key under Customize, Models, Providers.
What lands on your disk, and what stays with the provider
kortix self-host init leaves four files in ~/.config/kortix/self-host/<instance>/: the Compose file, .env, the Caddy config and the updater script. kortix self-host start runs docker compose up, and one Compose project, kortix-<instance>, holds every service.
Inside it: the web app, the REST API at /v1, a standalone LLM gateway that Caddy points at, a one-shot migration job that runs before the API starts, and a daily updater that pulls images and rolls the app services. The Supabase distribution brings Postgres, auth, REST, storage, the pooler and Studio, and a capture store holds Kortix Capture recordings. Domain mode adds Caddy for TLS on 80 and 443; tunnel mode adds cloudflared instead. Only Caddy publishes a public port, and every other published port binds 127.0.0.1 (what runs where).
Self-host and the database, the files, the repos, the secrets and the audit record all sit on disk you control, on one Docker Compose stack built from the same images the managed cloud runs. The three app images come from Docker Hub without credentials, so the images a review asks about are the images a customer's instance runs.
The project repository is the company, in the sense that matters to a reviewer: agents, skills, rules and connectors live in it as files, so they can be read in the same place as the code.
Three things are not on that server. Sandboxes: every session runs in its own Platinum sandbox, which kortix-api creates with PLATINUM_API_KEY and which dials back to the API address you published. Volumes: each Drive and each App volume is a Platinum volume, so their data lives at Platinum. Model traffic: the gateway calls the providers your projects connect, on keys your projects hold.
It is not air-gapped, and we will not pretend otherwise: agent sandboxes run on the compute provider you configure, and your instance has to be reachable so they can call back.
Put that split in the architecture note. A network reviewer asks where the agent's machine runs before they ask anything else, and the answer has two halves.
Three modes, and which one to pick
Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.
| Mode | How you set it | Public URL | Sessions run |
|---|---|---|---|
| Modedomain | How you set it--domain <domain> | Public URLhttps://<domain> and https://api.<domain> | Sessions runyes, 2 replicas behind Caddy |
| Modetunnel | How you set it--tunnel cloudflare | Public URLAPI only, on a trycloudflare.com address | Sessions runyes, 1 replica |
| Modelocal | How you set itneither flag | Public URLnone, every port binds 127.0.0.1 | Sessions runno, nothing outside the loopback reaches the API |
Domain mode is the production setup, and the extra replica is the reason. The updater rolls kortix-api, llm-gateway and frontend behind Caddy, and with two replicas a new container has to pass its health check before the old one stops.
Tunnel mode is for a five-minute look on your own machine. The web app stays on http://localhost:13737 and only the API is public, at an https://<random>.trycloudflare.com address. That address changes every time cloudflared restarts, and start and update capture the new one. Every OAuth callback you registered against the old address breaks with it. For anything that has to survive a week, create a named tunnel in Cloudflare Zero Trust, point its hostname at http://kortix-api:8008, and set CLOUDFLARE_TUNNEL_TOKEN and CLOUDFLARE_TUNNEL_HOSTNAME with kortix self-host env set.
Local mode is the one to use when you only want to read the files. Nothing is public, and no session runs, so it answers a question about the stack and not about the product.
What to check on day two
kortix self-host doctor exits 0 when every check passes and 1 when one fails, and --json prints the result for a status page. The checks that fail in practice are open-sign-up, preview-origins, email-url and capture-store, and each one has a fix named in the output.
kortix self-host status reports the last update outcome (ok, degraded, failed, skipped or never-run), the version change, a drift check of running images against the configuration, and the schedule. The updater checks once a day at 02:00 in America/New_York by default. The stable channel carries a release Kortix promotes to self-hosted instances after it runs in production, latest carries every release, and a --tag pin wins over the channel.
/admin is the operator console. It shows live instance numbers refreshed every 15 seconds, every account and every project, where new sandboxes are placed, the instance's git identity, and a full-lockdown switch on /admin/utils. An admin. row in an account's audit log means the instance's platform admin acted on that account, so the log answers a question a security review will ask.
The audit record is a route, not a screen:
GET /v1/projects/:projectId/audit, filterable by action prefix, andkortix audit ls --action <prefix>reads the same rows from a terminal.
Then close the loop once by hand. Open a session in the project you created, let it produce something small, and merge its change request yourself. That is the first time work reaches main, and it is also the check that the review step is wired the way you meant it.
Last, copy .env again once the model key is in. API_KEY_SECRET is the one value in the stack that cannot be recovered, and everything encrypted in the database depends on it.
Self-hosting hands you the platform, and the platform is the easy half. The recurring work is a page of checks with a name beside each one: the updater, the certificate, the backup, and the person who reads doctor when it goes red.
Three commands, then two checks
Run these on the server, in this order, with DNS already pointed at it.
curl -fsSL https://kortix.com/install | bash
kortix self-host init --domain kortix.example.com --admin-email you@example.com
kortix self-host startkortix self-host configure
kortix self-host startkortix self-host doctorFour questions an operator asks first
Four short answers, each tied to the part of the stack it depends on.
Install Kortix on a Linux host you run: point DNS at it, run the two kortix self-host commands, create the admin with kortix self-host admin add you@example.com and sign in with the one-time password it prints, then close sign-up. The stack and its database sit on your disk, and sessions run on the compute provider you configure.
Yes. Agents are files in a project repository, and the platform that runs them is a Docker Compose stack you install on your own server. The sandbox each session works in stays rented: it runs on Platinum and dials back to the address you published.
No, if completely private means with no network at all. The instance must answer from the internet, because its sandboxes call it back. What you own outright is the record: database, files, repos, secrets and audit log on your disk.
Self-host is free. The bills are the server, the model calls on your own keys, and the sandbox compute at Platinum. Add the hours of whoever owns DNS, certificates and updates, because that is the cost that repeats.
Point one domain at one server and read every file it writes
The install is three commands, and the checks after it are the part worth scheduling.