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

Ghost Complete

James HicksJames Hicks19 downloads

Finish your thought with AI suggestions right at the cursor. Press Tab to take the whole line or Right Arrow to keep just the next word.

Add to Obsidian
Ghost Complete screenshot
Ghost Complete screenshot
  • Overview
  • Scorecard
  • Updates4

Ghost Complete is a desktop Obsidian community plugin that shows inline AI ghost text while you write Markdown, in the same spirit as GitHub Copilot in VS Code.

It is not affiliated with or endorsed by Dynalist Inc. Obsidian is a trademark of Dynalist Inc.

Features

  • By default, type three characters before suggestions start. Moving the cursor, accepting a suggestion, or leaving the editor starts a new count. Set Minimum typed characters to 0 for automatic suggestions while navigating a note.
  • After a short pause (400ms by default), a grey suggestion appears at the cursor in the Markdown editor.
  • Tab inserts the suggested continuation of the current line. Additional lines from the provider are discarded. Right Arrow inserts the next word. Escape dismisses it.
  • Tab and Right Arrow keep their normal editor behavior when no suggestion is showing.
  • Typing or moving the cursor dismisses the current suggestion and, after another pause, requests a new one.
  • Providers: OpenRouter (default) and Groq. Each provider has its own base URL and its own API key. Link distinct secrets. The plugin blocks a shared secret ID and recognizable keys assigned to the wrong provider.
  • The provider dropdown fills in that provider's suggested model. The model stays a text field, so you can change the id.
  • Sends a limited window of text before the cursor and a smaller window after it. The prompt asks for the continuation only.
  • Continuing to type discards stale replies. A request already sent can finish and incur charges. At most two network requests can be outstanding. Rate-limited endpoints pause for Retry-After, or 30 seconds if unspecified.
  • A command, Toggle autocomplete, and a status-bar indicator turn autocomplete on and off. Click the status item to toggle it.

Install for manual testing

This repository does not commit main.js. Build it, or download the three files from a GitHub Actions artifact (or from a release once a version tag has been published).

npm install
npm run build

npm run build writes main.js in the plugin root and typechecks the project.

Copy these files into your vault:

  • main.js
  • manifest.json
  • styles.css

Destination:

<vault>/.obsidian/plugins/ghost-complete/

Reload Obsidian (or restart it). The plugin needs Obsidian 1.13.2 or newer. Open Settings → Community plugins, turn off Restricted mode if it is on, and enable Ghost Complete.

Set up a provider

Open Settings → Ghost Complete.

Autocomplete is on by default. Until the selected provider has a key, the status bar reads Ghost: no key and no request is sent.

OpenRouter

  1. Create a key at openrouter.ai/keys.
  2. Choose OpenRouter. The plugin calls https://openrouter.ai/api/v1/chat/completions and fills the model with google/gemini-2.5-flash-lite (a current low-latency, low-cost model; thinking is off by default).
  3. Choose OpenRouter API key and link a secret from Obsidian's secret storage. Paste the key into that secret, not into plugin data. Only the secret id is saved in data.json. Test connection reports whether a key was found, the HTTP status, and the provider's error without showing the key.

Groq

  1. Create a key at console.groq.com/keys.
  2. Choose Groq. The plugin calls https://api.groq.com/openai/v1/chat/completions and fills the model with openai/gpt-oss-20b (Groq's current fast, inexpensive production chat model). llama-3.1-8b-instant is no longer the developer-tier default.
  3. Link a different secret for Groq API key. That secret is separate from the OpenRouter one and is sent only to Groq.

You can edit the model id after choosing a provider. Changing the provider again replaces the model with that provider's suggested default.

Then open a note in Source mode or Live Preview and type. After the debounce, grey ghost text appears at the cursor.

Key When a suggestion is showing Otherwise
Tab Insert the whole suggestion Normal editor behavior
Right Arrow Insert the next word Move the cursor
Escape Dismiss the suggestion Normal editor behavior

The status bar shows Ghost on, Ghost… while a request is in flight, Ghost off, Ghost: no key, or Ghost: error.

What is sent to the provider

Ghost Complete needs a network connection because the suggestion is generated by the provider you select. It sends:

  • the model id, a short instruction, and a window of note text around the cursor (default 2000 characters before and 400 after)
  • the API key for the selected provider, in the Authorization header

OpenRouter can forward note text to an underlying model host. Retention depends on your provider and account settings. Add private folders under Excluded folders, one vault-relative path per line, to exclude their subfolders and notes. The plugin has no telemetry. Plugin data stores only the secret id. The plugin reads the selected secret into memory to authenticate requests. Ordinary autocomplete errors show local status messages. Recent suggestions and their surrounding text are cached in memory and cleared when settings change or autocomplete is disabled. If no secret resolves, no request is sent.

Debounce, max tokens, and the two context sizes are in the settings tab.

Development

Use Node.js 22.13 or later in the 22.x line, or Node.js 24 LTS, for development.

npm install
npm test
npm run build

npm test covers suggestion post-processing, word-by-word accept, the in-memory cache, debounce, and cancellation of stale requests. npm run dev rebuilds main.js while you edit.

Releasing

Bump version in manifest.json and add the same version to versions.json (minimum Obsidian version). You can use npm version patch after updating minAppVersion; version-bump.mjs updates both files.

Tag the commit with that version and no leading v:

git tag -a 0.1.0 -m "0.1.0"
git push origin 0.1.0

The GitHub Actions workflow builds the plugin on pulls and on main. On a version tag that matches manifest.json, it creates a draft GitHub release with main.js, manifest.json, and styles.css attached. Routine builds use a read-only repository token. A separate job attaches and attests the validated tag build with release permissions. Publish the draft after you add release notes.

The release tag must match manifest.json exactly. Obsidian's community list uses that tag, without a v prefix.

License

MIT © James Hicks

HealthExcellent
ReviewSatisfactory
About
Ever pause halfway through a sentence because you know what you mean, but the next few words won’t come? Ghost Complete suggests a continuation in gray, right where you’re writing. It uses the text around your cursor to follow your train of thought and match the rhythm of your note. Press Tab when the whole suggestion fits. Press Right Arrow when you like the first word but have your own ending in mind. Or just keep typing and the suggestion disappears. By default, Ghost Complete waits until you’ve typed three characters, so you can open a note and read without triggering a request. Adjust that threshold, choose how much surrounding text your AI provider receives, and exclude any folders you want to keep private. Requires Obsidian Desktop 1.13.2 or newer and your own OpenRouter or Groq API key.
AutocompleteAIWriting
Details
Current version
0.2.0
Last updated
3 days ago
Created
4 days ago
Updates
4 releases
Downloads
19
Compatible with
Obsidian 1.13.2+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
James HicksJames Hicksjames-hicks
GitHubcarradine-io
  1. Community
  2. Plugins
  3. Autocomplete
  4. Ghost Complete

Related plugins

ChatGPT MD

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

Text Generator

Generate text content using GPT-3 (OpenAI).

Bible Reference

Take Bible study notes easily. Automatically suggests Bible verses as references.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Claudian

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

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.

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.

Karpathy LLM Wiki

Karpathy's LLM Wiki implementation plugin for Obsidian - turns notes and PDFs into a linked, LLM-powered knowledge base with entity pages, concept pages, graph-powered Q&A, and local-first privacy.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.