Settings
Customize LazyPR behavior and preferences
Configuration Options
LazyPR stores all settings in ~/.lazypr. You can modify settings using the config command:
lazypr config set SETTING_NAME=valueAvailable Settings
PROVIDER
The AI provider to use for generating PR content.
- Values:
groqorcerebras - Default:
groq
lazypr config set PROVIDER=groqLOCALE
Default language for generated PR content.
- Default:
en(English) - Supported: en, es, pt, fr, de, it, ja, ko, zh, ru, nl, pl, tr
lazypr config set LOCALE=esYou can override the locale for a single run using the -l flag.
MODEL
The AI model to use for generation.
- Default:
llama-3.3-70b - Provider-specific: Check your provider's documentation for available models
lazypr config set MODEL=llama-3.3-70bMAX_RETRIES
Number of retry attempts if a request fails.
- Default:
2 - Range: 0-5
lazypr config set MAX_RETRIES=3TIMEOUT
Request timeout in milliseconds.
- Default:
10000(10 seconds)
lazypr config set TIMEOUT=15000FILTER_COMMITS
Enable or disable automatic commit filtering.
- Default:
true - Values:
trueorfalse
When enabled, LazyPR excludes merge commits, dependency updates, and formatting-only changes.
lazypr config set FILTER_COMMITS=falseCONTEXT
Global style guidance for PR generation (max 200 characters).
- Default: None
- Example: "Use conventional commits format and keep descriptions concise"
lazypr config set CONTEXT="Focus on business impact in descriptions"Context helps AI tailor the PR style to your team's preferences.
Managing Configuration
View All Settings
lazypr config listView Specific Setting
lazypr config get LOCALEReset to Defaults
Delete the configuration file to reset all settings:
rm ~/.lazyprThen reconfigure your API key:
lazypr config set GROQ_API_KEY=your_key_hereEnvironment-Specific Configurations
You can maintain different configurations for different projects or environments by:
- Storing project-specific settings in a script
- Setting values before running LazyPR
# Example: Use Spanish for international team
lazypr config set LOCALE=es
lazypr main
# Then switch back
lazypr config set LOCALE=enOr use command-line flags for one-time overrides without changing stored config:
lazypr main -l es -c "Keep it brief"