pi-discord-presence
Discord Rich Presence extension for pi coding agent.
Package details
Install pi-discord-presence from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-discord-presence- Package
pi-discord-presence- Version
0.1.0- Published
- May 10, 2026
- Downloads
- 25/mo · 2/wk
- Author
- byigitt
- License
- MIT
- Types
- extension
- Size
- 23.8 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/discord-presence.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-discord-presence
Discord Rich Presence extension for pi coding agent.
Client ID is preconfigured as 1378773754103988274.
Use locally
pnpm install
pi -e .
Or install this folder as a pi package:
pi install /Users/baris/Desktop/Projects/pi-discord-presence
Then restart pi or run /reload.
Commands
Inside pi:
/discord-presence # toggle on/off globally
/discord-presence status
/discord-presence off
/discord-presence on
/discord-presence refresh
The on/off state is global across pi projects and sessions. It is stored at:
~/.pi/agent/discord-presence-state.json
Better Discord display
The activity name shown by Discord comes from the Discord Developer Portal application name. The extension cannot change that through RPC.
To make it lowercase, rename the application to something like pi coding agent or pi dc presence in the Developer Portal.
This repo includes pi logo assets from https://pi.dev/logo-auto.svg:
assets/pi-logo.svgassets/pi-logo.png
Upload assets/pi-logo.png to the Discord application's Rich Presence assets, then set the uploaded asset key with env vars:
export PI_DISCORD_LARGE_IMAGE_KEY=pi-logo
export PI_DISCORD_SMALL_IDLE_IMAGE_KEY=pi-logo
export PI_DISCORD_SMALL_WORKING_IMAGE_KEY=pi-logo
You can override the app id too:
export PI_DISCORD_CLIENT_ID=1378773754103988274