Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Inline AI

nitinvishwaynitinvishway464 downloads

Type /ai <prompt> in any note, press Enter, and your local Ollama model writes inline. Thus, Inline AI

Add to Obsidian
Inline AI screenshot
Inline AI screenshot
Inline AI screenshot
  • Overview
  • Scorecard
  • Updates6

Inline AI brings AI assistance directly into your Obsidian notes.

Type /ai followed by a prompt, press Enter, and get the response directly in your note. You can use it to rewrite text, summarize notes, explain code, brainstorm ideas, answer questions, and more without switching between Obsidian and another AI application.

Why Inline AI?

Working with AI usually means leaving your notes, copying content into another application, waiting for a response, and then copying the result back.

Inline AI removes that workflow.

Your note

/ai summarize the section above in three bullet points

↓ Enter

• First key point
• Second key point
• Third key point

The generated response is inserted directly into your note.

Features

  • Inline AI generation using /ai
  • Streaming responses
  • Multiple AI providers
  • Local AI through Ollama
  • Optional web search
  • Configurable system prompts
  • Adjustable temperature
  • Command Palette support
  • Works directly inside the Obsidian editor

Supported AI Providers

Inline AI supports both local and cloud-based AI.

Provider Runs Cost Best for
Ollama Locally Free Privacy and offline use
OpenAI Cloud Paid General-purpose AI
Anthropic Claude Cloud Paid Long-form reasoning and writing
Google Gemini Cloud Free tier available Fast general-purpose queries

You can switch between providers from the plugin settings.

How to Use

Type:

/ai your prompt

and press Enter.

The command is replaced with the generated response.

Writing

/ai rewrite this paragraph to make it clearer

Summarizing

/ai summarize these meeting notes in five bullet points

Brainstorming

/ai give me five project ideas related to machine learning

Coding

/ai explain what this function does

Research

/ai summarize this section and identify the key findings

You can use the same workflow for virtually any task where you would normally copy text into an AI chat.

Local AI with Ollama

If you want to keep your AI processing on your own machine, Inline AI supports Ollama.

With Ollama, your prompts can be processed locally instead of being sent to a cloud AI provider.

Install Ollama, download a model, and configure Inline AI to use your local Ollama server.

ollama pull llama3.2
ollama serve

Then configure:

Provider: Ollama
URL: http://localhost:11434
Model: llama3.2

No API key is required for the local Ollama connection.

Cloud AI

You can also connect Inline AI to cloud providers such as OpenAI, Anthropic, and Google Gemini.

Select the provider in:

Settings → Inline AI

Then enter the required API key and choose the model you want to use.

Your prompts are sent to the selected provider when using a cloud-based model.

Web Search

Inline AI can optionally search the web before generating a response.

For example:

/ai what are the latest developments in AI?

With web search enabled, the plugin retrieves current search results and provides them to the AI as context.

Web search can be enabled from:

Settings → Inline AI → Web Search

Customization

Inline AI provides several settings for controlling how the AI responds.

System Prompt

Define instructions that should be applied to your requests.

For example:

You are a concise technical assistant.

Temperature

Control how deterministic or creative responses should be.

0.0  Precise
0.5  Balanced
1.0  Creative

Lower values are useful for code and factual tasks. Higher values can be useful for brainstorming and creative writing.

Command Palette

You don't have to use /ai.

You can also use the Obsidian Command Palette:

  1. Open the Command Palette.
  2. Search for Ask AI.
  3. Select the command.
  4. Enter your prompt.

Privacy

Privacy depends on the provider you choose.

With Ollama, processing can remain entirely on your local machine.

With OpenAI, Anthropic, or Google Gemini, your prompts are sent to the respective provider's API. Check the provider's current privacy policy before sending sensitive information.

Troubleshooting

Nothing happens

Make sure you are editing the note rather than viewing it in Reading mode.

Ollama connection failed

Make sure Ollama is running:

ollama serve

The default Ollama address is:

http://localhost:11434

Model not found

Download the model first:

ollama pull llama3.2

API key rejected

Check that the API key is correct, active, and does not contain accidental spaces.

Current Limitations

  • Desktop only
  • AI generation cannot currently be cancelled once started
  • Only one provider is active at a time
  • The /ai trigger is currently fixed in the plugin

License

MIT

HealthExcellent
ReviewPassed
About
Inline AI responses directly into notes by typing /ai plus your prompt and pressing Enter. Generate text, brainstorm ideas, summarize, refactor, or expand content inline using OpenAI, Claude, Gemini, or local Ollama as the provider.
AIWritingCommands
Details
Current version
1.0.6
Last updated
2 months ago
Created
5 months ago
Updates
6 releases
Downloads
464
Compatible with
Obsidian 1.4.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
nitinvishwaynitinvishwaynitinvishway
nitinvishway.tech/
GitHubnitinvishway
nitinvishway
  1. Community
  2. Plugins
  3. AI
  4. Inline AI

Related plugins

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Text Generator

Generate text content using GPT-3 (OpenAI).

Smart Composer

AI chat with note context, smart writing assistance, and one-click edits for your vault.

Local GPT

Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.