{"id":26208310,"url":"https://github.com/samunatsu/ai-commit","last_synced_at":"2026-02-17T00:30:56.035Z","repository":{"id":281691622,"uuid":"946101532","full_name":"SamuNatsu/ai-commit","owner":"SamuNatsu","description":"A Command Line Utility for AI Generating Git Commit Message","archived":false,"fork":false,"pushed_at":"2025-03-13T09:41:33.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T11:06:39.582Z","etag":null,"topics":["ai","cli","commit-message","git","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/SamuNatsu.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-03-10T15:59:35.000Z","updated_at":"2025-03-13T09:41:30.000Z","dependencies_parsed_at":"2025-04-15T11:55:22.582Z","dependency_job_id":"1cc490e5-0fac-48a4-abd3-9a7ec441d22a","html_url":"https://github.com/SamuNatsu/ai-commit","commit_stats":null,"previous_names":["samunatsu/ai-commit"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/SamuNatsu/ai-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuNatsu%2Fai-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuNatsu%2Fai-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuNatsu%2Fai-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuNatsu%2Fai-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuNatsu","download_url":"https://codeload.github.com/SamuNatsu/ai-commit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuNatsu%2Fai-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29526626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T21:45:09.491Z","status":"ssl_error","status_checked_at":"2026-02-16T21:44:58.452Z","response_time":115,"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","cli","commit-message","git","rust"],"created_at":"2025-03-12T06:28:25.940Z","updated_at":"2026-02-17T00:30:56.006Z","avatar_url":"https://github.com/SamuNatsu.png","language":"Rust","funding_links":["https://www.buymeacoffee.com/snrainiar","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"# AI Commit\n\nA Command Line Utility for AI Generating Git Commit Message\n\n## Install\n\n### Use Cargo Install\n\n```sh\ncargo install --git https://github.com/SamuNatsu/ai-commit\n```\n\n### Use CLI (Linux/MacOS only)\n\n```sh\ncurl -s https://installer.samunatsu.workers.dev/SamuNatsu/ai-commit | bash\n```\n\n## Environment Variables\n\nSome environment variables must be provided, dotenv files also can be used to provide such variables.\n\n|         Name         | Introduction                                      | Required |              Example              |                    Default                     |\n| :------------------: | :------------------------------------------------ | :------: | :-------------------------------: | :--------------------------------------------: |\n| `AI_COMMIT_ENDPOINT` | OpenAI API style endpoint url                     |   Yes    |    `https://api.deepseek.com/`    |                       -                        |\n| `AI_COMMIT_API_KEY`  | OpenAI API style API key                          |   Yes    |       `sk-xxxxxxxxxxxxxxx`        |                       -                        |\n|  `AI_COMMIT_MODEL`   | OpenAI API style model name                       |   Yes    |        `deepseek-reasoner`        |                       -                        |\n|  `AI_COMMIT_FILTER`  | A RegExp file name filter for ignoring their diff |    No    | `package-lock\\.json\\| yarn\\.lock` | See [here](./src/includes/default_filters.txt) |\n\n## Usage\n\n### TL; DR\n\n```txt\nA Command Line Utility for AI Generating Git Commit Message\n\nUsage: ai-commit [OPTIONS]\n\nOptions:\n  -v, --verbose                      Show verbose message\n  -d, --dotenv \u003cDOTENV\u003e              Dotenv profile name\n  -t, --commit-type \u003cCOMMIT_TYPE\u003e    Force using the given commit type\n  -s, --commit-scope \u003cCOMMIT_SCOPE\u003e  Force using the given commit scope\n  -p, --prompt \u003cPROMPT\u003e              Additional prompt message\n  -h, --help                         Print help\n  -V, --version                      Print version\n```\n\n## Dotenv profiles\n\nYou can use different dotenv file by passing the `-d|--dotenv` option.  \nCommand below will use `.env.openai` as profile:\n\n```sh\nai-commit -d openai\n```\n\n## Additional message\n\nYou can add a custom prompt message for AI model, makes it better understands your demands.\n\n```sh\nai-commit -p \"This commit is for optimization\"\n```\n\n## Sponsor\n\n\u003ca href=\"https://www.buymeacoffee.com/snrainiar\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=snrainiar\u0026button_colour=FF5F5F\u0026font_colour=ffffff\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamunatsu%2Fai-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamunatsu%2Fai-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamunatsu%2Fai-commit/lists"}