Inside grammai: Open-Source Browser Writing Assistant with Offline Grammar and Local CLI Integration
An overview of grammai, a GNU GPLv3 open-source Chrome extension delivering offline grammar checks for English, German, and Romanian alongside local Claude Code
The open-source browser extension grammai offers an alternative writing assistant architecture, running spelling and grammar validation locally inside the browser while routing optional AI rewrites through the user's existing local CLI tooling.

Image source: zilvestro (GitHub repository zilvestro/grammai)
Created by developer Silvestro (@zilvestro) and originally released in October 2026, grammai supports Chrome, Helium, and other Chromium-based browsers under the GNU GPLv3 license (GPL-3.0-only). Unlike proprietary cloud grammar services, it operates without accounts, telemetry, or mandatory subscriptions.
Offline Grammar Checks and In-Browser Privacy
At the foundation of grammai is a fully bundled, on-device checking pipeline that requires neither an active network connection nor external cloud dependencies.
The extension ships with built-in dictionaries and rule engines for English, German, and Romanian. Users do not need to install Java, Homebrew, or LanguageTool, nor do they need to configure API keys.
- Zero Tracking: Regular grammar and spell checks remain strictly within the browser runtime. The extension contains no analytics, telemetry scripts, or automatic crash upload endpoints.
- Local State Storage: User dictionaries, custom saved prompts, and per-domain pause preferences reside exclusively in the browser's local extension storage.
- Contextual Verification: Beyond standard word lists, local rules identify confusing word pairs—such as German 'war' versus 'wahr'. The German and Romanian engines initialize locally within a few seconds during the first run.
Routing AI Actions Through Local Claude Code and Codex CLIs
Rather than maintaining a proprietary AI backend, grammai links directly to the user's authenticated Claude Code or Codex command-line interface.
Enabling rewrites and translation requires a one-time native helper installation, which currently supports macOS.
- AI Capabilities: grammai handles contextual text rewrites, executes saved custom prompts, performs extended passage checks, and manages bidirectional translation between English and German or Romanian.
- Local Data Flow: Triggering an AI action dispatches the highlighted text (or the active text field) through the native helper directly to the user's local CLI session. Provider usage policies and quota caps apply directly to the user's own account.
- Keyboard-First Controls: On Windows and Linux, users can open the assistant (
Ctrl+Shift+Y), launch rewrites (Ctrl+Shift+K), and translate selections (Ctrl+Shift+L). Correction navigation and acceptance map toAlt+Enter(accept),Alt+Backspace(dismiss), andAlt+Z(undo). macOS maps these actions to standard Command key combinations.
Installation Pathways and Beta Boundaries
grammai is distributed through both the Chrome Web Store and direct source builds.
Standard installations run via the Chrome Web Store (extension ID coafchipjppaininmkchbiodpcdkkakc), enabling offline checks immediately after install. For development builds, the repository requires Node.js 22 or newer:
npm ci
npm run build
Loading the output dist folder via Developer Mode in chrome://extensions installs the unpacked build into Chromium-based browsers.
Current editor support targets textareas, standard text inputs, default contenteditable containers, and tested Draft.js implementations such as X web inputs. However, dedicated adapters for the Google Docs rendering canvas, Shadow DOM boundaries, Slate, and ProseMirror are still under active development. Automatic language detection may also face ambiguity on short or mixed-language snippets.
Sources
- zilvestro/grammai Official GitHub Repository: https://github.com/zilvestro/grammai
- Chrome Web Store grammai Listing: https://chromewebstore.google.com/detail/grammai/coafchipjppaininmkchbiodpcdkkakc