by Matthew
Turn a note into a Claude Code session. Write instructions in the note and get the answers, tool approvals, and results back in it.
Claude Note CLI
Turn an Obsidian note into a Claude Code session. You write an instruction in the note, press a key, and Claude Code's answer, its tool approvals and the files it touched come back into the same note. The note keeps the whole conversation, so you can read it later, link to it, and pick the session up again.
Status: development version (0.5.x), available in the Community plugins directory. It has been tested on macOS. Windows is not yet tested.
Not affiliated with Anthropic. This is an independent plugin. "Claude" and "Claude Code" are trademarks of Anthropic. The plugin starts the Claude Code program that you install yourself; it does not include or redistribute any Anthropic software.
How it works
A session note holds a sequence of input blocks and output blocks:
```ncli
List every prime between 1 and 100.
[[Notes on primes]]
```
> [!ncli-out] Turn 1 · 2026-11-28 12:00
> 2, 3, 5, 7, 11, …
- Write your instruction in the last
nclicode block and press Cmd+Enter (macOS) or Ctrl+Enter (Windows and Linux). - The plugin starts Claude Code in the session's working folder and streams the answer into the note. When Claude Code wants to run a command or change a file, an approval card appears in the note (or in a dialog if the note is not on screen).
- When the turn ends, the answer is written as an
ncli-outcallout, and a new empty input block is added for the next instruction. The next turn continues the same Claude Code conversation.
Features
- Notes as context.
[[Note]]tells Claude Code where the note is and lets it read that one file during the run.![[Note]]puts the note's text directly into the prompt;![[Note#Heading]]and![[Note#^block]]send just that part. Links in the input block can be clicked, previewed and completed like normal links. - Shell lines. A line starting with
!runs a shell command in the working folder. Its output is sent with the instruction, or kept for the next instruction if the block has only!lines. - Claude Code commands. A block whose first line starts with
/is sent to Claude Code as a command, with completion for built-in and custom commands. - Plugin commands.
:cwd pathchanges the working folder,:fork [turn]branches the session into a new note,:undoreverts the file changes of the previous turn,:summarywrites a summary into the note's properties, and:full [[Session note]]embeds another session in full. - Prompt bar. The Ask Claude command, or typing
/ccat the start of a line in any note, opens a prompt bar. From a normal note it starts a new session note that links back to it (and includes the selection, if any). - Approvals you control. Each tool use needs your approval unless you chose "always allow" for that kind of action in that working folder. Remembered rules are stored only on this device and can be removed in the settings.
- Protection. The plugin always blocks Claude Code from writing to the session note itself, from writing to the vault's configuration folder, and from reading or writing Claude Code's credential files. By default it also blocks reading the configuration folder (which can hold other plugins' API keys) and changing Claude Code, MCP and Git settings; you can allow the reading, or send those changes to an approval card instead, in the settings. You can also block folders, tags and file patterns.
- Safe output. Answers are rendered so that they cannot run code, load remote content, or create dangerous links in your vault.
- 30 languages. The interface follows Obsidian's language setting: English, Japanese, Simplified and Traditional Chinese, Korean, Spanish, Portuguese (Brazil and Portugal), German, French, Italian, Catalan, Ukrainian, Turkish, Arabic, Hebrew, Hindi, Bengali, Urdu, Odia, Sanskrit, Telugu, Kannada, Tamil, Malayalam, Thai, Vietnamese, Indonesian, Tagalog and Taiwanese Hokkien.
Requirements
- Obsidian 1.11.4 or later, desktop only.
- Claude Code installed on the same computer (the plugin finds
claudethrough your login shell'sPATH, or you can set its path in the settings). Version 2.1.282 or later. - An account is required, and usage may cost money. Claude Code needs either a Claude subscription that includes Claude Code or an Anthropic API key. Usage is billed or counted by Anthropic under your own account and terms. The plugin can show Claude Code's cost estimate for each turn and can stop a run at a spending limit you set.
Installation
From Community plugins
- Open Settings → Community plugins and select Browse.
- Search for "Claude Note CLI", then select Install and Enable.
You can also select Add to Obsidian on the plugin's Community page.
Manually
- Download
main.js,manifest.jsonandstyles.cssfrom the latest release on this repository's Releases page. - Put them in
<your vault>/.obsidian/plugins/note-cli/. - Reload Obsidian, then enable Claude Note CLI in Settings → Community plugins.
Usage
- Run the command New session note, or type
/ccat the start of a line in any note. - Write an instruction and press Cmd/Ctrl+Enter.
- Approve or deny tool use on the cards that appear. Press Esc (or the Stop button) to stop a run.
Commands
| Command | What it does |
|---|---|
| New session note | Creates a session note with an empty input block |
| Ask Claude | Opens the prompt bar |
| Go to the input block | Moves the cursor to the session note's input block |
| Run the current input block | Same as Cmd/Ctrl+Enter |
| Stop the run | Stops the running turn |
| Save output block as a new note | Copies an answer into its own note |
No default hotkeys are assigned.
Settings
Claude Code's path and model, the line-start trigger, the folder for new session notes, the default working folder, thinking effort, a spending limit per run, an approval timeout, an optional API key from Obsidian's secret storage, whether to load your Claude Code settings and MCP servers, automatic summaries, blocked folders, tags and patterns, shell options, cost display, and the lists of remembered "always allow" rules and trusted working folders.
Disclosures
Network use
The plugin itself makes no network requests and has no telemetry. It starts the Claude Code program, which sends your instructions, the notes and command output you include, and the files Claude Code reads with its tools to Anthropic (or to the provider you configured in Claude Code), and which may use the internet through its own tools such as web search and web fetch. See Anthropic's terms and privacy policy for how that data is handled.
Files and programs outside the vault
- Claude Code runs in a working folder. By default this is the vault folder. With
:cwdor the default-working-folder setting it can be any folder you choose, and Claude Code can read and, with your approval, change files there. The first time you use a folder, the plugin asks you to confirm that you trust it, because Claude Code will apply that folder's own settings, hooks and MCP servers. - Programs. The plugin starts
claude, runs your login shell once to read yourPATH, and runs the shell commands you write on!lines. - Claude Code's own files. To check whether a session can be resumed, the plugin reads the list of session files under Claude Code's configuration folder (
~/.claude/projects/, orCLAUDE_CONFIG_DIR). It never reads Claude Code's credential files and blocks Claude Code's tools from reading them.
Data stored by the plugin
Settings are saved in the plugin's data.json. Trusted folders, "always allow" rules, the list of available commands and per-session cost totals are saved in this device's local storage and are not synced.
Limitations
- Blocking applies to Claude Code's file tools and to paths that appear in shell commands. A shell command or script can still read a blocked file indirectly. Use Claude Code's own sandbox or permission settings if you need a hard boundary.
- The plugin talks to Claude Code through its stream-JSON interface. A future Claude Code release may change it; the plugin warns when it finds a Claude Code version newer than the one it was tested with (2.1.332).
- Windows support is untested.
Contributing
Bug reports and suggestions are welcome. See CONTRIBUTING.md.
License
MIT © 2026 Matthew. main.js contains only this project's own code and bundles no third-party library; see NOTICE.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.