Skip to content
OpenHands Alternative

Self-host the open-source CompanyOS on your own server

For operating your own deployment, my pick is open-source Kortix CompanyOS to keep the deployment under your infrastructure team’s control, and I work on Kortix’s marketing, so weigh that accordingly.

Install and run the stack

Commands from Kortix's own self-hosting documentation, in the order a Linux server runs them.

terminal
$  curl -fsSL https://kortix.com/install | bash$  kortix self-host init --domain kortix.example.com --admin-email you@example.com$  kortix self-host start
terminal
$  kortix self-host doctor$  kortix self-host configure$  kortix self-host start
terminal
$  kortix sessions new --prompt "Summarize this week's commits and open a change request"$  kortix cr ls

What self-hosting buys a team

Self-hosting the CompanyOS puts the platform stack on a server you control, not the session computers. Sessions run separately on Platinum, configured with your own API key. Your git repo holds the agents, skills, company memory and connector configuration. Model calls travel through the gateway inside your stack, on your own keys.

Self-hosting also answers the question a security review asks first. The API, the database and the authentication services sit on your network, and Kortix runs on Kortix Cloud, in your VPC, or on your own on-prem network (platform stack; sessions run separately on Platinum), with self-host free. Every action is recorded in an audit log, and reading, exporting and streaming the log depend on the plan.

What an instance actually runs

kortix self-host init writes a docker-compose.yml, a .env file, a Caddyfile and an updater script into ~/.config/kortix/self-host/<instance>/, and kortix self-host start brings the stack up as one Docker Compose project named kortix-<instance>. Inside it run the web app, the API at /v1, the LLM gateway, a one-shot job that migrates the database before the API starts, the Supabase services that carry Postgres, authentication and storage, and Caddy, which terminates TLS on ports 80 and 443 in domain mode.

Sessions do not run on that server. Each session runs on your sandbox provider, Platinum, which the API creates with your key, and the cloud computer calls back to the instance's public URL. That is why the instance has to be reachable from the internet, and why tunnel mode publishes only the API while the web app stays on localhost. An updater in the stack pulls new images once a day, migrates the database and rolls the app services, so an update is not a rebuild.

Schedules and prompts live in the repository as files you own. The manifest reference shows this imported trigger file:

yaml
# triggers/reports/weekly.yamltriggers:  - slug: weekly-report    on:      cron: "0 0 15 * * 0"    run:      agent: assistant      prompt: Build the weekly report.

A trigger in kortix.yaml starts a session on a schedule or a signed webhook. kortix validate checks the manifest before a push, and the same schema check runs when a change request merges.

The setup outline

  1. Point DNS at the server: A or AAAA records for the domain and its API subdomain, a wildcard record for sandbox previews, and ports 80 and 443 open.
  2. Run the bootstrap on the server, which installs Docker and the CLI and starts the stack with a TLS certificate.
  3. Answer the setup questions with kortix self-host configure: your admin email, your Platinum API key and the preview domain. kortix self-host start applies the answers.
  4. Open your own URL, sign up as the admin, connect GitHub and add a model key. Account creation is restricted to platform admins by default, and the documentation says to set the mail settings or disable sign-ups as soon as the stack starts.
  5. Run kortix self-host doctor and fix every failing check.

What OpenHands' self-hosting covers, and what it leaves to you

OpenHands self-hosts as well, and its documentation is clear about the shape. Agent Canvas runs on a single always-on Linux or macOS machine, reached through an SSH tunnel, an ngrok domain or nginx with TLS, and its backend setup guide sizes Ubuntu 24.04 with 2 vCPU and 4 GB RAM as enough for a single user. The agent server runs directly on that machine with full access to its filesystem, environment and network, so the machine is the trust boundary, and the guide says to treat it like any machine holding production credentials.

That ecosystem is several projects: Agent Canvas for the browser client, the Software Agent SDK and Agent Server, the automation service and a sandbox server. The documentation's overview notes that each public repository carries its own terms, so a team checks the pieces it modifies instead of assuming one set covers the whole stack.

Isolation in OpenHands is a setting you turn on. With OH_CONVERSATION_RUNTIME=docker, each conversation gets its own Docker sandbox, and the documentation adds that this isolates conversation execution without moving the canvas or the automation service into one. So a self-hosted OpenHands deployment is a coding control center on one machine, with self-hosting inside your own VPC priced as part of the Enterprise tier on its pricing page.

How to decide

Pick by what the agents have to touch. If they only touch code and the audience is engineers, a self-hosted control center is enough, and the single-machine route gets a team there quickly. If they have to touch Slack, Microsoft Teams, tickets, CRM, billing and the books, and people outside engineering have to read what they changed, then the platform you self-host has to hold the shared memory, the connector rules per agent and the review gate, which is what a Kortix instance does.

The OpenHands vs Kortix comparison sets the two units of work side by side, and the Kortix blog keeps a self-hosted AI workspace comparison for the wider field.

Self-hosting questions

What does a self-hosted Kortix cost?

The platform is free to self-host. What you pay for is the Linux server, your model provider and the sandbox provider that runs each session. On the managed cloud, the paid plan is credits: 25 tiers from $50 a month (5,000 credits) to $50,000 a month (5,000,000 credits), at 100 credits per dollar. Members are free, and the account shares one credit pool.

What hardware does the instance need?

A Linux server with a public IP, ports 80 and 443 open, and DNS records for the domain and its API subdomain. Sessions do not run on that server: they run on your sandbox provider, Platinum, which is why the instance has to stay reachable from the internet.

Which models can a self-hosted instance run?

Any model provider with your own keys, or the ChatGPT plan you already pay for, and the gateway routes to whatever providers your projects connect. Both routes work self-hosted and on Kortix Cloud.

Can it run inside our VPC or on our own network?

Yes. Kortix runs on Kortix Cloud, in your VPC, or on your own on-prem network (platform stack; sessions run separately on Platinum), and self-host is free. The Enterprise plan adds SAML 2.0 single sign-on and SCIM 2.0 directory sync, advanced role-based access control, an SLA and a DPA.

How do updates work?

An updater in the stack pulls new images once a day, migrates the database and rolls the app services. kortix self-host configure writes the configuration files, and kortix self-host start applies them.

Who reviews what the agents produce?

Session repository edits use change requests. Merge permissions are configured per agent. External actions follow separate connector policy; approval gates are off until configured. An Ask rule holds a tool call until approval, then resumes the agent.

Run the platform on your own server

One Docker Compose platform stack, your model keys, sessions separately on Platinum, and change requests for session repository edits.