Show your Obsidian activity on Discord via Rich Presence — vault name, file, edit/reading mode and an elapsed timer, directly in your Discord profile.
.canvas files tracked correctly, no stale presence on view switchJournal/**, *.canvas){file}, {fileNoExt}, {folder}, {vault}, {mode}, {wordCount}, {lineCount}, {meta:key}| Setting | Description |
|---|---|
| Discord Client ID | Your own Discord Application ID for custom images. Leave empty for the default. |
| Show vault name | Toggle vault name in Discord status |
| Custom vault name | Override the displayed vault name |
| Show file name | Toggle current file name in status |
| Show file extension | Toggle .md extension in file name |
| Per-file timer | Reset timer on each new file vs. total session time |
| Show connection notices | Show notice on Discord connect |
| No file open text | Text shown when no file is active. Default: No file open |
| Swap image layout | Flip editing/reading icon and Obsidian logo positions |
| Details format | Custom top line, e.g. Editing {fileNoExt} |
| State format | Custom bottom line, e.g. {mode} in {vault} ({wordCount} words) |
| Excluded patterns | One pattern per line. Supports plain text and globs (Journal/**, *.canvas) |
| Enable idle detection | Toggle idle detection |
| Idle timeout | Minutes of inactivity before going idle |
| When idle | Show "Away from keyboard" or clear presence entirely |
| Button 1 / 2 label | Text shown on the button (max 32 characters) |
| Button 1 / 2 URL | Link opened when the button is clicked (must start with https://) |
| Placeholder | Description |
|---|---|
{file} |
Full file name including extension |
{fileNoExt} |
File name without extension |
{folder} |
Parent folder path |
{vault} |
Vault name |
{mode} |
Editing or Reading |
{wordCount} |
Live word count |
{lineCount} |
Live line count |
{meta:key} |
Any frontmatter value, e.g. {meta:project} |
Add up to 2 clickable buttons to your Discord profile card.
View Repository) and URL (e.g. https://github.com/yourname/yourrepo)Note: Discord does not show your own buttons on your own profile — ask someone else to verify they appear.
By default the plugin uses a shared Discord Application with the Obsidian logo. To use your own images and branding:
| Key | Used for |
|---|---|
obsidian |
Main large image |
editing |
Small icon in Edit mode |
reading |
Small icon in Preview/Reading mode |
Discord RPCmain.js, manifest.json, styles.css from the latest release.obsidian/plugins/discord-rpc/ in your vaultgit clone https://github.com/30jannik06/Obsidian-Presence
cd Obsidian-Presence && pnpm install
pnpm dev # watch mode with sourcemaps
pnpm build # production build
pnpm lint # ESLint check
pnpm format # Prettier format
.canvas files tracked correctly{folder}, {wordCount}, {lineCount}, {meta:key}Inspired by obsidian-discordrpc by lukeleppan (MIT). Rewritten from scratch as the original has not been maintained since 2022.