Markpilot

by Taichi Maeda
5
4
3
2
1
Score: 46/100

Description

Category: Productivity Tools

The Markpilot plugin brings AI-powered inline completions and a chat view to Obsidian. It integrates with models from OpenAI, OpenRouter, and local models like Ollama, offering context-aware suggestions based on Markdown content. The plugin features advanced prompting techniques and a sophisticated UI, allowing users to interact with the model seamlessly. It also provides a sidebar chat view inspired by GitHub Copilot, with a clear chat history and response options. Markpilot allows users to set usage limits, monitor API costs, and customize the completion behavior. With both inline completions and chat functionalities in one plugin, it offers a comprehensive solution for integrating AI into the Obsidian note-taking experience.

Reviews

No reviews yet.

Stats

20
stars
1,358
downloads
3
forks
758
days
679
days
679
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
8
total issues
4
open issues
4
closed issues
124
commits

Latest Version

2 years ago

Changelog

  • Resolved issue #6 by providing the setting option to specify model tags

README file from

Github

🤖 Markpilot: AI-powered inline completions and chat view for Obsidian

workflow semver

Markpilot is an Obsidian plugin that offers inline completions features and chat view in the sidebar. It aims to provide a similar experience to GitHub Copilot in Obsidian.

Currently the plugin supports models provided by OpenAI API, OpenRouter API and local models by Ollama. We are planning to support more providers in the future, such as Gemini Pro API.

There are plugins that provide similar features, such as Obsidian Companion and Obsidian Copilot Autocompletion for AI-powered auto-completions, and Obsidian Copilot for chat UI.

However, Markpilot is designed to be a GitHub Copilot-flavored alternative that provides both features in one plugin, with more sophisticated UI/UX, including:

  • Context-aware inline completions.
    • Detects the context of a Markdown content, and uses an optimised system prompt for each.
      • e.g. List, heading, code block
    • Detects the language of a Markdown code block, and enforces the model to use the same language.
      • e.g. Python, JavaScript
  • Advanced prompting techniques (Beta)
    • Context-aware system prompts.
    • Context-aware few-shot examples to guide the model to generate more accurate completions.
  • Carefully-designed user experience.
    • Force completions before waiting time by hitting Tab twice.
    • Reject completions by hitting Esc key.
    • Send a chat message by hitting Enter, add a new line by hitting Shift + Enter.
  • Usage limit feature to manage costs.
  • Fast in-memory caching to save costs.
  • Disable inline completions features by filename and tags.

Markpilot also comes with a bar chart visualization of usage similar to OpenAI API Platform, and the fact that Markpilot offers both features in one plugin makes it a more convenient choice for users who want to manage their API usage in one place.

Markpilot's chat view UI is heavily inspired by GitHub Copilot for VSCode, and the CodeMirror extension by codemirror-copilot. Also I took inspirations from Obsidian Copilot Autocompletion to implement the few-shot prompts feature.

Demo

Inline Completions

Inline Completions Demo

Chat View

Chat View Demo

Getting Started

Markpilot currently supports OpenAI API, OpenRouter API and Ollama as providers for inline completions and chat view.

Using OpenAI API

First, you need to obtain the API key from OpenAI API.

  1. Install the plugin from the Obsidian community plugins.
  2. Navigate to the plugin settings:
    1. Under Providers > OpenAI API Key, enter your OpenAI API key.
    2. Under Inline completions > Provider, select OpenAI.
    3. Under Inline completions > Model, select the model you want to use (Recommended: gpt-3.5-turbo).
    4. Repeat the same steps for the chat view settings under Chat view.
  3. You're all set! Enjoy using Markpilot.

Using OpenRouter API

First, you need to obtain the API key from OpenRouter API.

  1. Install the plugin from the Obsidian community plugins.
  2. Navigate to the plugin settings:
    1. Under Providers > OpenRouter API Key, enter your OpenRouter API key.
    2. Under Inline completions > Provider, select OpenRouter.
    3. Under Inline completions > Model, select the model you want to use (Recommended: gpt-3.5-turbo).
    4. Repeat the same steps for the chat view settings under Chat view.
  3. You're all set! Enjoy using Markpilot.

Using Ollama (MacOS, Linux, Windows - Preview)

First, download Ollama and follow the instructions to install it.

Now you need to pull the local model of your choice from Ollama (Recommended: llama2).

$ ollama pull --model llama2

This will take some time. Once the model is downloaded, you can start the Ollama server:

$ ollama serve

