Copilot Gemini
unlistedby Khalil Panahi
Gemini Copilot is a plugin that helps you to get things done faster.
Updated 26d agoMIT
Obsidian Gemini Copilot
A powerful Google Gemini-powered AI assistant for Obsidian that helps you write, brainstorm, and navigate your notes with full vault awareness.
Setup: API Key
To use this plugin, you need a Google Gemini API key.
- Obtain an API Key: Go to Google AI Studio.
- Free Tier: For most use cases, the free tier is more than enough.
- Configure Plugin:
- Open Obsidian Settings.
- Navigate to Community plugins -> Obsidian Gemini Copilot.
- Paste your API key into the Google AI API Key field.
Features
- Context-Aware Chat: Automatically includes your currently active note as context for every conversation.
- Vault-wide @Mentions: Link any file in your vault as context by simply typing
@in the chat input. - Interactive Sidebar: A dedicated side view for quick access to your AI assistant.
- Model Selection: Switch between various Gemini models (Gemma 3, Gemma 4, etc.) on the fly.
- Markdown Rendering: AI responses are rendered using Obsidian's native Markdown engine, including support for code blocks, formatting, and mathematical equations.
- Copy to Clipboard: Quickly copy any AI response with one click.
- New Conversation: Easily reset your chat session to start fresh.
Usage
- Click the Gemini icon in the left ribbon (or use the command palette) to open the Copilot sidebar.
- Type your message in the text area at the bottom.
- Use
@followed by a file name to include specific notes in your query. - Hit Enter (or click the send icon) to chat.
- Use the dropdown in the input area to switch models mid-conversation.
- Click the + (New Conversation) button in the header to clear the history.
Settings
- Google AI API Key: Your authentication key for the Gemini API.
- Default Model: The model that will be selected by default when you open a new chat.
- Auto-Add Active Note: Toggle whether the currently open note should be automatically added as context.
Development
If you'd like to contribute or build the plugin from source:
- Clone the repository into your vault's
.obsidian/plugins/folder. - Run
npm installto install dependencies. - Run
npm run devto start the development build with watch mode. - Run
npm run buildfor a production-ready build.
Releasing
To create a new release and trigger the GitHub Actions workflow:
- Ensure the version in
manifest.jsonmatches the new tag version. - Create a new tag:
git tag [new tag version. Ex: 1.0.4] - Push the tag to GitHub:
git push origin [new tag version. Ex: 1.0.4]
License
This project is licensed under the MIT License.
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.