Self-host an open-source Dify alternative
Self-hosting an open-source Dify alternative requires checking where the application and its agent execution actually run. The open-source CompanyOS. I work on Kortix’s marketing, and I would evaluate Kortix when control of the deployment is central to the brief.
Plan the server and the execution path
Dify’s Community Edition uses Docker Compose, and Kortix publishes a Compose-based self-hosting procedure too. That similarity does not make the deployments interchangeable. Check DNS, model access and the execution provider before allocating the server.
Install Dify’s Community Edition
The Dify repository lists a minimum of 2 CPU cores and 4 GiB RAM. It now requires Docker Compose v2.35.0 or later and OpenSSL. From the repository root, its installation starts with:
cd dockercp .env.example .envopenssl rand -hex 32Set DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN in .env to the generated value. Keep the default COMPOSE_PROFILES, then start and inspect the services:
docker compose up -ddocker compose ps --allOpen http://localhost/install to complete setup once the services are running. Keep your existing .env during upgrades and follow Dify’s upgrade instructions.
Configure the Kortix instance
Follow the Kortix self-hosting reference for the domain, API address and sandbox callback requirements. The application stack and the session computer are separate deployment concerns. A server running the web app does not establish that agent execution is local.
On a server with Docker and the Compose plugin already installed, install the CLI, configure the instance and check the running stack:
curl -fsSL https://kortix.com/install | bashkortix self-host init --domain kortix.example.com --admin-email you@example.comkortix self-host configurekortix self-host startkortix self-host doctorBudget for the connected services
Self-host is free. The server and model bills still need their own budget. Check the configured sandbox service as well, including whether it can reach your instance’s public API.
Keep the installation files accessible
The existing installation describes docker-compose.yml, .env, a Caddyfile and updater.sh under ~/.config/kortix/self-host/<instance>/. Verify those paths against the version you install. Back up the configuration and plan how you will inspect updates before using the instance for ongoing work.
Configure and check the instance
- Init
$ kortix self-host init --domain kortix.example.com --admin-email you@example.com - Configure
$ kortix self-host configure - Start
$ kortix self-host start - Check
Self-hosting docs$ kortix self-host doctor
Self-hosting questions
Is self-hosting Kortix free?
Self-host is free. You still pay for the server, models and execution service you configure.
What does a self-hosted Kortix need?
Check Linux, Docker, DNS, the API address and callback reachability in the self-hosting reference. Validate them before the first production task.
Where do sessions run when I self-host?
Check the compute provider configured for your instance. Platinum is the current reference provider; a self-hosted application server does not mean every session runs on that server.
Can I try a self-hosted Kortix without a domain?
Yes, for evaluation. Run
kortix self-host init --tunnel cloudflare, thenkortix self-host start; the web app stays on localhost while the API is published through the tunnel.How do updates work?
kortix-updaterpulls new images daily, migrates the database and rolls the application services. Keep a recovery plan before relying on automatic updates.
Check the deployment before the first task
Confirm the server, API callback and compute provider together.
Compare the task · Check deployment needs · Budget for compute