If you are on MacOS, the server should start automatically when you login. If you are on Linux, you may need to configure the startup service manually: Ollama on Linux

Now you can install Markpilot and set it up to use Ollama:

  1. Install the plugin from the Obsidian community plugins.
  2. Navigate to the plugin settings:
    1. Under Providers, click Test Ollama Connection and see if the Ollama server is running correctly.
    2. Under Inline completions > Provider, select Ollama.
    3. Under Inline completions > Model, select the model you want to use (Recommended: llama2).
      • Make sure to only select the same model you pulled from Ollama.
    4. Repeat the same steps for the chat view settings under Chat view.
  3. You're all set! Enjoy using Markpilot.

Caveats

If you use the OpenAI API or OpenRouter API, this plugin will send your content to the OpenAI API to generate completions.

You should be cautious about sending sensitive information to the API, and be aware of the costs associated with using the API. The plugin provides a usage limit feature to help you manage your costs, but it is your responsibility to monitor your usage and costs.

Features

  • Providers
    • Support for OpenAI API, OpenRouter API and local models available on Ollama.
    • Providers and models are customisable independently for inline completions and chat view.
  • Inline completions
    • Context-aware system prompts.
    • Context-aware few-shot examples to guide the model to generate more accurate completions.
  • Chat view
    • Open chat view from the sidebar.
    • Clear chat history from the command palette.
    • Stop chat response by clicking the stop button.
  • Caching
    • In-memory cache to save costs (will be cleared when Obsidian restarts).
  • Filtering
    • Disable inline completions features by filename (glob) and tags (regex).
  • Usage
    • Set a monthly usage limit to automatically disable features when the limit is reached.
    • Monitor costs in a graph from the settings tab.

Frequently Asked Questions

I can't accept completions by hitting Tab.

Currently some extensions like Obsidian Outliner use the Tab key for their own purposes, which will conflict with Markpilot's completions.

