Cue and OpenClaw use separate Discord config files. Cue reads
~/.cue/config.json or ~/.cue/agents/<agent>/agent.json. OpenClaw uses ~/.openclaw/openclaw.json.If you are setting up Discord for OpenClaw inside a sandbox, use the OpenClaw docs instead:
/openclaw/setup/discord.Before You Start
- You need a Discord account with access to the Developer Portal.
- Cue Discord runtime currently reads config from
~/.cue/config.jsonor a per-agent override in~/.cue/agents/<agent>/agent.json. ~/.cue/agents/<agent>/channel-config.jsonis not the runtime source of truth for Discord.
Step 1: Create the Discord Application
In the Discord Developer Portal:- Click
New Application. - Pick a name for the bot.
- Open the new application.
Step 2: Add the Bot and Copy the Token
In the application:- Open the
Botpage. - Click
Add Botif the app does not already have one. - Use
Reset TokenorCopyto get the bot token.
Step 3: Enable the Right Bot Behavior
On the sameBot page:
- Enable
Message Content Intentif you want Cue to read messages in server channels. - Keep this off only if you plan to use DM-only workflows.
Step 4: Install the Bot in Discord
In the Developer Portal:- Open
Installation. - Under
Installation Contexts, enableGuild Install. - Under
Default Install SettingsforGuild Install, includebotandapplications.commands. - Give the bot at least the permissions needed for your test server, such as sending messages.
- Copy the install link and open it in your browser.
- Authorize the bot into the server where you want to use it.
Guild Install is the correct path. Discord also supports User Install, but that flow is command-oriented and does not match Cue’s current bot-token channel runtime.
For a first pass, keep the target narrow: one server or one test channel is easier to validate than a wide install.
If the app does not show up in the server member list or in the @ mention picker after install, check Installation again. The most common cause is missing bot under Guild Install. Re-copy the install link and authorize the server again after fixing it.
DM or Server Channel?
For the current Cue setup:- Install the bot to a server first.
- After the bot is in a shared server with you, test either by DM or by mentioning it in a server channel.
- If you want the simplest first validation, use one private test channel in that server.
Step 5: Add the Token to Cue
Edit one of these files:- Global config:
~/.cue/config.json - Per-agent override:
~/.cue/agents/<agent>/agent.json
requireMention: truemeans Cue only responds in server channels when the bot is mentioned.channelIdscan stay empty at first. Add specific channel IDs later if you want a tighter allowlist.dm.policyandgroup.policyacceptopen,allowlist, ordisabled.
Step 6: Restart Cue
After saving config:Step 7: Validate
Check runtime status:- DM the bot directly, or
- mention it in a server channel if
group.policyis enabled
Sandbox / code-server Setup
If you are doing this inside a Cue sandbox or code-server session, the same config belongs inside the sandbox home directory:/home/user/.cue/config.json/home/user/.cue/agents/<agent>/agent.json
Troubleshooting
- Bot appears online but does not answer in a server:
Enable
Message Content Intent, restart Cue, and confirm you mentioned the bot whenrequireMentionis true. - Bot was authorized but does not appear in the server member list or
@picker: Go back toInstallation, confirmGuild Installis enabled, and make sure bothbotandapplications.commandsare selected. Then reinstall the app to the server. - Bot answers in DMs but not in a server:
Check
group.policy,guildIds, andchannelIds. - You edited
channel-config.jsonand nothing changed: Move the config intoagent.jsonor~/.cue/config.json. - You run both Cue and OpenClaw: Confirm which token belongs to which runtime before changing anything.