···11# AI Tagger for Obsidian
2233-This Obsidian plugin uses Claude 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.
33+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.
4455## Features
6677-- Automatically generate tags for your notes using Claude AI
77+- Automatically generate tags for your notes using AI
88+- Support for multiple AI providers: Anthropic (Claude), OpenAI (GPT), Mistral AI, Google (Gemini), OpenRouter, and custom endpoints
89- Add the generated tags to your note's frontmatter
910- Tag a single note or batch tag all notes in your vault
1011- Customize the prompt used to generate tags
1111-- Choose from different Claude models
1212+- Choose from different AI models
1213- Configure maximum number of tags per note
13141415## Installation
151616171. In Obsidian, go to Settings > Community plugins
17182. Disable Safe mode
1818-3. Click "Browse" and search for "Claude AI Tagger"
1919+3. Click "Browse" and search for "AI Tagger"
19204. Install the plugin
20215. Enable the plugin after installation
21222223Alternatively, you can manually install the plugin:
232424251. Download the `main.js`, `styles.css`, and `manifest.json` files
2525-2. Create a folder named `claude-ai-tagger` in your vault's `.obsidian/plugins/` directory
2626+2. Create a folder named `obsidian-ai-tagger` in your vault's `.obsidian/plugins/` directory
26273. Place the downloaded files in this folder
27284. Enable the plugin in Obsidian's Community Plugins settings
28292930## Setup
30313131-Before using the plugin, you need to configure your Claude API key:
3232+Before using the plugin, you need to configure your AI provider and API key:
32333333-1. Get a Claude API key from [Anthropic's Console](https://console.anthropic.com/)
3434-2. In Obsidian, go to Settings > Claude AI Tagger
3535-3. Enter your API key in the appropriate field
3636-4. Configure other settings as desired
3434+1. Get an API key from your chosen provider:
3535+ - [Anthropic (Claude)](https://console.anthropic.com/)
3636+ - [OpenAI (GPT)](https://platform.openai.com/api-keys)
3737+ - [Mistral AI](https://console.mistral.ai/api-keys/)
3838+ - [Google (Gemini)](https://aistudio.google.com/app/apikey)
3939+ - [OpenRouter](https://openrouter.ai/keys) - Access to multiple models through one API
4040+ - Or use your own custom OpenAI-compatible endpoint
4141+2. In Obsidian, go to Settings > AI Tagger
4242+3. Select your AI provider from the dropdown
4343+4. Enter your API key in the appropriate field
4444+5. Choose your preferred model
4545+6. Configure other settings as desired
37463847## Usage
39484049### Tag Current Note
415042511. Open the note you want to tag
4343-2. Use the command palette (Ctrl/Cmd + P) and search for "Tag current note with Claude"
5252+2. Use the command palette (Ctrl/Cmd + P) and search for "Tag current note with AI"
44533. The plugin will analyze your note and add relevant tags to the frontmatter
45544655### Tag All Notes
47564848-1. Use the command palette (Ctrl/Cmd + P) and search for "Tag all notes with Claude"
5757+1. Use the command palette (Ctrl/Cmd + P) and search for "Tag all notes with AI"
49582. Confirm the action in the dialog that appears
50593. The plugin will process all notes in your vault and add tags to each one
5160···53625463## Settings
55645656-- **Claude API Key**: Your Anthropic API key for Claude
5757-- **Claude Model**: Choose which Claude model to use (Claude 3.5 Sonnet, Claude 3 Opus, etc.)
6565+- **AI Provider**: Choose which AI provider to use (Anthropic, OpenAI, Mistral, Google, OpenRouter, or Custom)
6666+- **API Key**: Your API key for the selected provider
6767+- **AI Model**: Choose which model to use (options vary by provider)
5868- **Maximum Number of Tags**: Set how many tags should be generated per note (1-20)
5959-- **Prompt Template**: Customize the prompt sent to Claude to generate tags
6969+- **Prompt Style**: Choose from predefined prompt styles or create your own custom prompt
60706171## Customizing the Prompt
62726363-You can customize the prompt sent to Claude using the following placeholders:
7373+You can customize the prompt sent to the AI using the following placeholders:
64746575- `{maxTags}`: Will be replaced with the maximum number of tags setting
6676- `{content}`: Will be replaced with the note content