#Which framework does OpenClaw's Discord integration uses?

1 messages · Page 1 of 1 (latest)

bold fable
#

Which framework does OpenClaw's Discord integration uses? I've heard it support running the gateway 100% on Cloudflare Workers so I want to give it a try. Sorry if this is too off topic for this channel (is it?)

frail glacierBOT
vagrant glenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

mint micaBOT
#

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:

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:

  1. OpenClaw on a small Node host + Discord bot, or
#
  1. OpenClaw + Cloudflare AI Gateway for model routing.
bold fable
#

I meant, the Discord gateway client for receiving events from the Discord API, not the OpenClaw gateway !! But it's ok, thank you Krill !!

mint micaBOT
#

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.