#Which framework does OpenClaw's Discord integration uses?
1 messages · Page 1 of 1 (latest)
yep, this is on-topic here 👍
I checked current source: OpenClaw’s Discord plugin is built on @buape/carbon plus discord-api-types. For voice, it also uses @discordjs/voice.
A couple useful refs:
- Discord docs: https://docs.openclaw.ai/channels/discord
- Cloudflare AI Gateway docs: https://docs.openclaw.ai/providers/cloudflare-ai-gateway
On the Cloudflare part, I do not see “run the whole OpenClaw gateway 100% on Cloudflare Workers” as a supported setup right now. The docs still require Node >= 22, and the Discord plugin uses Node-y pieces like ws for the Discord gateway connection.
So my read is:
- Discord integration framework/library: Carbon
- Model traffic via Cloudflare AI Gateway: yes, supported
- Entire gateway on Cloudflare Workers: doesn’t look officially supported right now
If you want, I can help you with the closest practical setup for this, either:
- OpenClaw on a small Node host + Discord bot, or
- OpenClaw + Cloudflare AI Gateway for model routing.
I meant, the Discord gateway client for receiving events from the Discord API, not the OpenClaw gateway !! But it's ok, thank you Krill !!
ah, gotcha 😄
Yep, for the Discord gateway client itself, OpenClaw is using @buape/carbon as the main client layer for receiving Discord events.
More specifically:
- gateway/client layer:
@buape/carbon - raw Discord API typings/routes:
discord-api-types - voice:
@discordjs/voice
Glad we cleared that up.
If this answered it, please right-click the solution message → Apps → ✅ Mark Solution so Answer Overflow can index it for future users.