{"id":28510794,"url":"https://github.com/puneetkakkar/gpt-commit","last_synced_at":"2026-04-13T16:34:17.743Z","repository":{"id":297699225,"uuid":"997600607","full_name":"puneetkakkar/gpt-commit","owner":"puneetkakkar","description":"A developer-friendly CLI tool that generates smart Git commit messages from your code changes using GPT models (OpenAI) or local LLMs like CodeLlama via Ollama.","archived":false,"fork":false,"pushed_at":"2025-06-06T23:18:00.000Z","size":263,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T05:36:50.816Z","etag":null,"topics":["ai-tools","automation","cli","commit-messages","developer-tools","git","gpt","llm","ollama","openai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puneetkakkar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-06T20:05:43.000Z","updated_at":"2025-06-06T23:18:03.000Z","dependencies_parsed_at":"2025-06-06T23:19:45.366Z","dependency_job_id":"ae567b16-0173-40d5-b3a1-3ae116de3323","html_url":"https://github.com/puneetkakkar/gpt-commit","commit_stats":null,"previous_names":["puneetkakkar/gpt-commit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/puneetkakkar/gpt-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneetkakkar%2Fgpt-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneetkakkar%2Fgpt-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneetkakkar%2Fgpt-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneetkakkar%2Fgpt-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puneetkakkar","download_url":"https://codeload.github.com/puneetkakkar/gpt-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneetkakkar%2Fgpt-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","automation","cli","commit-messages","developer-tools","git","gpt","llm","ollama","openai"],"created_at":"2025-06-08T23:06:13.177Z","updated_at":"2026-04-13T16:34:17.736Z","avatar_url":"https://github.com/puneetkakkar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.png\" alt=\"gpt-commit logo\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003egpt-commit\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e🚀 Automatically generate Git commit messages using GPT (OpenAI) or local models via Ollama.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/gpt-commit/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/gpt-commit\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/pyversions/gpt-commit\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/puneetkakkar/gpt-commit\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/puneetkakkar/gpt-commit?style=social\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\n\u003c/p\u003e\n\n## ✨ Features\n- Uses `git diff --cached` to summarize staged changes\n- Works with OpenAI GPT models (gpt-3.5-turbo, gpt-4)\n- Supports local LLMs via [Ollama](https://ollama.com/)\n- CLI tool: simple, fast, dev-friendly\n\n## 📦 Installation\n\n### From PyPI\n```bash\npip install gpt-commit\n```\n\n### From Source\n```bash\ngit clone https://github.com/yourusername/gpt-commit.git\ncd gpt-commit\npip install -e .\n```\n\n## 🔧 Setup\n\n### OpenAI Backend\n1. Get your API key from [OpenAI](https://platform.openai.com/api-keys)\n2. Set the environment variable:\n   ```bash\n   export OPENAI_API_KEY='your-api-key'\n   ```\n   Or create a `.env` file in your project root:\n   ```\n   OPENAI_API_KEY=your-api-key\n   ```\n\n### Ollama Backend\n1. Install [Ollama](https://ollama.com/)\n2. Pull a model (e.g., CodeLlama):\n   ```bash\n   ollama pull codellama\n   ```\n\n## 🚀 Usage\n\n1. Stage your changes:\n   ```bash\n   git add .\n   ```\n\n2. Generate a commit message:\n   ```bash\n   # Using OpenAI (default)\n   gpt-commit --backend openai --model gpt-4\n\n   # Using Ollama\n   gpt-commit --backend ollama --model codellama\n\n   # Auto-commit with the generated message\n   gpt-commit --commit\n   ```\n\n## 🔍 Options\n- `--backend`: Choose between 'openai' or 'ollama' (default: 'ollama')\n- `--model`: Specify the model name (default: 'gpt-4' for OpenAI, 'codellama' for Ollama)\n- `--commit`: Automatically commit with the generated message\n\n## 🤝 Contributing\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📝 License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuneetkakkar%2Fgpt-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuneetkakkar%2Fgpt-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuneetkakkar%2Fgpt-commit/lists"}