让 AI 帮你写
Git Commit Message

git diff 自动生成清晰、规范的 commit message, 让你专注于写代码,不再为写 commit 头疼。

⭐ 免费开源 💎 升级 Pro
# 在 git 仓库中运行
$ ai-commit

# AI 自动分析 diff 并生成
feat(auth): add OAuth2 login support

# 交互模式(确认后再提交)
$ ai-commit --interactive

# 只查看不提交
$ ai-commit --dry-run

为什么用 AI Commit Message?

零配置,即装即用

一行命令安装,自动读取 git diff,无需修改工作流。支持 DeepSeek、OpenAI、Ollama 多种 Provider。

📝

规范 Commit 格式

自动生成 Conventional Commits 格式,团队协作更规范。支持自定义 prompt 和 commit 类型。

🔒

本地模型支持

支持 Ollama 本地模型,代码永远不出你的电脑。适合对数据安全有要求的团队。

简单透明的定价

开源免费版够用,Pro 版让团队协作更高效

🆓

免费版

$0

开源,随便用

  • 生成 commit message
  • 多 Provider 支持
  • 本地模型(Ollama)
  • 自定义 prompt
  • Conventional Commits
  • 交互模式
GitHub 免费下载
推荐
💎

Pro 版

$29

/月,按年付 $19/月

  • 免费版所有功能
  • Claude / Gemini 支持
  • 团队规范检查
  • 自动生成 PR 描述
  • 自动生成 Changelog
  • Git 数据洞察
升级 Pro

💳 支持 Stripe 信用卡 / PayPal,14 天无理由退款

一分钟上手

安装 → 配置 → 使用,三步搞定

1 安装
npm install -g ai-commit-message
2 配置 API Key
ai-commit config set DEEPSEEK_API_KEY your-key
3 在 git 仓库中运行
ai-commit

功能对比

同类产品中,功能最全、价格最低

功能 AI Commit Message opencommit aicommits
开源 ✅ MIT ✅ MIT ✅ MIT
多 Provider 支持 ✅ 5 个 ⚠️ 仅 OpenAI
本地模型 (Ollama)
交互模式
团队规范检查 ✅ Pro
PR 描述生成 ✅ Pro
Changelog 生成 ✅ Pro

现在开始,让 AI 帮你写 Commit

免费开源,一分钟安装。每天节省 10 分钟,一年就是 60 小时。