Current collected state Current
Observed since 21 Oct, 11:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A CLI tool to generate commit messages using AI models
A CLI tool that generates commit messages using AI models based on your git repository changes.
# Install pipx if you haven't
brew install pipx
pipx ensurepath
# Install aimsg
pipx install aimsg
# Upgrade aimsg
pipx upgrade aimsg
pip install aimsg
aimsg init
git add .
aimsg commit
# Show version
aimsg --version
# Show all available commands
aimsg --help
# Show help for a specific command
aimsg model --help
aimsg commit --help
# Show current configuration
aimsg current
Configure aimsg in order of priority:
.env file (highest priority)AIMSG_API_KEY=your_api_key
AIMSG_API_BASE=your_api_base
AIMSG_MODEL=your_model
AIMSG_PROMPT=your_prompt
export AIMSG_API_KEY=your_api_key
export AIMSG_API_BASE=your_api_base
export AIMSG_MODEL=your_model
export AIMSG_PROMPT=your_prompt
aimsg init (lowest priority, default)aimsg init
# Creates ~/.config/aimsg/config.json with default settings:
# - model: your_model
# - api_base: your_api_base
# - api_key: your_api_key
# - prompt: default prompt template
# - custom_models: custom model list
# List available models
aimsg model list
# Add custom model
aimsg model add my-model https://api.example.com/v1
# Remove custom model
aimsg model remove my-model
# Customize commit message prompt template
aimsg prompt
# Reset to default prompt template
aimsg reset-prompt
Default prompt template:
Based on the following git diff, generate a concise and descriptive commit message that follows conventional commits format.
Focus on the "what" and "why" of the changes.
Start with a type (feat, fix, docs, style, refactor, perf, test, build, ci, chore).
Do not include scope.
Limit the first line to 72 characters.
Add a blank line followed by a more detailed description if necessary.
The default prompt template guides the AI to:
https://api.openai.com/v1https://api.anthropic.com/v1https://generativelanguage.googleapis.com/v1https://api.deepseek.com/v1https://dashscope.aliyuncs.com/api/v1https://spark-api.xf-yun.com/v3.1https://open.bigmodel.cn/api/v1https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshophttps://api.moonshot.cn/v1https://hunyuan.cloud.tencent.com/hyllm/v1https://api.doubao.com/v1https://api.replicate.com/v1https://api.together.xyz/v1MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.3 | 11 Mar 2025 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bf7c45f3c46d5258ed5edf5e55b30b67c81e576845ccc7b94acad87c7979b0f6