James Hicks19 downloadsFinish 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.
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.
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.jsmanifest.jsonstyles.cssDestination:
<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.
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.
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).data.json. Test connection reports whether a key was found, the HTTP status, and the provider's error without showing the key.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.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.
Ghost Complete needs a network connection because the suggestion is generated by the provider you select. It sends:
Authorization headerOpenRouter 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.
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.
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.
MIT © James Hicks