MCPcopy Index your code
hub / github.com/FBarrca/obsidian-inlineAI

github.com/FBarrca/obsidian-inlineAI @1.2.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.7 ↗ · + Follow
127 symbols 239 edges 17 files 21 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

InlineAI Plugin

Documentation · Report Bug · Discussions

demo


💡 A Seamless AI Writing Experience in Obsidian

InlineAI enhances your workflow by integrating AI-powered suggestions, contextual edits, and advanced text transformations directly into your editor. Write faster, edit smarter, and unlock new creative possibilities—all within the Obsidian editor.


🌟 Features

1. Context-Aware AI Assistance

  • Transform text, summarize, or rewrite content using prompts tailored to your needs.
  • Define your own system and transformation prompts as commands for highly customized workflows.

2. Inline Diff Visualization

  • Visualize AI-suggested changes with clear inline markers for added and removed text.
  • Accept or discard suggestions with a single click.

3. Full AI Integration

  • Supports OpenAI, Ollama,Gemini and other APIs.
  • Local model support for privacy-first workflows.

⚙️ Installation

1. From Obsidian Plugin Store

  1. Open Obsidian Settings.
  2. Navigate to Community PluginsBrowse.
  3. Search for "InlineAI" and click Install.
  4. Enable the plugin in the Installed Plugins list.

2. Manual Installation

  1. Download the latest release from the GitHub Releases.
  2. Copy main.js, styles.css, and manifest.json into your vault's .obsidian/plugins/obsidian-inlineai/ directory.
  3. Enable the plugin via the Community Plugins tab.

🚀 Getting Started

Initial Setup

  1. Set up your API key:

    • Open the plugin settings in Obsidian.
    • Enter your API key for OpenAI, Ollama, Gemini or any supported model provider.
  2. Choose a model:

    • Supported models include gpt-4, llama3.2, and others.
  3. Configure prompts:

    • Define system and transformation prompts in settings for customized interactions.

How to Use

  • Trigger AI Tooltips: Highlight text or place the cursor, then press Ctrl + K / Cmd + K to activate the tooltip(you can change the hotkey).
  • Apply Edits: Use the inline diff view to accept or discard AI-suggested changes.

🙏 Feedback and Support

We value your feedback and aim to make InlineAI the ultimate AI writing assistant:


🛠️ Development

Want to contribute? Here’s how:

  1. Clone the repository:

    ```bash

    git clone https://github.com/FBarrca/obsidian-inlineai.git

    ```

  2. Install dependencies:

    ```bash

    npm install

    ```

  3. Build the plugin:

    ```bash

    npm run build

    ```


📝 License

This project is licensed under the GPL-3.0 license. Feel free to fork, contribute, and enhance the plugin!

Extension points exported contracts — how you extend this code

SecretStorageApi (Interface)
Minimal SecretStorage surface (Obsidian 1.11.4+).
src/credentials.ts
CodexTokens (Interface)
(no doc)
src/codex-auth.ts
InlineAISettings (Interface)
(no doc)
src/settings.ts
ResponsesInput (Interface)
(no doc)
src/codex-client.ts
SelectionInfo (Interface)
(no doc)
src/modules/SelectionState.ts
LegacySecretFields (Interface)
(no doc)
src/credentials.ts
ResponsesBody (Interface)
(no doc)
src/codex-client.ts
AIResponse (Interface)
(no doc)
src/modules/AIExtension.ts

Core symbols most depended-on inside this repo

saveSettings
called by 15
src/settings.ts
isSecretStorageAvailable
called by 5
src/credentials.ts
getSecretStorage
called by 5
src/credentials.ts
getApiKey
called by 5
src/credentials.ts
done
called by 4
src/codex-auth.ts
dismissTooltip
called by 4
src/modules/WidgetExtension.ts
setSecret
called by 3
src/credentials.ts
setApiKey
called by 3
src/credentials.ts

Shape

Method 55
Function 45
Class 18
Interface 9

Languages

TypeScript100%

Modules by API surface

src/modules/WidgetExtension.ts22 symbols
src/codex-auth.ts16 symbols
src/modules/diffExtension.ts15 symbols
src/credentials.ts14 symbols
src/api.ts12 symbols
src/modules/messageHistory/queue.ts9 symbols
src/modules/commands/source.ts9 symbols
src/settings.ts6 symbols
src/main.ts6 symbols
src/codex-device-auth-modal.ts6 symbols
src/codex-client.ts5 symbols
src/modules/SelectionState.ts3 symbols

For agents

$ claude mcp add obsidian-inlineAI \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact