Requirements
- Git
- Node.js 22.13 or newer
- An API key for one supported provider
The npm package is named lazycommitt (double t). The commands are lazycommit and lzc.
Install
npm
Homebrew
brew tap KartikLabhshetwar/lazycommit https://github.com/KartikLabhshetwar/lazycommit
brew install lazycommitSet your API key
lazycommit config set GROQ_API_KEY="gsk_your_key_here"Use the key for your provider instead, for example OPENAI_API_KEY or ANTHROPIC_API_KEY. See Providers for the full list. Groq keys must start with gsk_. Keys are saved in ~/.lazycommit, and lazycommit requests owner-only file permissions for that file.
You can also set the key in your environment. It overrides the saved key.
export GROQ_API_KEY="gsk_your_key_here"--preview-diff does not need an API key. See Configuration for all settings.
Verify
lazycommit --version
lazycommit --helpThen, inside a repository with staged changes, generate a message without committing:
lazycommit --dry-runUpgrade
Check your installed version:
lazycommit --versionIf it is not the latest version on npm, upgrade with npm:
npm update -g lazycommittOr, for a Homebrew installation:
brew update
brew upgrade lazycommitComing from 2.x: version 3 needs Node.js 22.13 or newer and supports multiple providers. Your saved GROQ_API_KEY keeps working, but a key for a provider earlier in the list (for example OPENAI_API_KEY in your shell) now wins. To stay on Groq, run lazycommit config set model=groq/openai/gpt-oss-20b.
New in 3.1: with nothing staged, lzc opens a file picker; lzc <branch> pushes after committing; lzc model picks a model from a list. Scripts are unaffected: --yes and runs without a terminal still need staged changes. See Usage.
Next steps
- Usage: review flow and workflows.
- FAQ: troubleshooting.
- Open an issue if something is broken.