Skip to content

CodeWithBehnam/askmate

AskMate hero banner showing AI note Q&A, summaries, workflows, safe Apply, and image generation inside Obsidian

AskMate

AI Q&A, summaries, rewrites, workflows, safe note edits, and image generation inside Obsidian.

Latest release Release workflow status License Obsidian 1.11.4 or newer GitHub stars Open issues

AI notes Q&A Summaries Rewrites Workflows Safe Apply Image generation

Table of Contents

About The Project

AskMate is a desktop-only Obsidian plugin that adds a right-sidebar AI assistant for the note you are reading or editing.

Use it to ask questions, summarize, rewrite, translate, run reusable workflows, generate images, and safely write AI output back into your vault.

Built With

Obsidian TypeScript Bun esbuild OpenAI Anthropic Google Gemini OpenRouter

Use Cases

Use case How AskMate helps
Students Turn lecture notes into summaries, flashcards, study questions, and action items.
Researchers Extract claims, compare ideas, map evidence, and find gaps across note context.
Writers Rewrite rough notes, polish tone, translate drafts, and preserve structure.
Product managers Convert meetings and research notes into decisions, risks, next steps, and briefs.
Developers Explain technical notes, draft documentation, generate diagrams, and review plans.
Knowledge workers Ask targeted questions, organize scattered notes, and safely apply updates back to the vault.

Provider Comparison

Provider Text support Image support API key needed Notes
OpenAI Yes Yes, through gpt-image-2 Yes Best fit when you want GPT-5.5 text plus image generation in one provider.
Azure OpenAI Yes No Yes Use an Azure OpenAI /openai/v1 base URL and enter your Azure deployment name as the model.
OpenRouter Yes No Yes Use OpenRouter model IDs and route text requests through an OpenAI-compatible API.
Anthropic Claude Yes No Yes Good for text workflows, critique, summarization, and long-form analysis.
Google Gemini Yes No Yes Good for text workflows with Gemini models through Google's API.
Local endpoint Yes No Optional Works with OpenAI-compatible /chat/completions endpoints such as local or self-hosted models.

(back to top)

Getting Started

Requirements

  • Obsidian 1.11.4 or newer.
  • Desktop Obsidian.
  • An API key for your selected provider, unless your local endpoint does not require one.
  • OpenAI API access for image generation with gpt-image-2.

Installation

From Obsidian Community Plugins

After AskMate is available in Obsidian Community Plugins:

  1. Open Obsidian Settings.
  2. Go to Community plugins.
  3. Browse community plugins.
  4. Search for AskMate.
  5. Install and enable the plugin.

Manual Installation

  1. Download these files from the latest GitHub release:
main.js
manifest.json
styles.css
  1. Create this folder in your vault:
YourVault/.obsidian/plugins/askmate/
  1. Copy the three release files into that folder.
  2. Restart Obsidian or reload plugins.
  3. Enable AskMate from Community plugins.

Quick Setup

  1. Open AskMate settings in Obsidian.
  2. Choose a chat provider: OpenAI, Azure OpenAI, OpenRouter, Anthropic Claude, Google Gemini, or Local/self-hosted.
  3. Add or select the provider API key secret.
  4. For Azure OpenAI, set the v1 base URL, for example https://<resource>.openai.azure.com/openai/v1, and enter your Azure deployment name as the model. For local endpoints, set the OpenAI-compatible base URL.
  5. Click Test API.
  6. Click Refresh models, or enter a model ID manually.
  7. Choose your default text model.
  8. Optional: configure image prompt planning and add an OpenAI key for gpt-image-2.
  9. Optional: configure workflows, output templates, context budgets, send shortcut, usage budgets, and privacy defaults.

(back to top)

Usage

Example Prompts

Copy and paste any of these into AskMate:

Summarize this note into action items.
Rewrite this in a clearer tone.
Find gaps or contradictions.
Create a Mermaid diagram from this note.

Ask About A Note

  1. Open a Markdown note.
  2. Select text if you want to focus the question on a specific passage.
  3. Open AskMate from the ribbon or command palette.
  4. Ask a question, for example:
What are the main claims in this note?

AskMate answers in the sidebar. By default, previous sidebar messages are shown for convenience but are not sent as chat history unless threaded chat is enabled.

Create Or Apply Output

Choose an output mode before sending:

  • Chat: show the answer in the sidebar.
  • New note: create a Markdown result note.
  • Apply: write generated text back into the captured source note after safety checks.

Apply mode can preview diffs, preserve or confirm frontmatter changes, replace selected text, replace a heading section, or queue a suggested change for later review.

Generate Images

Use the Image button or start a request with /image or /img.

/image Create a clean editorial illustration that captures the core idea of this note.

AskMate can save generated PNG files, create image result notes, or insert Obsidian image embeds depending on the selected output mode.

