Discord and Telegram
Chat with RedCell from Discord or Telegram, with the same tools, sessions, and approvals as the CLI.
A gateway connects a Discord or Telegram bot to RedCell running on your machine. You send tasks from chat; RedCell runs them locally and replies, including approval requests you can answer with a button.
Only the user IDs you allowlist can use the bot. The gateway won't start without at least one.
Set up Discord
Create the bot
- In the Discord Developer Portal, create an application and add a bot.
- Under Bot → Privileged Gateway Intents, turn on Message Content Intent.
- Copy the bot token and the application ID.
- Turn on Developer Mode in Discord, then right-click your name and copy your user ID.
Connect it to RedCell
redcell gateway setup discord --application-id YOUR_APPLICATION_ID --allowed-users YOUR_USER_ID --cwd /absolute/path/to/workspaceReplace the values. --cwd is the folder RedCell works in. RedCell asks for the bot token without showing it, checks it with Discord, and prints an invite link.
Invite the bot
Open the invite link and add the bot to your server.
Run it
redcell gateway discordMention the bot in a channel to start. It creates a thread; follow-ups in the thread don't need a mention. DMs never need one.
Run it at login
To start the Discord gateway automatically when you log in:
redcell gateway service installCheck it with redcell gateway service status. Remove it with redcell gateway service uninstall. No admin rights needed.
Chat commands
| Command | What it does |
|---|---|
/new | Start a new conversation |
/stop | Stop the current task |
/status | Show session status |
/model | Show or change the model for this chat |
/approve / /deny | Answer an approval request (or use the buttons) |
/sessions, /resume ID | List and resume conversations |
/help | List all commands |
Discord also supports /review, /diff, /permissions, /usage, /mcp, /skills, /plugins, and more. Settings you change in chat apply only to that chat.
Settings and security
- Allow several users with comma-separated IDs:
--allowed-users 111,222. - By default, the bot only answers in group channels when mentioned. Use
--require-mention falseto change that. - Settings are saved in
~/.redcell/messaging/. Don't share or commit those files; they contain your bot token. - You can use environment variables instead:
DISCORD_BOT_TOKENandDISCORD_ALLOWED_USERS, orTELEGRAM_BOT_TOKENandTELEGRAM_ALLOWED_USERS.
Troubleshooting
| Problem | Fix |
|---|---|
| Bot is offline | Run the gateway command in the foreground and check the token. On Discord, check Message Content Intent |
| Bot ignores you | Make sure your numeric user ID is allowlisted, and mention the bot in group channels |
| Discord slash commands missing | They can take a few minutes to appear. Check the bot was invited with applications.commands |
Telegram 409 Conflict | Another process is using the same bot token. Stop it |