Automatically suggest and add tags to your Obsidian notes using AI. The plugin analyzes your note content and selects the most relevant tags from your existing tag collection — it never invents new tags.
- AI-powered tagging — Uses free models via OpenRouter (Nemotron, MiniMax) to analyze note content
- Strict tag validation — Only suggests tags from your existing tag files, never creates new ones
- Interactive tag selection — Review suggestions in a modal and toggle individual tags before applying
- Auto-insert mode — Optionally skip the confirmation dialog for faster workflows
- Configurable — Set max tags (1–10), choose your tags folder, and adjust behavior
- Go to openrouter.ai/keys
- Create a free account and generate an API key
- The plugin uses free models (e.g.,
nvidia/nemotron-3-super-120b-a12b:free) — no charges apply
Create a folder in your vault where each file represents a tag. For example:
Tags/
├── project-alpha.md
├── meeting-notes.md
├── machine-learning.md
├── personal.md
└── research.md
The filename (without extension) becomes the tag name.
- Open Obsidian Settings → Community Plugins → AI Auto Tagger
- Set the Tags folder path (e.g.,
TagsorUtility/MyTags) - Paste your OpenRouter API key
- Adjust Max tags if desired (default: 5)
- Open the note you want to tag
- Click the tag icon in the left ribbon, or use the command palette: "Run AI Auto Tagger"
- Review the suggested tags in the dialog — click any tag to deselect it
- Click Add Tags to insert them into your note
Tags are inserted as a Tags: line with [[wiki-link]] format. If one already exists, it gets updated in place.
- Download the latest release (
main.js,manifest.json,styles.css) - Create a folder:
<vault>/.obsidian/plugins/ai-auto-tagger-plugin/ - Copy the files into that folder
- Enable the plugin in Obsidian settings
git clone https://github.com/danitrrga/ai-auto-tagger.git
cd ai-auto-tagger
npm install
npm run buildThen copy main.js, manifest.json, and styles.css to your vault's plugin folder.
The plugin sends your note content (truncated to ~6000 characters) and your tag list to OpenRouter's chat API. The AI model returns a JSON response with selected tags. The plugin validates every suggested tag against your allowed list before showing it to you — nothing outside your tag collection can be applied.
| Issue | Solution |
|---|---|
| "OpenRouter API key not configured" | Add your key in plugin settings |
| "No tag files found" | Check that your tags folder path is correct and contains files |
| "Invalid API key" | Verify your key at openrouter.ai/keys |
| "Rate limit exceeded" | Wait a moment and try again — the free tier has usage limits |
| "Network error" | Check your internet connection |
| No relevant tags found | Your note content may not match your existing tag categories |
MIT