Run Workflows

AskMate includes workflows for summaries, action plans, simple explanations, question drills, critiques, pros and cons, meeting notes, decision briefs, translation, quote extraction, rewriting, and more.

You can also create custom workflows in settings. Custom workflows can use variables such as:

{{noteTitle}}
{{sourcePath}}
{{contextSource}}
{{selectedText}}
{{currentDate}}
{{currentDateTime}}
{{customInstructions}}

(back to top)

Privacy And Network Use

Important

Privacy-first defaults:

  • No telemetry.
  • Sends data only when you run a request.
  • API keys are stored through Obsidian SecretStorage.
  • Prompt inspector is local and does not contact a provider by itself.

AskMate sends data only when you run a request. Depending on your settings and request, that data can include your prompt, selected text, the current note, workflow instructions, opted-in extra context, image prompt planning content, or generated image prompts.

Image generation is sent to OpenAI because AskMate uses gpt-image-2 for images. Text requests are sent to the provider you choose.

The prompt inspector is local. It lets you review the final prompt before sending and does not contact a provider by itself.

Provider API keys are stored through Obsidian SecretStorage. AskMate stores selected secret names, not raw keys. Generated notes, generated images, usage records, and plugin settings are stored locally in your vault or Obsidian plugin data.

Provider requests are subject to the selected provider's API terms and privacy policy.

(back to top)

FAQ

Does AskMate send my whole vault?

No. AskMate sends only the context included for the request you run. By default, that means selected text or the current or remembered Markdown note. Extra notes, folders, style guides, glossaries, image metadata, and note history are included only when you enable those context sources.

Can I use local models?

Yes. Choose the Local/self-hosted provider and set an OpenAI-compatible /chat/completions base URL. Local endpoints can be used for text chat and workflows. Image generation still uses OpenAI gpt-image-2.

Can I use Azure OpenAI?

Yes. Choose Azure OpenAI, set the v1 base URL such as https://<resource>.openai.azure.com/openai/v1, add an API key secret, and enter your Azure deployment name as the model. Azure OpenAI is text-only in Phase 1. Image generation still uses OpenAI gpt-image-2.

Does image generation require OpenAI?

Yes. AskMate image generation uses OpenAI gpt-image-2, so it requires an OpenAI API key with access to that image model. Azure OpenAI, OpenRouter, Anthropic Claude, Gemini, and local providers can be used only for text chat and image prompt planning. Azure AI Foundry support is planned for a later phase.

Can I apply changes safely?

Yes. Apply mode targets the note captured when the request was built, can preview Markdown diffs before writing, asks for confirmation before full-note replacement, supports frontmatter controls, and can queue suggested changes for review instead of applying them immediately.

(back to top)

Roadmap

AskMate's current roadmap and status surfaces focus on making note work safer, clearer, and easier to review:

  • Evidence-linked answers for source-grounded replies and jump-to-source actions.
  • Markdown diff Apply preview for safer note edits before writing changes.
  • Frontmatter controls for preserving, confirming, or replacing YAML during full-note Apply.
  • Batch workflow runner support for running workflows across folders.
  • Final prompt inspector tooling for reviewing the assembled prompt before sending.
  • Note-specific AskMate history for per-note follow-up context.
  • Style guide and glossary context roles for persistent writing and terminology guidance.
  • Queue for review mode for AI-suggested changes that should be checked before applying.
  • Smart result-note placement for keeping generated notes near their source notes.
  • Usage budgets and guardrails for warning or blocking oversized or over-budget requests.
  • Broader provider support: Azure OpenAI for text chat in Phase 1, with Azure AI Foundry planned for a later phase.

(back to top)

Troubleshooting

AskMate used the wrong note

AskMate remembers the most recent Markdown note because the sidebar can take focus. If the preview points to the wrong note, click back into the intended note or select the exact text, then ask again.

Apply cannot find selected text

AskMate only applies selected-text output when it can safely find the original selected text. Select the text again and use Apply from the assistant response.

My model is not listed

Click Refresh models after adding or changing an API key. If the provider does not list the model you need, enter the model ID manually.

Image generation fails

gpt-image-2 may require OpenAI API access and organization verification. Check your OpenAI dashboard, then try again.

(back to top)

Development

Install dependencies:

bun install

Run smoke tests:

bun run test

Build:

bun run build

Watch during development:

bun run dev

Release assets are:

main.js
manifest.json
styles.css

(back to top)

Contributing And Support

  • Read CONTRIBUTING.md before opening a pull request.
  • Use the issue templates for bug reports and feature requests.
  • Report security concerns through SECURITY.md, not public issues.

Acknowledgements

AskMate is built on the work of these tools, APIs, and communities:

(back to top)

License

AskMate is released under the MIT License. See LICENSE.

(back to top)