Although I could not find documentation on this, it seems like the keybindings are loaded in the order of when the plugins got enabled, so you can try disabling the conflicting plugin and enabling it again to prioritise Markpilot's keybindings.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Smart Connections
3 years ago by Brian Petro
Chat with your notes & see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
Smart Composer
2 years ago by Heesu Suh
AI chat assistant for Obsidian with contextual awareness, smart writing assistance, and one-click edits. Features vault-aware conversations, semantic search, and local model support.
ChatGPT MD
3 years ago by Bram Adams
A (nearly) seamless integration of ChatGPT into Obsidian.
MCP Tools
a year ago by Jack Steam
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
Completr
4 years ago by tth05
Auto-completion plugin for the obsidian editor.
Smart Second Brain
2 years ago by Leo310, nicobrauchtgit
An Obsidian plugin to interact with your privacy focused AI-Assistant making your second brain even smarter!
Khoj
3 years ago by Debanjum Singh Solanky
Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.
Gemini Scribe
a year ago by Allen Hutchison
An obsidian plugin to interact with Google Gemini
AI Providers
a year ago by Pavel Frankov
This plugin is a hub for setting AI providers (OpenAI-like, Ollama and more) in one place.
BMO Chatbot
3 years ago by Longy2k
Generate and brainstorm ideas while creating your notes using Large Language Models (LLMs) from Ollama, LM Studio, Anthropic, Google Gemini, Mistral AI, OpenAI, and more for Obsidian.
Tars
2 years ago by Tarslab
Obsidian tars plugin that supports text generation based on tag suggestions, using services like DeepSeek, Claude, OpenAI, OpenRouter, SiliconFlow, Gemini, Ollama, Kimi, Doubao, Qwen, Zhipu, QianFan & more.
Github Copilot
2 years ago by Vasseur Pierre-Adrien
A bridge between Obsidian and Github Copilot
Note Companion AI
8 months ago by Benjamin Ashgan Shafii
Note Companion: AI assistant for Obsidian that goes beyond just a chat. (prev File Organizer 2000)
HiNote
a year ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
YOLO
4 months ago by Lapis0x0
Smart, snappy, and multilingual AI assistant for your vault.
AI image analyzer
2 years ago by Swaggeroo
Analyze images with AI to get keywords of the image.
AI Assistant
3 years ago by Quentin Grail
AI Assistant Plugin for Obsidian
Smart ChatGPT
a year ago by 🌴 Brian
InfraNodus AI Graph View
2 years ago by Nodus Labs
Advanced graph view for Obsidian: text analysis, topic modeling, and AI with InfraNodus AI text analysis tool: https://infranodus.com
Smart Context
a year ago by 🌴 Brian
Personal Assistant
3 years ago by edony
A plugin that harnesses AI agents and streamlining techniques to help you automatically manage Obsidian.
Quiz Generator
2 years ago by Edward Cui
Generate interactive flashcards from your notes using models from OpenAI (ChatGPT), Google (Gemini), Ollama (local LLMs), and more. Or manually create your own to use with the quiz UI.
Gemini Assistant
2 years ago by eatgrass
Your AI assistant in obsidian
Mesh AI
2 years ago by Chasebank87
AI Tagger
2 years ago by Luca Grippa
Simplify tagging in Obsidian. Instantly analyze and tag your document with one click for efficient note organization.
Smart Templates
2 years ago by 🌴 Brian Petro
Smart Templates is an AI powered templates for generating structured content in Obsidian. Works with Local Models, Anthropic Claude, Gemini, OpenAI and more.
AI for Templater
2 years ago by TfTHacker
Extends Templater with AI Chat commands using the OpenAI Client Library
Chat with Bard
3 years ago by Artel250
An obsidian plugin that enables you to talk to Google Gemnini directly
Ollama Chat
2 years ago by Brumik
A plugin for chatting with you obsidian notes trough local Ollama LLM instead of Chat GTP.
AI Tagger Universe
a year ago by Hu Nie
An intelligent Obsidian plugin that leverages AI to automatically analyze note content and suggest relevant tags, supporting both local and cloud-based LLM services.
AI Research Assistant
3 years ago by Interweb Alchemy
Prompt Engineering Research Tool for AI APIs
Vault Chat
3 years ago by Exo Ascension
A ChatGPT bot trained on your vault notes. Ask your AI questions about your own thoughts and ideas!
Caret
2 years ago by Jake Colling
Caret, an Obsidian Plugin
Arcana
3 years ago by A-F-V
Supercharge your Obsidian note-taking through AI-powered insights and suggestions
Chat Stream
3 years ago by Ryan P Smith
Obsidian canvas plugin for using AI completion with threads of canvas nodes
AI LLM
2 years ago by Sparky4567
Lets to use local llms in your Obsidian Vaults, extend your stories or create entirely new texts based on your previous input
WordWise
2 years ago by ckt1031
Writing companion for AI content generation.
Local LLM Helper
2 years ago by Mani Mohan
An Obsidian plugin to process text, chat with AI, and semantically search your notes — works with any OpenAI-compatible LLM server (Ollama, LM Studio, vLLM, and more).
Canvas Conversation
3 years ago by André Baltazar
A plugin for Obsidian that allows you to create a canvas conversation using ChatGPT.
YouTube Video Summarizer
a year ago by mbramani
Generate AI-powered summaries of YouTube videos directly in Obsidian using Google's Gemini AI.
InlineAI
a year ago by FBarrca
GPT Assistant
3 years ago by M7mdisk
Ask GPT from your notes and get personalized answers based on your knowledge base.
AI Mentor
3 years ago by clementpoiret
AI Editor
3 years ago by Zekun Shen
ChatCBT
2 years ago by Claire Froelich
AI-powered journaling plugin for your Obsidian notes, inspired by cognitive behavioral therapy
Metadata Auto Classifier
2 years ago by Beomsu Koh
AI-powered Obsidian plugin that automatically classifies and generates metadata (tags, frontmatter) for your notes.
Flashcard Generator
3 years ago by ChloeDia
Obsidian Plug-in to automatically create a set of questions/answers on your notes !
GPT-LiteInquirer
3 years ago by ittuann
💬 Experience OpenAI ChatGPT assistance directly within Obsidian, drafting content without interrupting your creative flow.
Explain Selection With AI
2 years ago by Ben Wurster
This is my first go at making an Obsidian plugin to elaborate on and describe selected bits of information and their context.
AI Notes Summary
3 years ago by R. Ian Bull (irbull)
An Obsidian plugin that uses ChatGPT to generate a summary of referenced notes
Silicon AI
3 years ago by deepfates
Add some intelligence to your notes with Silicon AI for Obsidian
brAIn
3 years ago by lusob
ChatGPT Definition
3 years ago by julix14
Canvas LLM Extender
3 years ago by Pasi Saarinen
Let the OpenAI LLM add nodes to your Obsidian canvas
LLM Test Generator
a year ago by Aldo E George
Cloud Atlas
2 years ago by Cloud Atlas
Cloud Atlas Obsidian Client
Notemd
a year ago by Jacob
A Easy way to create your own Knowledge-base! Notemd enhances your Obsidian workflow by integrating with various Large Language Models (LLMs) to process your notes, automatically generate wiki-links for key concepts, create corresponding concept notes, perform web research, and more.
NeuroVox
a year ago by Synaptic Labs
Obsidian plugin for transcription and generation
Strapi Exporter AI
2 years ago by Cinquin Andy
[prod] - 🚀 Strapi Exporter: Supercharge Your Obsidian-to-Strapi Workflow, export an obsidian notes directly to your Strapi API
Intelligence
2 years ago by John Mavrick
Reason
2 years ago by Joshua Pham
Digest your Obsidian notes
Proofreader
a year ago by pseudometa (aka Chris Grieser)
AI-based proofreading and stylistic improvements for your writing. Changes are inserted as suggestions directly in the editor, similar to suggested changes in word processing apps.
AI Summarize
2 years ago by Alp Sariyer
Easy to use AI Summary tool for your notes in Obsidian
AI bot
a year ago by kuzzh
The AI Bot Plugin is a powerful tool designed to enhance your note-editing experience in Obsidian by leveraging the capabilities of AI. This plugin allows you to interact with an AI assistant directly within Obsidian, making it easier to generate, edit, and organize your notes with intelligent suggestions and automated tasks.
AI Zhipu
2 years ago by Tarslab
AI-zhipu is an Obsidian plugin that helps you utilize the Zhipu API. 智谱AI obsidian 插件
Images to Notes
a year ago by Rodolfo Terriquez
Turn photos of your handwritten notes into markdown
LLM workspace
a year ago by Olivér Falvai
Vision Recall
a year ago by Travis Van Nimwegen
Transform screenshots into searchable Obsidian notes using AI vision and text analysis
AI Chat
2 years ago by arenasys
Select & Complete
2 years ago by Mario De Luca
A really simple and easy to use AI completion for Obsidian
Code Language Completer
2 years ago by Stanley Wang
minimal Obisdian plugin, fine-tuned to speed up developer note-taking
Nova
3 months ago by Shawn Duggan
Nova - AI plugin for Obsidian that edits your documents directly through natural conversation. Stop copying from chat, start collaborating with AI.
Reverse Prompter
2 years ago by Ryan Halliday
Let AI generate prompts to keep you writing
CoCo AskAI
2 years ago by Yukee
CoCo-AskAI is an Obsidian plugin that enables AI-powered note assistance, enhancing the writing experience with customizable functions.
AI integration Hub
a year ago by Hishmat Salehi
A modular AI integration hub for Obsidian
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
AI Transcriber
4 months ago by Musashino Software
AI-powered speech-to-text transcription using OpenAI GPT-4o and Whisper APIs
AI Note Tagger
a year ago by Jasper Mayone
Auto tagging obsidian notes w/ AI
Open Interpreter
2 years ago by Mike Bird
The power of Open Interpreter in your Obsidian vault
WhatsApp backup importer
a year ago by Luigi Cerone
Obsidian plugin that allows you to import exported WhatsApp chat archives (in .zip format) into your vault.
LLM docs
a year ago by Shane Lamb
Chat with LLM in regular markdown files in Obsidian
Hydrate
5 months ago by hydrateagent
AI Revisionist
a year ago by Synaptic Labs
Ayanite
2 years ago by jemstelos
Memos AI Sync
a year ago by leoleelxh
obsidian-memos-sync-plugin,将 Memos 内容同步到 Obsidian 的插件,提供无缝集成体验。
Research Quest
a year ago by Nathan Arthur
Chat clips
a year ago by sleepingraven
Record chat in ordinary markdown list.
Student Repo
a year ago by Feirong.zfr
学生知识库助手(Student Repository Helper)是一个面向学生或学生家长的Obsidian 插件,这款插件旨在解决学生在学习阶段面临的资料管理难题,将学习过程中产生的各类重要资料,如试卷、笔记、关键文档、绘画手工作品等,进行系统性的数字化整合与管理,并利用 AI 助手定期进行学习分析总结。随着时间的推移,它将助力你逐步搭建起一座专属你自己的知识宝库,这座宝库将伴随你一生,成为你知识成长与积累的见证。
AI Helper
a year ago by David Connolly
Blog AI Generator
a year ago by Gareth Ng
Obsidian Plugin: generate blog via AI based on the current note.