Ghostwriter shows a suggestion in grey at your cursor while you type, in any app. A language model on your Mac writes it, so your writing stays on your Mac.
Press Tab. That's the interface. Tab takes the next word, and the key above Tab takes all of it.
- Suggestions everywhere. Mail, Messages, Notes, Slack, browsers, code editors: any text field that macOS can read. Also in the middle of a line, and in the prompt of a coding agent running in Terminal or Orca.
- Fluent in yours, right to left too. The default model writes English, Arabic, French, German, Spanish, Japanese, Chinese and more.
- It sounds like you, app by app. Ghostwriter stores what you write on this Mac and uses it to match your words and tone. You can add instructions about yourself, and different instructions for each app.
- Reads the context. It can use the text near your cursor, such as the message you reply to, and text you copied recently. Switch from a product page to Notes, and it knows the page you just left.
- Longer drafts. The next sentence or paragraph, on demand.
- Actions for selected text. Rephrase, fix grammar, shorten, change the tone, translate or find synonyms, with Apple Intelligence on this Mac.
- Proofread with one shortcut. Fixes spelling, grammar and punctuation in the selection, or in the paragraph before the cursor, and keeps your wording. Press the shortcut again to undo.
- Snippets. Short triggers for long text: type
;addrto insert your address. Placeholders:{date},{time},{clipboard},{cursor}and{ai: instruction}. - Your rules for each app. Run in every app or only in the apps you choose. Turn suggestions off, stop recording, change the insertion method or add instructions for one app.
- Typo fixes. A misspelled word is struck through with the fix next to it: Tab applies it, Esc keeps your word. Names and words you write often are left alone. Optionally, obvious typos are fixed as you type, and Delete right after undoes the fix.
- Emoji. Type
:smileto pick an emoji. - Coming from Cotypist? Import your recorded writing, instructions and per-app settings during setup or from Settings > Personalization. macOS asks you to allow access to Cotypist's data once.
Your words never leave this Mac.
- Ghostwriter has no cloud service, no account, no analytics and no telemetry.
- It connects to the internet for two things only: model downloads from Hugging Face and update checks.
- It never reads or records text from secure fields, payment card and one-time code fields, password managers or apps you exclude. It never records what you type in a terminal.
- While suggestions are off everywhere, it records nothing, unloads its model and reads text only for a shortcut you press.
- Recorded writing, snippets and statistics are in one database file on your Mac, encrypted with AES-256 (SQLCipher). The key is a random one in your login keychain, made on first launch. Settings > Privacy & Data shows the file, and you can erase it there.
- Screenshots for text recognition (optional) stay in memory and are discarded at once.
- Text from the window you just left is read once as you switch away, and only fields you start typing in within 10 minutes use it. It stays in memory, and is never read from password managers, terminals, or apps and sites you exclude.
Requires macOS 26 or later on a Mac with Apple silicon.
Homebrew
brew install --cask mshll/tap/ghostwriterManual
Download Ghostwriter.dmg from the latest release, open it and drag Ghostwriter to Applications.
Ghostwriter updates itself. Settings > Updates controls the checks.
A full-screen setup walks you through these steps:
- Accessibility (required): lets Ghostwriter read the field you type in and type the words you take.
- A model. Ghostwriter recommends one for your Mac's memory and chip, then downloads it in the background and checks its checksum. Base models already on your Mac are listed under Found on this Mac; Use links one in without copying it.
- Make it yours (optional): your name, a few lines about how you write, learning from your writing, and fixing obvious typos as you type.
- Context (optional): text from the window you type in, screenshots for apps that hide their text (Screen Recording), and text you copied (Paste from Other Apps).
- Try it in a practice field, then choose whether Ghostwriter opens at login.
Press Esc to skip the setup. Settings > General > Replay Onboarding shows it again.
Turn off macOS's own inline predictions so they do not compete: System Settings > Keyboard > Text Input > Edit > "Show inline predictive text".
| Key | Action |
|---|---|
| Tab | Accept the next word |
| Key above Tab (` on a US keyboard) | Accept the whole suggestion |
| ⌥ Tab | Type a real Tab while a suggestion shows |
| Esc | Hide the suggestion and pause briefly (Settings > Suggestions can change this) |
| ⌥ ` | Write a longer draft |
| ⌃ ` | Suggest now |
| ⌥ ⇧ ` | Actions for selected text |
| ⌥ ⌘ ` | Proofread the selection or the current paragraph (press again to undo) |
| ⌃ ⌥ ` | Turn suggestions off or on |
| ⌃ ⌥ ⌘ ` | Pause in the current app for 15 minutes |
Tab and the key above Tab act only while a suggestion shows. At other times they type as usual. You can change every key in Settings > Shortcuts.
Ghostwriter runs a base (pretrained) model through llama.cpp.
| Model | Download | Best for |
|---|---|---|
| Gemma 4 E2B | 3.6 GB | Most Macs (16 GB of memory). The default. |
| Gemma 4 E4B | 5.8 GB | The most accurate. Fast Macs with 24 GB or more. |
| Gemma 3 4B | 2.5 GB | Smaller download, a little slower. |
| Gemma 3 1B | 0.8 GB | Macs with 8 GB of memory. |
If the same file is already on your Mac from the Hugging Face cache, llama.cpp, LM Studio or Ollama, Ghostwriter links to it instead of downloading it again.
To use your own model, put a base .gguf file in ~/Library/Application Support/com.mshl.ghostwriter/Models/ and click Refresh in Settings > Model. Base models you already have in the Hugging Face cache, llama.cpp, LM Studio or Ollama are listed under Found on this Mac in setup and in Settings > Model; Use links one in without copying it. Each model has its own license; Gemma models are provided under the Gemma Terms of Use.
docs/MODELS.md explains why base models, and how these were selected and measured.
Suggestions do not appear in an app.
Some apps, often web or Electron apps, do not give their text to Accessibility. Open Settings > Apps, add the app and turn on "Improve compatibility". If the app still hides its text, allow Screen Recording so Ghostwriter can read text from a screenshot of the window. In a field where suggestions do not start automatically, press Suggest now (⌃ `).
Accepted text arrives garbled.
Some apps handle typed text in an unusual way. In Settings > Apps, set "Insert text by" to pasting for that app.
Does it use Apple Intelligence?
Only for the actions on selected text, the proofread shortcut and the {ai: …} snippet placeholder. Autocomplete and typo fixes use Ghostwriter's own model, because it is faster and more accurate for these tasks. If Apple Intelligence is off or unavailable, those actions are hidden and the proofread shortcut is turned off.
How much battery does it use?
On battery, in Low Power Mode or when the Mac is hot, Ghostwriter does less work while you type through a suggestion. Settings > Model can also give shorter suggestions or switch to a smaller model on battery.
Why only Apple silicon and macOS 26?
The model runs on the GPU through Metal and needs Apple silicon to be fast enough. macOS 26 provides the Foundation Models framework and the system APIs that the app uses.
Quit Ghostwriter from the menu bar and move it to the Trash. To remove its data too (models, recorded writing, snippets and statistics):
rm -rf ~/Library/Application\ Support/com.mshl.ghostwriter
defaults delete com.mshl.ghostwriter
security delete-generic-password -s com.mshl.ghostwriter -a databaseWith Homebrew: brew uninstall --zap --cask ghostwriter.
You need Xcode 27 and XcodeGen (brew install xcodegen).
git clone https://github.com/mshll/ghostwriter.git
cd ghostwriter
xcodegen generate
xcodebuild -project Ghostwriter.xcodeproj -scheme Ghostwriter -configuration Debug \
CODE_SIGN_IDENTITY=- DEVELOPMENT_TEAM= buildCONTRIBUTING.md explains signing, the project layout, tests and the evaluation tools.
Bug reports, ideas and pull requests are welcome. Read CONTRIBUTING.md before you open a pull request. Report security issues privately, as SECURITY.md describes.
- llama.cpp runs the models.
- GRDB stores your writing, snippets and statistics.
- SQLCipher encrypts the database. Copyright (c) 2025, ZETETIC LLC, under the SQLCipher Community Edition license.
- KeyboardShortcuts records the global shortcuts.
- Sparkle installs updates.
- Model files come from Google's Gemma family, quantized by mradermacher.
Ghostwriter is free software under the GNU General Public License v3.0.
