Skip to content
AddHunt
Obsidian plugins

AI for Templater

Obsidian plugin that adds LLM calls to Templater

Works with ObsidianOpen source

  • Open source
  • Licence: MIT

In short

AI for Templater is an open-source Obsidian plugin that extends the Templater plugin so templates can send prompts to OpenAI models or any OpenAI-compatible LLM. It is for Obsidian users who build notes with Templater and want model output inside them.

What you get

  • AI commands inside Templater templates
  • Works with OpenAI and OpenAI-compatible APIs
  • Local LLM support
  • JavaScript support
  • Examples index in the docs

The details

AI for Templater adds language model access to Templater, the templating plugin for Obsidian. Once installed, templates gain AI commands, so a short snippet such as tp.ai.chat with a question inserts the model's answer straight into a note when the template runs.

Models and setup

The plugin is built mainly for OpenAI models, the kind behind ChatGPT, but it also works with any service that exposes the OpenAI API, and it can be pointed at a local LLM. It needs an API key from OpenAI or another compatible provider. Unless it is configured for a local model, it sends requests to the OpenAI API over the internet, which the author points out in the documentation.

Documentation

The author's site covers the available Templater commands, an index of examples and JavaScript support, and links to the GitHub repository. The plugin can be installed from Obsidian's community plugin list.

Who it suits

It fits people who already use Templater to build notes and want text from a language model generated as part of those templates, with the choice of a hosted or local model.

Alternatives to AI for Templater

All alternatives

Questions

Do I need an API key?

Yes. The plugin requires an API key from OpenAI or another service that supports the OpenAI API.

Can it use a local model?

Yes. It can be configured for a local LLM; otherwise it sends requests to the OpenAI API over the internet.

How is it installed?

Through Obsidian's community plugin list.

More like this