/install discord-context
discord-context
Run node {baseDir}/scripts/discord-context-cli.js \x3Ccommand> ....
Commands
-
poll [--guild \x3Cid>] [--forum \x3Cid>] [--workspace \x3Cpath>]- Pull active threads from Discord and refresh cache for new/updated threads.
- Requires
DISCORD_TOKENplus guild/forum IDs (flags or env vars).
-
context [threadId] [--workspace \x3Cpath>] [--json]- Without
threadId: list cached threads. - With
threadId: print cached context and metadata for one thread.
- Without
-
link \x3CthreadId> \x3CqmdName> [--workspace \x3Cpath>]- Link a thread to
memory/\x3CqmdName>.mdand refresh cached context text.
- Link a thread to
Environment
DISCORD_TOKEN(required forpoll)DISCORD_GUILD_ID(default guild id forpoll)DISCORD_FORUM_CHANNEL_ID(default forum id forpoll)OPENCLAW_WORKSPACE(defaults to~/.openclaw/workspace)
Security Rules
- Never hardcode Discord tokens.
- Accept only numeric thread/guild/forum IDs.
- Accept only
[a-zA-Z0-9_-]+forqmdName. - Keep all reads/writes inside the workspace
memory/tree.
Paths
- Cache metadata:
memory/discord-cache/thread-\x3Cid>.json - Cache text:
memory/discord-cache/thread-\x3Cid>-context.txt - Source context files:
memory/*.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install discord-context - After installation, invoke the skill by name or use
/discord-context - Provide required inputs per the skill's parameter spec and get structured output
What is Discord Context?
Sync and cache per-thread context for Discord Forum channels. Use when handling /discord-context commands to poll active threads, list cached context, inspec... It is an AI Agent Skill for Claude Code / OpenClaw, with 961 downloads so far.
How do I install Discord Context?
Run "/install discord-context" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Discord Context free?
Yes, Discord Context is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Discord Context support?
Discord Context is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Discord Context?
It is built and maintained by demitrim (@demitrim); the current version is v0.1.1.