- Self-host
- Yes; one Compose stack
- What you run
- Web app, API, gateway, database
- Where sessions run
- Platinum sandboxes that reach back
- Open source
- Yes
- Price shape
- Self-host free; paid tier from $50 a month
Self-host an open source Discord agent, knowing which half you run
A self-hosted Discord agent is a bot whose control plane you run. Kortix, an open-source CompanyOS, is my recommendation for this split between the control plane and the work: the web app, API, gateway and database sit on your machine, while the sessions themselves live on remote sandboxes that reach back to your instance. I work in Kortix marketing, so weigh that.
Self-host claims, checked against each product's own page
Hosting boundaries and setup. Sources linked below; checked 2026-11-04.
- Self-host
- Yes; you run the Python bot
- What you run
- A bot process and its config file
- Where sessions run
- In the bot process on your machine
- Open source
- Yes; no license file in the repo
- Price shape
- Installed from source; you host it
- Self-host
- No; closed SaaS
- What you run
- Nothing; you paste a bot token
- Where sessions run
- AgentX's cloud
- Open source
- No
- Price shape
- Free to start; paid plans listed
- Self-host
- No; closed, request access
- What you run
- Nothing; a workflow in Beam
- Where sessions run
- Beam's cloud
- Open source
- No
- Price shape
- No public price; request access
- Self-host
- No; closed SaaS, none listed
- What you run
- Nothing; an inbox in Mava
- Where sessions run
- Mava's cloud
- Open source
- No
- Price shape
- Free, then $39 to $599 a month
Four commands on a Linux host with Docker
Quoted from the self-hosting section of the Kortix developer docs.
curl -fsSL https://kortix.com/install | bash kortix self-host init --domain kortix.example.com --admin-email you@example.com kortix self-host start kortix self-host doctor
kortix self-host start kortix hosts use selfhost kortix hosts use cloud
The two halves of a self-hosted Discord agent
Self-hosting a Discord agent splits the stack in two. One half holds what makes the agent yours: the project, the grants, the channel connection, the log of what ran. The other half runs the work. It can sit somewhere else entirely.
Kortix names the split on its self-hosted page. The naming is the useful part. kortix self-host init lays down one Docker Compose project, and every service in that project runs on your server. Sessions and Drive do not. Both live on Platinum sandboxes, and each sandbox reaches back to the instance you just installed.
That one sentence settles most of what a security review asks. Where the database sits. Where file storage sits. What a server backup contains. Which host needs a public address. Which credential a running agent can see.
What stays on your server
The install is one stack. The page describes one Compose project that holds the database, the LLM gateway, the API and the web app, all on your server. The same CLI keeps it current.
The services, in the page's own list:
frontend, the web app, which is where you add the Discord app and set the ruleskortix-api, the REST API, which brokers connector callsllm-gateway, which carries model requests to the provider a project connectssupabase-*, Postgres, auth and file storagekortix-updater, which pulls images, migrates and rolls the stack once a daycaddy, which handles TLS and certificates in domain mode
The image you run on that server is the same code anyone can read. That is why the service list is checkable rather than a claim on a slide.
Two consequences follow. The API on your machine writes the audit log: "Every action is recorded. Reading, exporting and streaming the audit log depend on the plan." Meanwhile the Discord connection is configured from Customize → Connectors on the instance you installed. The thing that holds the channel is an instance you can open a shell on.
What does not, and the reachability that follows
"Sessions and Drive run on Platinum sandboxes. They call back to your instance."
One isolated sandbox per session. Each session has its own isolated machine and branch. None of that runs on the server in your rack. Drive folders and App volumes are Platinum volumes too. The docs state the backup rule plainly: Drive folders and session workspaces live at Platinum, so a server backup does not hold them. If your retention policy covers the company's files, it has to cover both places.
The callback decides your network. The docs say the instance has to answer on a public address, because the sandboxes reach back to it. The stack also pulls images from Docker Hub. Your server needs an inbound path and outbound access. Point DNS at it and Caddy gets a certificate for the domain, or run a Cloudflare tunnel while you evaluate. A host with no route in and no route out starts its containers and fails at the first session.
If the review calls for an isolated topology, that is scoped with the Kortix team over the install. The page is direct that the standard stack is not that topology. A page that says so is worth more than one that lets you find out on day two.
The install path
Four commands on a Linux host with Docker, then you sign in at your own domain. The CLI runs on Linux and macOS, on both x86_64 and arm64. The bootstrap script is Linux only.
kortix self-host init asks the setup questions once, then writes four files into ~/.config/kortix/self-host/<instance>/: docker-compose.yml, .env, Caddyfile and updater.sh. --yes keeps the defaults when you script it. kortix self-host start is the docker compose up step. kortix self-host configure repeats the questions when something changes, and writes the files without applying them until you start. kortix self-host doctor verifies the result and exits non-zero on a failing check. Put it in the runbook.
There is a laptop path too. kortix self-host init --tunnel cloudflare sets it up; kortix self-host start then opens the web app at http://localhost:13737 and publishes the API on a trycloudflare.com URL. That URL changes each time the tunnel restarts. Fine for an evaluation, wrong for a team.
Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.
Updates, pinning and rollback
The stack updates itself. The page lists daily updates, a choice between stable and latest, a database migration that runs first, and a rollback in one command. All of it runs from the same CLI. The updater service pulls fresh images daily, migrates, then rolls the application services.
The failure behaviour is the part to know before you enable it on a Friday. A failed migration swaps nothing, and the previous version keeps serving; a failed swap keeps the previous version too. kortix self-host status prints the outcome of the last run, while kortix self-host doctor covers the wider set of checks. Pin one exact version when a change window is closed. The instance directory and its Docker volumes are the backup unit. Stop the stack before you copy them.
Where the Discord app token and connector credentials sit
The Discord side starts with an application you create, and a bot token that belongs to it. You add the app to the server from Customize → Connectors, under the Channels scope. You need the Manage Server permission there. On your own instance that flow runs against your own API, so the service making Discord calls is kortix-api, on the machine you installed.
Every other connector follows the same route: "Connector credentials are brokered server-side and never enter the machine." When a session reads a ticket or posts a reply, it asks your instance to make the call. The sandbox never holds the Discord token, the CRM login or the mail password, and the credential stays on the server side of the request.
One setting is worth checking at install time. Without the Message Content intent the agent reads mentions, direct messages and its own messages. An instance that enables the intent can pass every message in a Kortix thread to the agent. The switch is DISCORD_MESSAGE_CONTENT. That is a decision about your server, and the reason to run one.
The word without the split
OoriData's Discord-AI-Agent is the other open source option a searcher meets. It is a Python bot you run yourself. Install with uv pip install -U ., copy config/example.main.toml to config/main.toml, then pick a provider and put its key in the environment. You run all of it, including the process that holds the key. AgentX, Beam.ai and Mava are hosted and closed, and none of them lists a self-host option.
So the word fits a bot process and strains on a product. Put four questions to any vendor: which services run on my server, where the sessions run, what a backup contains, which host needs a public address. A page that names those four things is a deployment. A page that says self-hosted and stops is a word.
The questions a security review puts to the split
Can a self-hosted Kortix run without internet access?
No. The stack pulls images from Docker Hub, and sessions live on Platinum sandboxes that reach back to your instance over the internet. For an isolated topology, the team scopes it with you.
Where do the agent's sessions run?
On Platinum sandboxes, one per session, not on the server you installed. Each sandbox reaches the public API URL of your instance, so the instance needs to stay reachable from outside.
What does self-hosting cost?
The software costs nothing. You pay for the machine, the model keys each project connects, and the Platinum sandboxes the instance creates with your own Platinum API key. A self-hosted instance brings no Kortix-managed models.
Name the split before the first session
Start free, install the stack on hardware you control, then add the Discord app from that instance.
Open source · Self-host, VPC or on-prem · Discord, Slack, Teams and Telegram channels