Grammar AI is a lightweight desktop application built with Python for grammar correction and text polishing. Tired of premium grammar tools like Grammarly and LanguageTool? Enjoy FREE FOREVER grammar correction with the free tier of Groq API key. It provides a simple local UI for entering text, sending it to an AI service, and reviewing polished output.
- Launch the application. It runs in the system tray and starts automatically with Windows.
- Configure your API settings in Settings (see Configuration section).
- Enter or paste the text you want to polish.
- Press
Ctrl+Shift+Spaceto capture selected text from any window, or use the Trigger button in the app. - Click the Use button next to the polished version you want to apply.
- Provide fast grammar correction and writing-style polishing
- Offer multiple tone variations for output
- Keep the UI simple and easy to use
- Store history for future reference
- Python 3.12
- tkinter for UI
openai-compatible AI integrationpystrayandPillowfor system traylogurufor loggingpydanticfor schema validationruffandmypyfor linting
Grammar AI supports any LLM provider that is OpenAI-compatible, including OpenAI, Anthropic, Google, and more.
Example Configuration (Groq Free Tier)
- Base URL:
https://api.groq.com/openai/v1/ - Model:
meta-llama/llama-4-scout-17b-16e-instruct - API Key:
YOUR_GROQ_API_KEY
- Base URL:
https://api.openai.com/v1 - Model:
gpt-4o-mini - API Key:
YOUR_OPENAI_API_KEY
To configure:
- Launch the application.
- Open Settings and enter your API configuration.
All releases: github.com/vectorleap-pulse/grammar-ai/releases
- Clone the repository.
- Install dependencies:
uv sync - Run:
uv run python main.py
To build a standalone executable:
- Install dependencies including build tools:
uv sync --extra dev - Run the build script:
- Release build:
python build.pyorbuild.bat - Debug build (with console):
python build.py --debugorbuild.bat debug
- Release build:
- The executable will be created in the
build/grammar-ai/folder.
- Local SQLite database and log files are stored in
~/.grammar-ai/. - History entries include original text, polished text, tone, and timestamp.
- API keys are stored locally in the app database.
main.py— application entry pointapp/— core application modulespyproject.toml— project metadata, dependencies, and linting configurationbuild.py— PyInstaller build script
If you found this helpful, please ⭐ star this repository and 👤 follow me!
