You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Interactive config to pick provider/model/language and set keys
11
12
- Simple output suitable for piping into TUI menus (one message per line)
12
13
13
14
## Installation
@@ -30,8 +31,8 @@ go build -o lazycommit main.go
30
31
- Subcommands:
31
32
-`lazycommit commit` — prints 10 suggested commit messages to stdout, one per line, based on `git diff --cached`.
32
33
-`lazycommit pr <target-branch>` — prints 10 suggested pull request titles to stdout, one per line, based on diff between current branch and `<target-branch>`.
33
-
-`lazycommit config get` — prints the active providerand model.
34
-
-`lazycommit config set` — interactive setup for provider, API key, and model.
34
+
-`lazycommit config get` — prints the active provider, model and language.
35
+
-`lazycommit config set` — interactive setup for provider, API key, model, and language.
35
36
36
37
Exit behaviors:
37
38
- If no staged changes: prints "No staged changes to commit." and exits 0.
@@ -75,6 +76,7 @@ Contains API keys, tokens, and provider-specific settings. **Do not share this f
75
76
76
77
```yaml
77
78
active_provider: copilot # default if a GitHub token is found
79
+
language: en # commit message language: "en" (English) or "es" (Spanish)
78
80
providers:
79
81
copilot:
80
82
api_key: "$GITHUB_TOKEN"# Uses GitHub token; token is exchanged internally
@@ -84,13 +86,28 @@ providers:
84
86
api_key: "$OPENAI_API_KEY"
85
87
model: "gpt-4o"
86
88
# endpoint_url: "https://api.openai.com/v1" # Optional - uses default if not specified
89
+
anthropic:
90
+
model: "claude-haiku-4-5"# Uses Claude Code CLI - no API key needed
91
+
num_suggestions: 10# Number of commit suggestions to generate
87
92
# Custom provider example (e.g., local Ollama):
88
93
# local:
89
94
# api_key: "not-needed"
90
95
# model: "llama3.1:8b"
91
96
# endpoint_url: "http://localhost:11434/v1"
92
97
```
93
98
99
+
#### Anthropic Provider (Claude Code CLI)
100
+
101
+
The Anthropic provider integrates with your local [Claude Code CLI](https://github.com/anthropics/claude-code) installation:
102
+
103
+
-**No API key required**: Uses your existing Claude Code authentication
104
+
-**Fast and cost-effective**: Leverages Claude Haiku model
105
+
-**Configurable**: Set custom number of suggestions per provider
0 commit comments