Run coding agents from Discord
Mention your Discord bot in a server channel to start a session. The bot creates a thread, named from the first words of your message, and answers there. Replies in that thread continue the same conversation. Discord works like Slack with fewer features. The differences are listed below.
Who can use it
Section titled “Who can use it”| Who | What they can do |
|---|---|
| Org admins | connect the bot; choose who the bot answers; drive admin-only threads |
| Any org member | link their own Discord account |
| People in the server | talk to the bot, depending on the access mode |
How do I connect Discord with just a bot token?
Section titled “How do I connect Discord with just a bot token?”You need only the bot token. The server ID is optional.
- Create an application with a bot in the Discord Developer Portal and copy the bot token.
- In Nori, open Integrations → Discord (org admins), paste the Bot token, and save. Nori checks the token, turns on the Message Content intent and the app’s default install settings, and keeps settings the owner already chose. A token Discord refuses is not saved.
- Under Bot install, open Add to server and add the bot to your server. Nori saves the server as soon as the bot joins.
CLI: nori-sessions integrations set-discord --bot-token <token>. To skip the
checks and save a server as given, open Server ID (optional) or pass
--guild-id <id>.
The bot answers in exactly one server. If it is already in several, pick one
under Bot install (CLI integrations set-discord-server --guild-id <id>).
Until a server is saved, the bot answers in no server. With a server saved,
it ignores messages from every other server. It also ignores direct messages.
If Discord refuses an app setting, Bot install lists the manual step to take in the Developer Portal; the connection still succeeds. To remove the bot, use Remove credentials.
Bot permissions
Section titled “Bot permissions”Bot install checks the bot’s permissions in the server, and in the
onboarding channel and automation channels, and lists what is missing with a
Re-authorize with every permission link. Check again re-runs the
check. Set up the app again reapplies the app settings with the saved
token. CLI: integrations discord-install and integrations discord-configure.
| Permission | Needed to |
|---|---|
| View Channels | see the channels it is mentioned in |
| Send Messages | answer mentions and post automation results |
| Send Messages in Threads | reply inside conversation threads |
| Create Public Threads | open a thread for each conversation |
| Create Private Threads | open admin-only threads |
| Manage Threads | remove a private thread it could not finish opening |
| Manage Channels | create #jiro-onboarding |
| Read Message History | read the thread it is answering |
| Add Reactions | show progress with reactions |
| Attach Files | upload files the agent shares |
Who the bot answers
Section titled “Who the bot answers”Under Integrations → Discord → Who the bot answers, or the Discord group on Settings → Security:
| Mode | Behavior |
|---|---|
| Open (default) | anyone in the Discord server |
| Members only | only org members who linked their Discord account |
CLI: nori-sessions fleet set-setup --discord-access-mode open|members. The
Developer plan is always members only.
Link your Discord account
Section titled “Link your Discord account”- Open Integrations → Discord → Your Discord account and choose Link my Discord account.
- Within 10 minutes, mention the bot in your server and add
!link <code>. - Back on Integrations → Discord, check the account shown and choose Confirm, or Reject if it is not yours.
The link exists only after you confirm it. CLI: integrations discord-link-code, then integrations confirm-discord-link --discord-user-id <id>. !unlink in Discord removes your link. Linking works in either mode.
Removing someone from the org ends their Discord access with no other cleanup.
A link made before web confirmation existed still counts as a member, but cannot drive admin-only threads. The card shows Link again for it.
Who can drive an admin-only thread?
Section titled “Who can drive an admin-only thread?”Nori’s onboarding conversations open in Discord as private threads that only org admins can drive. Nori adds every admin and owner with a confirmed link and removes other linked accounts when roles or links change. In these threads:
- An admin or owner with a confirmed link runs with admin access in that thread only.
- Anyone else’s message is kept as context and does not run. They are told once why.
!link,!unlink, and!helpwork for everyone.- Posts in the thread mention no one, because a mention would add that person to the private thread.
Everywhere else, Discord posters are never treated as admins, even when
linked. Use !admin for elevated work.
Admins can read the audit trail of links and admin-thread decisions, kept for
90 days, with nori-sessions access identity-audit [--event <event>].
Commands
Section titled “Commands”| Command | What it does |
|---|---|
!help |
list commands |
!status |
session state, elapsed time, context usage, and errors |
!shell / !chat / !urls |
links into the running session |
!cancel |
cancel the active turn (the progress card also has a Cancel button) |
!interrupt <prompt> |
cancel the active turn and start the new prompt |
!compact [instructions] |
ask the agent to compact its context |
!thoughts |
snapshot of the agent’s in-progress work |
!restart |
restart the thread’s session without releasing the machine |
!skillsets [list|switch <name> [prompt]] |
list or switch skillsets |
!tagonly [message] |
toggle tag-only replies for this thread |
!admin |
request admin elevation. An org admin approves with a single-use link that expires in 30 minutes |
!done (alias !release) |
end the conversation and release the machine; adds 🏁 to the thread starter |
!fleet-status, !free-oldest |
fleet-wide capacity view; free the oldest idle session |
!btw <question> asks a side question without interrupting the running turn.
Availability: this feature is being rolled out and may not be enabled for your
organization yet.
Reply mode
Section titled “Reply mode”Discord threads follow the org’s Conversation reply mode (Settings →
Security). It is shared with Slack and described on the
Slack page. !tagonly toggles a single thread.
At a channel’s top level it does nothing, because there is no thread yet. A
thread reply that mentions another user, a role, @everyone, or @here is
kept as context and does not wake the agent.
Limits and differences from Slack
Section titled “Limits and differences from Slack”- No
!model,!provider,!resume,!catchup, or!project.!helplists!modeland!provider, but Discord answers them as unknown commands. Change those settings from the web dashboard. - No direct messages, channel mode, or dashboard link cards.
- Automations can post to a Discord channel, but not as Agent’s reply, not to a DM, and not as personal or admin-access automations. See automations.
- Only image attachments reach the agent, up to 20 MB each.
- Replies longer than 2,000 characters are split into several messages, at a paragraph, line, or word break.
- Threads that run a restricted custom agent take no prompts from Discord.
- The thread startup card and turns driven from the web are mirrored into Discord threads, as in Slack.
Common questions
Section titled “Common questions”The bot does not answer my mention. Check Integrations → Discord → Bot install: a server must be saved, and the bot needs the permissions listed there. In members-only mode, also link and confirm your account.
My !link code did not work. Codes expire after 10 minutes and work once.
Issue a new one from Integrations → Discord. After the bot accepts a code,
confirm the account on Integrations → Discord; until then you are not
linked.
The bot stopped answering after I added it to a second server. It answers in one saved server only. Pick the server under Integrations → Discord → Bot install.
Can admins approve !admin from Discord? The approval link opens in the
Nori dashboard. Any org admin can approve it there.
Does ending a session in Discord end it everywhere? Yes. !done releases
the conversation’s machine.
this page as markdown: /sessions/guides/discord.md· index for agents: /llms.txt