Obsidian
Obsidian is a note-taking application that enables users to create, link, and visualize ideas directly on their devices. With Obsidian, you can seamlessly sync notes across devices, publish your work, and collaborate with others. The app is highly customizable, allowing users to enhance functionality through a wide range of plugins and themes. Its unique features include a graph view to visualize connections between notes, making it ideal for managing complex information and fostering creativity. Obsidian also emphasizes data privacy by storing notes locally.
Obsidian-local-gpt is a plugin that allows users to run a local large language model within Obsidian note-taking application. This plugin enables various AI-powered features directly in Obsidian, such as text generation, summarization, spelling and grammar checks, and task extraction.
A key feature of this plugin is that it supports a large number of open source LLMs. You can choose an LLM that is finetuned for your specific task β eg if you take a lot of coding notes, you could choose a Codestral or CodeLlama or DeepSeek LLM. Furthermore, if you choose to run the LLM locally on your own computer, the plugin would support private and offline use of the LLM features. For more details, you can visit the obsidian-local-gpt GitHub page.
This guide explains how to set up and use the plugin with a Gaia node as an alternative to OpenAI or Ollama.
Prerequisitesβ
You will need a Gaia node ready to provide LLM services through a public URL. You can
In this tutorial, we will use a public node.
Attribute | Value |
---|---|
API endpoint URL | https://llama8b.gaia.domains/v1 |
Model Name | llama |
Obsidian-local-gpt Plugin Setupβ
Make sure you have already installed the Obsidian app on your device.
Install the Obsidian-local-gpt Pluginβ
- Open Obsidian settings, navigate to "Community plugins", and search for
obsidian-local-gpt
. - Install the plugin by clicking βInstallβ.
Then click βEnableβ.
Configure the Pluginβ
- Go to the plugin settings.
- Select "AI Provider" as "OpenAI compatible server".
- Set the server URL. Use https://llama8b.gaia.domains/ if you are using a public Gaia node. Or, use http://localhost:8080/ if you are running a local Gaia node.
- Configure API key to Gaia.
Make sure to click the refresh button and choose the llama model if youβre using the public Gaia node url and Phi-3-mini-4k-instruct if youβre using the local Gaia node.
Configure Obsidian Hotkeyβ
- Open Obsidian Settings.
- Go to Hotkeys.
- Filter "Local" and you should see "Local GPT: Show context menu".
- Click on
+
icon and press hotkey (e.g.β + M
).
As long as you have set the hotkey, while writing or editing a note, select the text you want to interact with, and press the hotkey you have set to use this LLM powered plugin!