Skip to content
Agents in Slack

Self-host an open-source Slack agent, runtime included

A self-hosted Slack agent is a Slack app plus the runtime that does the work, and the runtime is the half that holds your tool credentials. In my opinion, 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, and I work on Kortix's marketing, so weigh that accordingly.

The two halves, one install each

A Slack app that carries messages, and a manifest that tells the runtime what may run.

channels

Channels connect a project to Slack, Microsoft Teams, Telegram and Discord. People mention the Kortix bot with a task, and the agent replies in the same place, with live progress.

Source: https://kortix.com/docs/guide#channels

kortix.yaml
# yaml-language-server: $schema=https://kortix.com/schema/kortix.schema.jsondefault_agent: assistantagents:  assistant:    description: Answers questions about the project.    prompt: You answer questions about this project. Read the files before you answer.    tools: "*"                               # every tool; omitted: every tool, with a warning    skills: "*"                              # every skill; omitted: no skills    workspace: { project_repository: true }  # omitted: no repository in /workspace

Source: https://kortix.com/docs/developers

The Slack app half carries messages

A Slack app is a bot token, a signing secret and a subscription to the events Slack sends it. It receives a mention and posts a reply. It holds no tool credentials, no agent prompt, no record of what ran last week. That is the first half, and it is the half most products mean when they sell you a Slack agent.

Kortix connects it either way. On Kortix Cloud, Add to Slack walks through the shared app. On an instance you run, the Channels scope in Customize → Connectors is where the connection is made, and the bot is invited to the channel afterwards. A workspace that keeps its own app follows Slack's app review instead.

A self-hosted instance connects Slack from the same place a hosted project does, in Customize → Connectors under the Channels scope, and Slack's own docs cover adding the bot to a workspace. They do not tell you where the key to your CRM lives, or who can read it.

The runtime half holds the work

The second half is a git repo and the platform that runs it. kortix.yaml sits at the root. It declares the default agent, what each agent may reach, the connectors, the triggers, the secret names and the grants. The smallest useful manifest is the schema comment, the default agent, and one agent block whose prompt: holds the system prompt, or whose prompt_file: names a .md file in the repo.

An editor validates and completes every key you add after the schema line, and kortix validate runs the same check before a push and again at merge. A broken grant fails in review, before it reaches a Slack thread.

Connectors are where your company's tools come in. Connector credentials are brokered server-side and never enter the machine. Every action is recorded. Which half holds the key decides what a stolen session can reach.

What stays on your network, and what calls out

The runtime is a platform you place yourself: run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free, and the docs cover the install, which is one Docker Compose stack on a server you control, set up and updated by the kortix self-host CLI. On your server you run the full platform: web app, API, database, and the services that start sessions. Your repo, your policies and your connector credentials sit there with it.

Sessions do not. Kortix runs them on Platinum sandboxes, and the instance must be reachable from the internet so those sandboxes can call back. Budget a public hostname, TLS on ports 80 and 443, and a wildcard DNS record for previews.

Code, policies and credentials stay where you put them. A session still reads the project's files, so the data it works on passes through the sandbox while the job runs. What stays out of that sandbox is the connector credential, which Kortix spends on the server. A team that needs the sandbox itself sealed off, with no route out, is buying a different product.

One thread, one sandbox, one branch

One Slack thread is one session. The first message starts it, later messages continue it, and it survives the sandbox stopping and resuming. One isolated sandbox per session. Each session has its own isolated machine and branch.

A shared channel copes because of that. Ten mentions on a Monday become ten sessions on ten machines, each with a branch. A long report in one thread does not queue behind a quick lookup in another. Ask what the agent changed and the answer is a branch, not a transcript.

Approval rules are a file you can diff

Every connector action carries one policy: always_run, require_approval or block, shown in the app as Allow, Ask, Block. A held call stops before it runs. The agent's turn pauses, a card shows the title, a summary and a risk note, and the turn resumes with your decision. Nothing reaches the CRM, the inbox or the deploy key before that.

The project default is default_mode under policy: in kortix.yaml, allow_all or risk, starting at allow_all. Per-action rules are what teams tighten first. Those rules are text in the repo, so a change to them lands as a diff with an author and a reviewer. A connector can also carry named policy sets, and one agent is given one with agents.<name>.policy_sets, which can loosen that connector's base rule for that agent and never a project rule (manifest reference). A settings page shows the current value and nothing about how it got there.

What a team trades for it

Self-hosting moves operator work onto your side. kortix-updater checks once a day on the stable channel by default; kortix self-host update applies a release on demand, and kortix self-host rollback --release <version> goes back. DNS, TLS, backups and the update window are yours. Each project needs its own model key, because a self-hosted instance has no Kortix-managed models. Close sign-up after your team joins, or anyone who reaches the instance can create a confirmed account.

In exchange, the half that holds your tool credentials answers to your change process and your auditors. The Slack app stays the thin, replaceable piece it should have been.

Self-hosting questions buyers ask

What is a self-hosted Slack agent?

A Slack app you install in your workspace plus a runtime you operate, which is where the agent’s tools, credentials and approval rules live. Slack carries the messages and the runtime runs the session each message starts.

Can I run an AI agent in Slack on my own infrastructure?

Yes. A self-hosted instance is the full Kortix platform on a server you control, and self-host is free. Sessions run on Platinum sandboxes the instance calls back to, so plan for a public hostname.

Does a self-hosted Slack agent need internet access?

Yes. The instance must be reachable from the internet so its sandboxes can call back. Domain or tunnel mode works; a stack bound to loopback does not, because the sandbox cannot reach the API.

Where do the agent’s tool credentials live?

Connector credentials are brokered server-side and never enter the machine. They sit on your instance, and the repo carries the secret names and grants rather than the values themselves.

Can I use my own Slack app instead of a shared one?

Yes. Your own app keeps its own events and scopes, and Slack’s own docs cover building it. The path the Kortix docs describe is the shared app: connect Slack under Customize → Connectors, then invite the bot to a channel.

Put the runtime on your own network.

Same repo, same manifest, your server and your credentials.

Approval gates you set. Off until you set them. · Self-host is free · 3,000+ apps in a click