Features How it Works Providers Compare Docs GitHub Get Started
v2.1 — Open Source & Free Forever

Write with clarity.
Own your privacy.

OpenGrammar is the free, open-source Grammarly alternative. 40+ grammar rules run offline. Plug in your AI API key for advanced edits — no subscriptions, no data harvesting.

compose — Gmail
Most popular grammar assistants require you to send every keystroke to their servers and charge a hefty monthly fee Cliché DetectedConsider "are expensive" instead. for advanced features. OpenGrammar changes that. The core engine runs locally in your browser, checking for passive voice and repetition without needing a server.
● 1 Grammar ● 1 Clarity ● 1 Style

Everything you need.
Nothing you don't.

Built for developers, writers, and privacy advocates who want complete control over their writing tools.

Absolute Privacy

No databases, no accounts, no tracking. The local engine runs fully offline. AI requests use a stateless edge function — text is never stored.

Bring Your Own AI

Paste your API key for OpenAI, Groq, OpenRouter, Together, or Ollama. Pay fractions of a cent — directly to the provider.

Self-Hostable Backend

Deploy to Cloudflare Workers, Vercel Edge, Railway, Render, or Docker. One command. You own the infrastructure.

40+ Grammar Rules

Offline checking for passive voice, repetition, spelling, punctuation, clichés, redundant phrases, double negatives, and more.

Tone Rewriting

Rewrite text in 8 tones — Formal, Casual, Professional, Friendly, Concise, Detailed, Persuasive, and Neutral. Right-click or Ctrl+Shift+R.

Writing Statistics

Readability scores (Flesch, ARI), reading/speaking time, vocabulary diversity, and detailed analytics for every document.

Dual-engine.
Maximum power.

Two engines work in parallel — fast local rules plus context-aware AI — then merge and rank results into a single clean list.

1

Local Rules Engine

40+ regex rules run instantly in your browser. Passive voice, spelling, punctuation, clichés — all offline, all free.

2

AI Processing

For complex grammar and context-aware suggestions, text is sent to your chosen LLM via a stateless edge function.

3

Smart UI

Red, amber, and blue wavy underlines appear as you type. Click to apply, ignore, or add to your dictionary.

Writing Statistics

Words
1,248
Reading Time
4 min
Readability ScoreExcellent (78)
Vocabulary Diversity43%

Choose your engine.

6 supported providers. From free to premium. From cloud to fully local.

Groq

Free Tier

Fastest inference with LPU technology. 100 free requests/day.

  • ~200ms response
  • Llama 3.1 70B
  • No credit card

OpenAI

Best Quality

GPT-4o-mini for highest accuracy. ~$0.15/1K requests.

  • 95% accuracy
  • Context-aware
  • Most reliable

Ollama

100% Local

Run models on your own hardware. Complete privacy, works offline.

  • Zero data leaves
  • Free forever
  • No internet needed

View all 6 providers — OpenRouter, Together AI, Custom →

How we stack up.

FeatureGrammarlyOpenGrammarLanguageTool
Price$12/moFree$4.99/mo
Open Source Apache 2.0Partial
Self-Hostable Docker / CF Workers
Offline Mode 40+ rulesPartial
BYOK (Own AI Key) 6 providers
Local LLM (Ollama)
Tone Rewriting (Premium) 8 tones
Data Stored on Server Yes Stateless Yes

Ready in 5 minutes.

Clone, build, load. That's it.

# 1. Clone the repository
git clone https://github.com/swadhinbiswas/opengrammar.git

# 2. Build the extension
cd opengrammar/opengrammar/extension
bun install && bun run build

# 3. Load in chrome://extensions → Load Unpacked → dist/

# 4. (Optional) Start local backend
cd ../backend && bun run dev
#  Running at http://localhost:8787