从 git diff 自动生成清晰、规范的 commit message,
让你专注于写代码,不再为写 commit 头疼。
# 在 git 仓库中运行 $ ai-commit # AI 自动分析 diff 并生成 feat(auth): add OAuth2 login support # 交互模式(确认后再提交) $ ai-commit --interactive # 只查看不提交 $ ai-commit --dry-run
一行命令安装,自动读取 git diff,无需修改工作流。支持 DeepSeek、OpenAI、Ollama 多种 Provider。
自动生成 Conventional Commits 格式,团队协作更规范。支持自定义 prompt 和 commit 类型。
支持 Ollama 本地模型,代码永远不出你的电脑。适合对数据安全有要求的团队。
开源免费版够用,Pro 版让团队协作更高效
开源,随便用
/月,按年付 $19/月
💳 支持 Stripe 信用卡 / PayPal,14 天无理由退款
安装 → 配置 → 使用,三步搞定
npm install -g ai-commit-message
ai-commit config set DEEPSEEK_API_KEY your-key
ai-commit
同类产品中,功能最全、价格最低
| 功能 | AI Commit Message | opencommit | aicommits |
|---|---|---|---|
| 开源 | ✅ MIT | ✅ MIT | ✅ MIT |
| 多 Provider 支持 | ✅ 5 个 | ✅ | ⚠️ 仅 OpenAI |
| 本地模型 (Ollama) | ✅ | ❌ | ❌ |
| 交互模式 | ✅ | ✅ | ❌ |
| 团队规范检查 | ✅ Pro | ❌ | ❌ |
| PR 描述生成 | ✅ Pro | ❌ | ❌ |
| Changelog 生成 | ✅ Pro | ❌ | ❌ |