What you own when you self-host
Separate the control-plane backup from the agent task. Record who restores the database and file storage, and test that restore before entrusting the instance with recurring work.
The whole instance runs as one Docker Compose stack: the frontend, the API, the LLM gateway, and the Supabase distribution. The stack has no Redis and no separate worker, so there is less to operate. Agent sessions run on a separate sandbox provider rather than on this stack, so the control plane you host stays small.
Self-hosting is an operational choice, not evidence that another product cannot execute tasks. Open WebUI documents its companion agent harness, and LibreChat documents experimental attached workspaces with file authoring and Bash. Compare where tasks run, who maintains that environment and how changes are reviewed.
Your repo is the company
Your agents, their skills, your company memory and every connector in one git repo you own. Agents and skills are markdown files, and kortix.yaml declares the machine image, connectors and triggers, and secret names and grants. Because it is a repo, you can grep the whole company, diff any change, and roll any part of it back.
An agent is agents/<name>.md (behavior) plus an agents.<name> block in kortix.yaml (governance). Session work reaches main through a change request. Merge is default-deny for agents, so the repo improves one reviewed change at a time.
Connectors and credentials
The repo also holds the connector config. Wire your tools up once, set each tool to Allow, Ask or Block, down to the arguments of each call, and scope which agent may touch which one.
Connector credentials are brokered server-side and never enter the machine. Keep secret names in the manifest and their values out of the repository.
Models with your own keys
Any model provider with your own keys. Keep provider credentials out of the repository, then configure the model in the running instance. Budget inference separately from the service you host.
The first run asks six things and no model key. Models are BYOK in the app, and GitHub connects in the dashboard under Settings then Git.
Memory that accumulates in files
Memory is files that accumulate, not rows in someone else's database. Every fact the company learns lands in the repo next to the agents that use it, so it is versioned and diffable like everything else you own.
Decide which task outputs belong in the repository before you run the job. Keep the backup policy for the instance separate from that decision.
Run it and keep it running
Back up before a destructive command. An instance stores its data as two directories under ~/.config/kortix/self-host/<instance>/: volumes/db/data for the Postgres database and volumes/storage for file storage, and the instance .env file holds every secret and signing key it uses. Every instance updates itself automatically, or you can pin an exact version with kortix self-host update --tag <version>.
Open source. Read it, fork it, audit it. Start self-hosted, or Try Kortix in the cloud first.