This Obsidian plugin uses AI to automatically generate tags for your notes and add them to the frontmatter. It analyzes the content of your notes and suggests relevant tags based on the text.
- Automatically generate tags for your notes using AI
- Support for multiple AI providers: Anthropic (Claude), OpenAI (GPT), Mistral AI, Google (Gemini), OpenRouter, and custom endpoints
- Add the generated tags to your note's frontmatter
- Tag a single note or batch tag all notes in your vault
- Customize the prompt used to generate tags
- Choose from different AI models
- Configure maximum number of tags per note
- In Obsidian, go to Settings > Community plugins
- Disable Safe mode
- Click "Browse" and search for "AI Tagger"
- Install the plugin
- Enable the plugin after installation
Alternatively, you can manually install the plugin:
- Download the
main.js,styles.css, andmanifest.jsonfiles - Create a folder named
obsidian-ai-taggerin your vault's.obsidian/plugins/directory - Place the downloaded files in this folder
- Enable the plugin in Obsidian's Community Plugins settings
Before using the plugin, you need to configure your AI provider and API key:
- Get an API key from your chosen provider:
- Anthropic (Claude)
- OpenAI (GPT)
- Mistral AI
- Google (Gemini)
- OpenRouter - Access to multiple models through one API
- Or use your own custom OpenAI-compatible endpoint
- In Obsidian, go to Settings > AI Tagger
- Select your AI provider from the dropdown
- Enter your API key in the appropriate field
- Choose your preferred model
- Configure other settings as desired
- Open the note you want to tag
- Use the command palette (Ctrl/Cmd + P) and search for "Tag current note with AI"
- The plugin will analyze your note and add relevant tags to the frontmatter
- Use the command palette (Ctrl/Cmd + P) and search for "Tag all notes with AI"
- Confirm the action in the dialog that appears
- The plugin will process all notes in your vault and add tags to each one
You can also use the ribbon icon (tag symbol) to access these commands.
- AI Provider: Choose which AI provider to use (Anthropic, OpenAI, Mistral, Google, OpenRouter, or Custom)
- API Key: Your API key for the selected provider
- AI Model: Choose which model to use (options vary by provider)
- Maximum Number of Tags: Set how many tags should be generated per note (1-20)
- Prompt Style: Choose from predefined prompt styles or create your own custom prompt
You can customize the prompt sent to the AI using the following placeholders:
{maxTags}: Will be replaced with the maximum number of tags setting{content}: Will be replaced with the note content
Default prompt:
Generate {maxTags} relevant tags for the following note content. Return only the tags as a comma-separated list, without any additional commentary. Tags should be lowercase and use hyphens for multi-word tags.
Content:
{content}
This plugin is built with TypeScript and uses the Obsidian API. If you'd like to contribute or modify the plugin:
- Clone the repository
- Install dependencies with
npm install - Make your changes
- Build with
npm run build - Test in your Obsidian vault
If you encounter any issues or have suggestions, please create an issue on the GitHub repository.
If you are enjoying my plugin, then please support my work by buying me a coffee at https://buymeacoffee.com/jaspermayone or sponsoring me on github .
Please also help spread the word by sharing about the plugin on Twitter, Reddit, or any other social media platform you regularly use.
