Obsidian Desktop

Bridge between
Obsidian & Claude Code

Your active file, cursor position and text selection are automatically shared with Claude Code. Just say "obsidian" and Claude knows what you're looking at.

View on GitHub

What it exposes

Active file path

The absolute path of the file you're currently editing. Claude Code can read it directly.

Text selection

When you select text in the editor, the selection is passed to Claude Code so it knows exactly what you're referring to.

Auto-installed skill

On first load, the plugin writes a skill to .claude/skills/obsidian/ in your vault. Claude Code picks it up automatically.

Status bar indicator

A "Claude" indicator in Obsidian's status bar confirms the plugin is active and writing context.

How it works

1

Plugin writes context

Every time you switch files or change selection, the plugin writes a JSON file inside the plugin folder.

2

Skill reads context

The auto-installed skill tells Claude Code where to find the context file and how to use it.

3

Claude loads your note

Say "obsidian" or "my note" and Claude reads the active file, focusing on your selection if any.

context.json

{
  "activeFile": "/Users/you/vault/projects/my-note.md",
  "vault": "/Users/you/vault",
  "selection": "The selected text in the editor",
  "timestamp": 1739345678000
}

Written to .obsidian/plugins/obsidian-claude-context/context.json on every file switch or selection change.

Installation

1

Clone the repo into your vault's .obsidian/plugins/obsidian-claude-context/ folder.

2

Restart Obsidian and enable "Claude Context" in Settings > Community Plugins.

3

Open Claude Code in your vault directory. The skill is already installed.

View on GitHub

Desktop only. Requires Obsidian 1.0+.

This site uses cookies to improve your experience. Learn more