Obsidian AI Hub is a plugin for Obsidian that integrates AI services like Google AI Studio, allowing you to generate content directly within your notes.
- Generate AI Content: Select text in your note and generate AI-powered content to replace or expand it.
- Ribbon Button for Quick Access: Use the ribbon button to quickly generate content with AI.
- Modular Integration: Designed to be modular, so you can integrate with other AI APIs like ChatGPT, Claude, or Llama in the future. To be implemented.
- Customizable Settings: Configure your API key and select the AI model in the plugin settings.
-
Download the Plugin
- Clone or download the
obsidian-ai-hub
repository to your local machine.
- Clone or download the
-
Build the Plugin
-
Ensure you have Node.js v18+ installed.
-
Open a terminal in the plugin directory.
-
Install dependencies:
npm install
-
Build the plugin:
npm run build
-
-
Install the Plugin in Obsidian
- Copy the entire
obsidian-ai-hub
folder into your Obsidian vault's.obsidian/plugins/
directory. - Restart Obsidian or reload plugins.
- Go to Settings > Community Plugins and enable Obsidian AI Hub.
- Copy the entire
- Navigate to Settings > AI Hub.
- Enter your Google AI Studio API key.
- Choose your desired AI model (e.g.,
gemini-1.5-flash
).
-
Generate AI Content
- Open a markdown note.
- Select the text you want to use as a prompt.
- Click the "Generate Content with AI" ribbon icon on the left sidebar.
- Alternatively, open the command palette (
Ctrl+P
orCmd+P
) and run "Generate Content with AI".
- Alternatively, open the command palette (
-
View the Result
- The selected text will be sent to the AI service.
- The AI-generated content will replace the selected text in your note.
- Node.js v18+ installed on your machine.
-
Clone the Repository
git clone <repository-url>
-
Install Dependencies
npm install
-
Build the Plugin
-
For a one-time build:
npm run build
-
For development with watch mode:
npm run watch
-
- Plan to integrate with ChatGPT, Claude, Llama, and other AI services.
- Options for inserting content without replacing text, custom templates, and more.
- Contributions are welcome! Please feel free to submit issues and pull requests.