OGrammar is the free, open-source writing assistant that runs on your own device. A local engine checks grammar, spelling, and style with no account and no network — and you can plug in your own AI key for advanced rewrites. No subscriptions, no data harvesting, no servers.
Built for developers, writers, and privacy advocates who want complete control over their writing tools.
Checking runs on your device. There is no OGrammar backend, no account, and no tracking. Any AI key you add is encrypted on your machine and used only by you.
The Automattic Harper engine checks grammar, spelling, punctuation, and style entirely offline, as you type. Choose American, British, Canadian, or Australian English.
Optional and off by default. Add a key for OpenAI, DeepSeek, Groq, OpenRouter, or Together — or run a model 100% locally with Ollama. Your text goes straight to the provider you choose.
Confirm a correction once and the local engine remembers it — no AI round-trip needed. Undo an autocorrect and it never makes that change again.
A protected-text engine recognizes URLs, emails, file paths, code, package names, API keys, and version strings — so suggestions never mangle the things you didn't mean to edit.
With AI on, rewrite any selection — Polish, Formal, or Casual — or pull up three alternative phrasings, inline, with a preview before anything changes.
A fast on-device engine handles everyday checking. Turn on AI — with your own key — for deeper rewrites. Results merge into one ranked list.
The Harper engine flags grammar, spelling, punctuation, and style as you type — offline, instantly, with nothing leaving your browser.
A built-in 82k-word dictionary plus an n-gram language model rank corrections by what actually fits the context, not just edit distance.
Enable advanced rewrites, tone changes, or autocomplete. Text goes directly to the provider you pick — or a local Ollama model. Off by default.
Click a suggestion to apply it, ignore it, or add the word to your personal dictionary — all on your device.
Eight providers, your own key, billed by them — never by us. From a free tier to fully local.
A free tier to start, with the fastest cloud responses — pick llama-3.3-70b-versatile for the quickest replies.
A very low cost per check, and the top scorer among the few models in our own small benchmark. Pay only for what you use.
Run an open model on your own hardware. Nothing leaves your machine; works fully offline.
These picks come from our own small proofreading benchmark that tested only a handful of models — OpenAI and most other models weren't scored, so this isn't a ranking against them. Every provider is fully supported; use whichever you already have.
Set up OpenAI, OpenRouter, Together AI, Abacus RouteLLM, or any custom endpoint →
| Feature | Grammarly | OGrammar | LanguageTool |
|---|---|---|---|
| Price | From $12/mo | Free | From $4.99/mo |
| Open source | Apache 2.0 | Partial | |
| Works offline (on-device) | Harper engine | Partial | |
| Bring your own AI key | 8 providers | ||
| 100% local AI (Ollama) | |||
| Tone rewriting | Premium | ||
| Learns your corrections locally | |||
| Stores your text on a server | Yes | No | Yes |
Clone, build, load. That's it.
# 1. Clone the repository git clone https://github.com/zazzn/ogrammar.git # 2. Build the extension (npm) cd opengrammar/opengrammar/extension npm install && npm run build # 3. chrome://extensions → Developer mode → Load unpacked → select dist/ # Optional: pick a provider + key in the popup for AI. No backend needed.