A minimal Discord agent gateway built with Bun + OpenAI SDK.
bun install
cp mona.config.example.ts mona.config.ts
bun run start- Replies in Discord channels and DMs
- Supports slash commands:
/clear,/skills - Includes built-in local tools:
builtin__run,builtin__read,builtin__write,builtin__patch,builtin__search,builtin__load_skill
- Invite the bot to your server
- Enable MESSAGE CONTENT INTENT
- Grant channel read/write permissions
- Ensure
.mona/memory/MEMORY.mdexists
- If
discord.requireMention=true, the bot only responds when mentioned - If
discord.requireMention=false, it responds to regular channel messages - In DMs, it responds directly
/clearresets conversation context for the current channel
mona.config.tsfollows convention-over-configuration: most fields have defaults and can be omittedopenai.apiKeyanddiscord.botTokenmust be provided inmona.config.ts- High-risk shell commands require explicit Discord approval by the requester
- If you see
400 status code (no body), checkopenai.baseURLand model compatibility