Discord REST CLI for coding agents: read guilds, channels and messages, send messages, and call raw routes with a bot token. Built on gaato/discord.
Status: unofficial; not affiliated with Discord.
moonx gaato/discord-cli --helpmoonx gaato/discord-cli me
moonx gaato/discord-cli guilds
moonx gaato/discord-cli channels 123456789012345678
moonx gaato/discord-cli messages 234567890123456789 --limit 10
moonx gaato/discord-cli send 234567890123456789 'Hello'
moonx gaato/discord-cli api GET /users/@me| Option | Applies to | Meaning |
|---|---|---|
| --token TOKEN | All commands | Overrides DISCORD_TOKEN; prefer the environment to avoid exposing arguments |
| --help, -h | All commands | Usage text |
| --version | Root | Version text |
| --limit N, -n N | messages CHANNEL_ID | Positive 32-bit integer; default 50; paginates beyond 100 |
| --before ID / --after ID | messages CHANNEL_ID | Exclusive cursors; cannot combine |
| --stdin | send CHANNEL_ID [text...] | Read UTF-8 input, overriding text arguments |
| --reply-to ID | send CHANNEL_ID [text...] | Reply to a message |
| --body JSON, -d JSON | api METHOD PATH | JSON body; path relative to /api/v10 |
{
"env": { "from_host": ["DISCORD_TOKEN"] },
"net": { "connect": ["discord.com:443"] }
}moonx --experimental-policy discord-policy.json gaato/discord-cli meInstall
Download zipDiscord REST CLI for coding agents: read guilds, channels and messages, send messages, and call raw routes with a bot token. Built on gaato/discord.