#418 · @enchantednatures · opened Jun 26, 2025 at 3:12 PM UTC · last updated Mar 21, 2026 at 12:16 PM UTC
feat(Discord): add rich presence support
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This PR introduces Discord rich presence support but is incomplete. It's an initial effort lacking functional share links, a bot ID, and necessary images. It is not merge-ready.
Description
initial effort on getting rich presence working. I haven't been able to make the share link show up. I'll also need a Discord bot id to plug in to use as default as well as a few images #https://github.com/sst/opencode/issues/406
Linked Issues
None.
Comments
PR comments
enchantednatures
Some notes here:
this is using @xhayper/discord-rpc rather than the discordjs/rpc library, as I could not get the later to connect. I was mostly interested in prototyping it out to see if it would work, this would probably require a custom rpc implementation, other than just drop in a library
enchantednatures
Unfortunately, using join secrets require a launch command and setting the share url only works for YouTube and Twitch urls.
adamdotdevin
hey @enchantednatures curious, where is this at?
enchantednatures
hey @enchantednatures curious, where is this at?
I should have some time this week to update it.
Unfortunately, I could not get the /share command to create a join link which was the feature I was most excited for. However, I was able to get it to show the model in use and how long the opencode session had been running.
mufarodev
Hey!
What's the progress with this PR? Would love to use it.
Edit: Yeah the age of the PR created a few conflicts :/
Microck
any updates on this?
Changed Files
STATS.md
+265−5bun.lock
+29−2packages/opencode/config.schema.json
+40−0packages/opencode/package.json
+1−0packages/opencode/src/cli/bootstrap.ts
+2−0packages/opencode/src/config/config.ts
+28−0packages/opencode/src/discord/discord.ts
+320−0