nitinvishway464 downloadsType /ai <prompt> in any note, press Enter, and your local Ollama model writes inline. Thus, Inline AI
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.
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.
/aiInline 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.
Type:
/ai your prompt
and press Enter.
The command is replaced with the generated response.
/ai rewrite this paragraph to make it clearer
/ai summarize these meeting notes in five bullet points
/ai give me five project ideas related to machine learning
/ai explain what this function does
/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.
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.
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.
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
Inline AI provides several settings for controlling how the AI responds.
Define instructions that should be applied to your requests.
For example:
You are a concise technical assistant.
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.
You don't have to use /ai.
You can also use the Obsidian Command Palette:
Ask AI.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.
Make sure you are editing the note rather than viewing it in Reading mode.
Make sure Ollama is running:
ollama serve
The default Ollama address is:
http://localhost:11434
Download the model first:
ollama pull llama3.2
Check that the API key is correct, active, and does not contain accidental spaces.
/ai trigger is currently fixed in the pluginMIT