Generate clean, consistent PRs from commits - powered by AI and your git history.
- Multi-provider AI: Groq, Cerebras, and OpenAI-compatible APIs
- Smart commit filtering: Excludes noise commits
- PR template support: Use your existing templates
- GitHub CLI integration: Generate
gh pr createcommands - Multilingual: 12+ languages supported
- Custom context: Guide AI generation style
npm install -g lazyprRequires Node.js >= 20. See installation guide →
-
Set your API key:
lazypr config set GROQ_API_KEY=<your-key>
-
Generate a PR:
lazypr # compares against main lzp # short alias lazypr develop # compare against different branch
Complete quick start guide → | Usage examples →
lazypr config set KEY=VALUE # Set configuration
lazypr config get KEY # Get configurationCommon settings:
PROVIDER- AI provider (groq,cerebras, oropenai)LOCALE- Output language (en,es,pt,fr, etc.)MODEL- AI model to useFILTER_COMMITS- Smart commit filteringCONTEXT- Custom guidance for AI generationOPENAI_BASE_URL- Custom endpoint for OpenAI-compatible APIs
View all settings → | Configuration examples →
- Smart Commit Filtering - Automatically excludes merge commits, dependency updates, and formatting changes
- PR Templates - Use your existing
.githubtemplates - GitHub CLI Integration - Generate
gh pr createcommands - Multilingual Support - 12+ languages available
- Context Guidance - Customize AI generation style
- GitHub Actions - Automate PR generation in CI/CD
- OpenAI-Compatible APIs - Use local providers (Ollama, LM Studio) or third-party services
lazypr [target] [options]
Options:
-t, --template [name] Use a PR template
-l, --locale <language> Output language
-c, --context <text> Custom AI guidance
--gh Generate gh pr create command
--no-filter Disable smart filtering
-u, --usage Show token usage
-h, --help Display helpbun install # Install dependencies
bun test # Run tests
bun run build # Build for productionUses Bun for development, Node.js >= 20 for runtime.
Issues and PRs are welcome. Open one on the repository’s Issues page.
MIT © Raul Carini. See the LICENSE file for details.
