Steward is a plugin that utilizes Large Language Models (LLMs) to interact with your Obsidian Vault. It provides commands like search
, move
, copy
, create
, etc, as building blocks to create your own sophisticated commands, prompt chaining, and automation for your specific tasks.
- Built-in Search Engine: A TF-IDF based search with relevant scoring and typo tolerance that is significantly faster than the native Obsidian search.
- Interactive and Adaptive Chat UI: One or more chat interfaces made of the slash
/
leveraging Obsidian's editor and reading view features, that is, adaptable to your current themes. - Privacy-focused: Most actions are executed in the front-end using Obsidian API to avoid exposing your data to LLMs (except for your queries).
- Command-based Interaction: Support for standard commands like search, create, update, delete, move, audio, image generation, and user-defined commands.
- Model Flexibility: Use your favorite AI models, including OpenAI, DeepSeek, Gemini, Ollama, etc.
- Intent Caching: Utilizes embeddings to cache similar queries, so subsequent requests require fewer tokens for LLM processing.
- Multi-language Support: Use Steward in your preferred language.
- User-Defined Commands: Create your own command workflows by combining multiple commands with specific LLM models and settings of your choice.
Steward can be used through the command palette directly in the editor or by opening the chat interface.
- Click the "Open Steward chat" icon to open the chat
- Type after the
/
in the chat or the active editor to interact or type/ ?
to see available commands - To add a new line in the command input, press
Shift+Enter
(uses 2-space indentation)
You can create your own User-Defined Commands to automate workflows and combine multiple built-in or other User-Defined commands into a single, reusable command.
- User-Defined Commands are defined as YAML blocks in markdown files inside the
Steward/Commands
folder. - Each command can specify a sequence of built-in or user-defined commands to execute.
- You can specify if user input is required for your command using the
query_required
field. - These commands are available with autocomplete and are processed just like built-in commands.
command_name: clean_up
description: Clean up the vault
query_required: false
model: gpt-4o # Optional: Specify a default model for all commands
commands:
- name: search
query: 'Notes name starts with Untitled or with tag #delete'
- name: delete_from_artifact
query: Delete them
model: gpt-3.5-turbo # Optional: Override the model for this specific step
command_name
: The name you will use to invoke the command (e.g.,/clean_up
)query_required
: (optional, boolean) If true, the command requires user input after the prefixmodel
: (optional, string) The model to use for all commands in this user-defined commandcommands
: The sequence of built-in or user-defined commands to executesystem_prompt
: The system prompts that allows you to add additional guidelines to LLMs to the current commandquery
: (required if thequery_required
is true, string) The query to send to LLMs, put the$from_user
as a placeholder for your inputmodel
: (optional, string) The model to use for this specific command step (overrides the command-level model)
You can reference the content of other notes in your vault by using Obsidian links in the system_prompt
array:
command_name: search_with_context
description: Search with predefined context
query_required: true
commands:
- name: search
system_prompt:
- '[[My Context Note]]'
- Additional instructions
query: $from_user
When the command is executed:
- The link
[[My Context Note]]
will be replaced with the actual content of that note - This allows you to maintain complex prompts or contexts in separate notes
- You can update the linked notes independently of your command definition
- Create a note in
Steward/Commands
and add your command YAML in a code block. - In any note or the Chat, type your command (e.g.,
/clean_up #Todo
) and press Enter. - The command will execute the defined sequence, using your input if required.
- The system validates your User-Defined Command YAML:
command_name
must be a stringcommands
must be a non-empty array- If present,
query_required
must be a boolean - Each command step must have a
name
(string) andquery
(string)
- If validation fails, the command will not be loaded and an error will be logged.
You can ask Steward to help create user-defined commands using natural language, even without knowing YAML syntax:
- Simply share the User-Defined Command Guidelines with Steward
- Describe what you want your command to do in plain language
- Steward will create commands with the proper YAML structure for you
- Review, modify if needed, and save to your Commands folder
The following diagram illustrates how commands are processed in Steward:
Steward creates the following folder structure in your vault:
Steward/
├── Commands/ # Stores user-defined command definitions
├── Conversations/ # Archives past conversations
└── Steward Chat.md # Current active conversation
- Download the plugin from the Obsidian Community Plugins browser
- Enable the plugin in your Obsidian settings
- Configure your API keys in the plugin settings
- Install BRAT from the Obsidian Community Plugins
- Open BRAT settings and add the beta plugin:
googlicius/obsidian-steward
- Enable the plugin in your Obsidian settings
- Configure your API keys in the plugin settings
- Download the latest release from the releases page
- Extract the zip file into your Obsidian vault's
.obsidian/plugins
folder - Enable the plugin in your Obsidian settings
- Configure your API keys in the plugin settings
-
API Keys:
- OpenAI API Key (for OpenAI models and embeddings)
- ElevenLabs API Key (for audio generation)
- DeepSeek API Key (for DeepSeek models)
-
LLM Settings:
- Chat Model: Choose between various models from OpenAI, DeepSeek, or Ollama
- Temperature: Controls randomness in the output (0.0 to 1.0)
- Ollama Base URL: For local Ollama models (default: http://localhost:11434)
-
Steward Folder: The folder where Steward' related notes will be stored (default:
Steward
) -
Debug Mode: Enable detailed logging for troubleshooting
This plugin uses TypeScript and follows the Obsidian plugin architecture.
- Clone this repository
- Run
npm install
to install dependencies - Run
npm run build
to build the production version
Contributions to Steward are welcome! Here's how you can contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
You can contribute your User-Defined Commands (UDCs) to help the community:
- Create your UDC following the guidelines in the User-Defined Command section
- Test your UDC thoroughly to ensure it works as expected
- Add your UDC to the
community-UDCs
folder with a descriptive name - Include clear documentation in your UDC file explaining:
- What the command does
- How to use it
- Any prerequisites or dependencies
- Example usage scenarios
Check out existing commands in the community-UDCs
folder like flashcard-assist.md
for reference.
MIT
- Multiple lines command.
- Reminder.
- Steward can provide information about its functionalities, limitations,...
- Provide any information, usage, and guidance about Obsidian.
- Autocompletion and automation.
- User-defined commands and actions
- Traceability
- MCP support.