AI Agent

approved

by Manuel Magaรฑa Lรณpez

Empower your vault with Google Gemini. This AI agent integrates Google's artificial intelligence language models to help you perform tasks and conduct web searches.

โ˜… 50 starsโ†“ 4,083 downloadsUpdated 28d agoMIT
View on GitHub

Obsidian Agent

Lend your vault to an AI agent. Read, write, and search your notes with AI.

Release GitHub stars

๐Ÿš€ Overview

A simple and lightweight AI extension for Obsidian. Delegate basic tasks to an agent that can write, edit, and create notes and folders within your vault.

It features a user-friendly UI, inspired by other agentic apps.

main UI

๐Ÿง  Getting Started

  1. Download from Community Plugins in Obsidian or clone the repository inside your ~/vault/.obsidian/plugins/ folder.
  2. Enable the plugin from Obsidian's settings panel.
  3. Add the corresponding Google API key in the plugin's settings panel.

[!IMPORTANT]
Additionally you can add a custom URL to get connected to google services. Also, make sure you have a valid Google API key with the Gemini service enable.

Start chating with the agent by locating and clicking on the brain icon in the left and right sidebars. Or add a hotkey to kickly acces your most recent chat.

hotkeys

๐Ÿ’ฌ Chats

Manage your chats as Obsidian notes. Rename the chat by renaming the file.

chat-management

[!CAUTION]
Chat files are design to store the chat history and the messages metadata. Do not modify or move them.

๐Ÿ› ๏ธ Tools

The agent can use the following tools to interact with your vault:

  • Create note: Create a new note in your vault.
    e.g: Create a note titled 'Project Ideas'
  • Read note: Read the content of a note.
    e.g: Read the active note
  • Edit note: Edit an existing note.
    e.g: Add a summary of this text: [...] to the note 'Book Review'
  • Create folder: Create a new folder.
    e.g: Create a folder called '2024 Plans'
  • List files: List files in a folder.
    e.g: List all files in the folder 'Research'
  • Vault Search: Search for content across your vault.
    e.g: Search if it exist a note called 'AI agent'
  • Note filtering: Return note paths that fall inside a date range.
    e.g: Give me yesterday's notes
  • Web search: Search for content on the web.
    e.g: Search on the web for todays temperature in Austin, Texas

Also you can right click over selected text, in your markdown notes, to summarize selection or ask agent.

Obsidian

And finally, you can also attach images by clicking the image icon, and notes with the @ icon in the input.

๐ŸŸก Disclosures

This plugin connects to remote Google AI services to process your requests.

Why is this needed?
The AI models that power these features run on external servers and require an internet connection. Your notes or queries are sent securely to the selected provider for processing, and the results are only returned to your vault.

To use these AI service, you must set a Google API key. You are responsible for obtaining and managing your API keys.

๐Ÿซฑ๐Ÿผโ€๐Ÿซฒ๐Ÿผ Contributing & Support

  • Found a bug? Open an issue here.
  • Want to contribute? Create a new pull request.

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.