AI CLI Chat
pendingby Nealey
Chat with Claude Code CLI in your vault. Read, write, and edit notes directly.
AI CLI Chat
An AI assistant that lives in your Obsidian vault. Chat with Claude and let it read, write, and edit your notes directly.
What This Plugin Does
- Chat with Claude in a sidebar panel
- Claude can access your vault - read files, search content, make edits
- Custom Skills - teach Claude specialized workflows for your use case
- Session History - save and resume conversations
Quick Start
Step 1: Install Claude Code CLI
This plugin requires the Claude Code command-line tool. Here's how to install it:
Check if you have Node.js
Open Terminal (Mac) or Command Prompt (Windows) and run:
node --version
If you see a version number (like v18.0.0), you're good. If not, download Node.js first.
Install Claude Code
In Terminal/Command Prompt, run:
npm install -g @anthropic-ai/claude-code
Authenticate
Run this command and follow the prompts to log in with your Anthropic account:
claude
Step 2: Install the Plugin
-
Download this plugin folder to your vault:
YourVault/.obsidian/plugins/obsidian-claude-code/ -
In Obsidian, go to Settings → Community plugins
-
Click Reload plugins, then enable Claude Code
Step 3: Verify Setup
- Go to Settings → Claude Code
- You should see a green "✅ Claude CLI Connected" message
- If not, click Auto-detect or follow the setup instructions shown
How to Use
Basic Chat
- Click the chat bubble icon in the left ribbon (or use Command Palette → "Open Claude Chat Panel")
- Type your message and press Enter
- Claude responds and can use tools to work with your vault
What Claude Can Do
| Action | Example |
|---|---|
| Read files | "What's in my meeting notes from yesterday?" |
| Search vault | "Find all notes mentioning Project X" |
| Edit files | "Add a summary section to this note" |
| Create files | "Create a new note for today's standup" |
| Run commands | "List all markdown files in the Projects folder" |
Using Skills
Skills are specialized modes that give Claude specific instructions for certain tasks.
- Select a skill from the Mode dropdown (above the chat input)
- Type your request
- Claude follows the skill's workflow
Built-in: Skill Creator - helps you create new skills
Creating Custom Skills
Skills live in your vault at .claude/skills/ (configurable in settings).
Using the Built-in Skill Creator (Recommended)
The easiest way to create a new skill:
- Select Skill Creator from the Mode dropdown
- Describe what you want the skill to do, e.g.:
- "Create a skill for processing meeting notes that extracts action items"
- "I need a skill for writing blog posts with SEO optimization"
- Claude will create the skill folder and SKILL.md file for you
- Restart Obsidian to see your new skill in the Mode dropdown
Manual Creation
You can also create skills manually:
- Create a folder in
.claude/skills/(e.g.,.claude/skills/daily-note/) - Add a
SKILL.mdfile with YAML frontmatter:
---
name: daily-note
description: Create daily notes with consistent formatting. Use when starting a new day or journaling.
---
# Daily Note Creator
Create daily notes with this structure:
- Date header
- Morning intentions
- Tasks for today
- Evening reflection section
Always save to the Journal/ folder with filename YYYY-MM-DD.md
- Restart Obsidian - your skill appears in the Mode dropdown
Skill Structure
.claude/skills/
└── my-skill/
├── SKILL.md # Required - instructions for Claude
├── scripts/ # Optional - automation scripts
├── references/ # Optional - docs Claude can read
└── assets/ # Optional - templates, images
Settings
| Setting | Description |
|---|---|
| Claude CLI Path | Usually auto-detected. Click "Auto-detect" if needed. |
| Skills Folder | Where to find skills (default: .claude/skills) |
| Max Turns | How many actions Claude can take per request |
| Include Current Note | Auto-include the open note as context |
| Show Tool Calls | See what tools Claude uses |
| Session Storage | Where chat history is saved |
Troubleshooting
"Claude CLI Not Found"
- Open Terminal and run
claude --version - If it works there but not in Obsidian, click Auto-detect in settings
- Or manually enter the path (run
which claudeto find it)
Skills Not Appearing
- Check the Skills Folder path in settings matches where your skills are
- Each skill needs a
SKILL.mdfile - Try restarting Obsidian after adding skills
Chat Not Responding
- Check the connection status in settings
- Run
claudein Terminal to verify authentication - Check Obsidian's developer console (Cmd+Opt+I) for errors
"Command not found: npm"
You need Node.js installed. Download it here.
FAQ
Q: Do I need a paid Anthropic account? A: Yes, Claude Code requires an Anthropic account with API access.
Q: Is my data sent to Anthropic? A: Only the content you chat about. Claude Code runs locally and sends prompts to Anthropic's API.
Q: Can Claude edit any file? A: Claude can only access files within your Obsidian vault.
Q: How do I stop Claude mid-response? A: Click the Stop button that appears while Claude is responding.
Requirements
- Obsidian 1.4.0 or later
- Node.js 18 or later
- Claude Code CLI (installed via npm)
- Anthropic account with API access
Support
Created by Nealey • Powered by Claude Code by Anthropic
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.