- What you add
- An agent in your project, added from Customize → Connectors
- Where it runs
- Kortix Cloud, your VPC, or your own on-prem network
- What it can reach
- The company's tools through connectors the manifest grants
- Approvals
- Allow, Ask or Block per action; a held call waits for a yes
- Open source
- Yes
- Price shape
- Free $0, then $50 a month and up on credits
Add an open-source AI agent to Discord, then decide what it reaches
Adding an AI agent to a Discord server takes three steps. Kortix is an open-source CompanyOS and my pick for this. Its Guide gives those three steps, each with what it commits you to: which systems it can reach, who may talk to it, and who approves an action, and I work on Kortix's marketing, so weigh that accordingly.
The manifest behind the three steps
The starter repo's kortix.yaml, with the connector, the policy set and the approval rule that decide what the agent can reach.
# yaml-language-server: $schema=https://kortix.com/schema/kortix.schema.json
default_agent: discord-ops
project:
name: discord-agent-starter
description: A company agent that works in a Discord server, with its grants and approval rules in one manifest.
env:
optional: [HELPDESK_TOKEN]
connectors:
- slug: helpdesk
provider: http
base_url: https://helpdesk.example.com/api
auth:
type: bearer
policy_sets:
read-only:
description: Reads tickets and customers. Never writes.
policies:
- match: "get_*"
action: always_run
- match: "*"
action: block
policy:
default_mode: risk
policies:
- match: "helpdesk.delete_*"
action: block
approvals:
ttl: 24h
agents:
discord-ops:
description: Answers questions in a Discord server and drafts the work, with a person approving anything that changes a system.
mode: primary
prompt_file: agents/discord-ops.md
tools: all
skills: all
connectors: [kortix_discord, helpdesk]
policy_sets:
helpdesk: read-only
secrets: [HELPDESK_TOKEN]
permission:
bash:
"*": allow
"git push *": ask
workspace: { project_repository: true }What each option asks you to add, and what it can then reach
Setup, tool access and approvals. Sources linked below; checked 2026-11-04.
- What you add
- A Quickchat AI agent, connected from its dashboard
- Where it runs
- Quickchat's cloud
- What it can reach
- Its knowledge base and the AI Actions you configure
- Approvals
- No approval step in its Discord guide
- Open source
- No
- Price shape
- Free, then $9 to $999 a month
- What you add
- An agent built in AgentX, with a pasted bot token
- Where it runs
- AgentX's cloud
- What it can reach
- The agent's own tools inside AgentX
- Approvals
- No approval step in its walkthrough
- Open source
- No
- Price shape
- Free to start; paid plans on its pricing page
- What you add
- A published Botpress bot through its Discord integration
- Where it runs
- Botpress's cloud
- What it can reach
- Discord roles, channels, polls, plus its own tools
- Approvals
- No approval step in its integration docs
- Open source
- No
- Price shape
- Free for 100 conversations, then $150 to $750 a month
- What you add
- A Python bot you install and run yourself
- Where it runs
- Your own machine
- What it can reach
- MCP servers listed in its config file
- Approvals
- No approval step in its README
- Open source
- Yes
- Price shape
- Installed from source; you pay for hosting
What you add is an agent with its own identity
Adding an open-source AI agent to a Discord server takes three steps: add the app, mention it with a task, and allow the people who may talk to it. The steps are short. What they commit you to is longer, and it is the part the tutorials leave out.
What arrives in the server is an agent with its own identity in the project, its own grants and its own log of what it did. "An agent acts as itself, not as you," as the Guide puts it. A chat bot with a model key answers questions in a channel. An agent that holds a grant can also read a ticket, open a pull request or draft a refund, and each of those is a decision someone made before the first mention.
The token is the easy part. The grant is the part to get right, which is why the order matters.
The three steps, and what each one commits you to
The Guide words the setup in three steps, and the wording is worth keeping.
Add Kortix to your server
Open Customize → Connectors, select the Channels scope, and select Add to Discord on Discord. On Discord's page, pick the server; you need the Manage Server permission there. The commitment is a connection between a project and a server, and a server can serve several projects. Discord also asks for permissions when the app joins: view channels, send messages, send messages in threads, create public threads, read message history, attach files, add reactions and embed links. A channel that denies one of them says so, and the app names the permission to grant.
Mention the app with a task
In a text channel, mention the app: @Kortix what changed in the release?. Kortix starts a thread on your message, and the agent answers in the thread. The commitment is a session. "One Discord thread is one session," and a later mention in that thread continues it. In a server, only a mention reaches the agent, so the rest of the conversation stays between the people in it.
Allow the people
A mention or a direct message from an allowed person starts a session. Anyone else gets a reply that shows their user ID. That reply becomes an access request, where a project manager allows them with one click or dismisses it.
The commitment is a list you maintain. Discord has no account link, so the list is the whole gate: the agent never borrows the sender's role, and a person who is not on it cannot start work.
The part no tutorial covers: the grant
A bot token reaches Discord. It does not reach your help desk, your repository or your billing system, and that is the good news. A help desk, repository or billing integration needs its own authorized access; check the scope of each credential rather than treating a bot token as permission for other systems.
Kortix starts from nothing. "Access is denied by default. An agent gets no connector, secret, skill, App or project repository until you grant it." A connector is one outside app. The catalog is wide: 3,000+ apps in a click, plus MCP, OpenAPI, Postman, GraphQL and raw HTTP. A help desk without a plugin is still reachable through its API.
Each connector action then gets one of three rules. "Your rules decide what each agent may do in each app: Allow, Ask for a person's approval, or Block." Allow runs the call. Block never runs it. Ask is the one that changes how a team works: the call waits until a person says yes.
Two details keep that gate small. The approval covers one exact action, so a new argument needs a new approval: "An approval covers one exact action. If a detail changes, the action needs a new approval." The credential is the other. "Connector credentials are brokered server-side and never enter the machine." A session calls the app through Kortix, so the login stays on the server side of the call.
The manifest that decides it
All of that is a file. The starter repo at Kortix-seo/discord-agent-starter holds a working kortix.yaml for a company agent in a Discord server.
Read it in four parts. The connectors block declares one outside app, a help desk reached over HTTP, and a policy set called read-only that lets get_* calls run and blocks everything else. The policy block sets default_mode: risk, so reads run and writes wait. The policies block blocks helpdesk.delete_* outright, whatever else the file says. The approvals block sets a 24 hour lifetime on a held call.
The agents block is where the Discord side appears. The agent lists kortix_discord and helpdesk as its connectors, takes the read-only set for the help desk, and names one secret. Its permission block holds git push for a person and allows the rest of bash. Nothing in the file is implied: a connector the agent does not list is a connector it cannot call.
"Approval gates you set. Off until you set them." The file is where the asking starts, and a change to it is a diff somebody reviews.
Limits to know before you promise anything
Four limits decide what you can tell the team. "One project makes at most 60 Discord calls a minute." A busy channel with several threads can reach that, and the agent slows down rather than failing.
"A server can serve several projects." A channel goes to the first project that answered there, and /connect binds it to another. That is useful when two teams share a server, and confusing when nobody wrote down which project owns which channel.
"Kortix threads archive after a day without messages, and a new message opens the thread again." A thread is not a permanent record of the conversation; the session in Kortix is.
"Without the Message Content intent, the agent cannot read other people's messages." Discord shows it mentions, direct messages and its own messages. To ask about a discussion, paste the part you mean. A self-hosted instance whose Discord application has the intent can pass every message in a Kortix thread through DISCORD_MESSAGE_CONTENT.
Two smaller ones. Photos, files and voice messages reach the agent up to 8 MB per message. And /help, /status, /new, /stop, /model, /agent and /connect run in Kortix, not in the agent.
What to check after the first mention
The first mention tests three things, and each has a place to look.
The session. The thread is the session. Kortix marks each message it hands to the agent with a waiting mark, then replaces it with a check when the run finishes. If the run fails or someone stops it, the reply says what happened.
The approval. When the agent reaches a call marked Ask, the held action stays with the session the thread started. It opens under Approvals in the session header, on Review → Needs you, or through the approval link. The deciding person is a project manager or whoever started the session. The Guide documents an approval card with Approve and Deny buttons in Slack and Teams threads. A Discord thread has no such card, so the decision happens in Kortix.
The record. "Every action is recorded. Reading, exporting and streaming the audit log depend on the plan." Recording is not gated. Reading the log is, and the pricing page lists advanced RBAC and audit logs on Enterprise. Check the plan before a review depends on reading it yourself.
If all three look right, the setup is done. If the agent answered and nothing was recorded, or the approval never appeared, the grant is the place to look first.
What operators ask first
Can I add an AI to my Discord server?
Yes. Kortix adds an agent to a server from Customize → Connectors in three steps, and it answers when someone mentions it in a channel. The agent reaches only the connectors a person grants it.
How do I add a bot to a server on Discord?
Use the app's Add to Discord link and pick the server; you need the Manage Server permission there. Kortix starts that from Customize → Connectors, and the app asks for its permissions when it joins.
How to create a Discord server with AI?
Create the server in Discord as usual, then add the agent to it. Kortix does not create servers; it connects a project to one you already run, and the agent answers in a thread when someone mentions it.
Add the app, then set the grant
Start free, connect Discord from Customize → Connectors, and decide which connectors and which people the agent gets.
Open source · Self-host, VPC or on-prem · Discord, Slack, Teams and Telegram channels