{"id":24848658,"url":"https://github.com/markolofsen/openrouter-commit","last_synced_at":"2026-03-12T14:17:26.998Z","repository":{"id":274934440,"uuid":"924010735","full_name":"markolofsen/openrouter-commit","owner":"markolofsen","description":" CLI tool that helps you write clear, concise, and AI-generated commit messages using OpenRouter's LLM models.","archived":false,"fork":false,"pushed_at":"2025-02-08T07:49:46.000Z","size":41,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T19:45:49.061Z","etag":null,"topics":["ai","aicommits","chatgpt","commits","git","gpt","node","npm","openrouter","python"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/openrouter-commit","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markolofsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-29T08:53:22.000Z","updated_at":"2025-05-10T05:52:40.000Z","dependencies_parsed_at":"2025-01-30T08:37:21.763Z","dependency_job_id":null,"html_url":"https://github.com/markolofsen/openrouter-commit","commit_stats":null,"previous_names":["markolofsen/openrouter-commit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markolofsen/openrouter-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolofsen%2Fopenrouter-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolofsen%2Fopenrouter-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolofsen%2Fopenrouter-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolofsen%2Fopenrouter-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markolofsen","download_url":"https://codeload.github.com/markolofsen/openrouter-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markolofsen%2Fopenrouter-commit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545028,"owners_count":23326655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","aicommits","chatgpt","commits","git","gpt","node","npm","openrouter","python"],"created_at":"2025-01-31T12:16:40.832Z","updated_at":"2026-03-12T14:17:26.988Z","avatar_url":"https://github.com/markolofsen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ORCommit\n\n### AI-powered Git commits with security, standards, and full control\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://unpkg.com/orcommit@latest/preview.png\" alt=\"ORCommit Banner\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\u003e Generate **accurate, conventional, and secure** git commit messages using **OpenAI, Claude, OpenRouter, or local models (Ollama)**.\n\n```bash\ngit add .\norc commit\n```\n\n✔ Conventional Commits\n✔ Secret scanning (Gitleaks)\n✔ Cloud \u0026 local AI\n✔ Zero-config to start\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://badge.fury.io/js/orcommit\"\u003e\u003cimg src=\"https://badge.fury.io/js/orcommit.svg\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ellerbrock/typescript-badges/\"\u003e\u003cimg src=\"https://badges.frapsoft.com/typescript/code/typescript.svg?v=101\" alt=\"TypeScript\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## TL;DR\n\n**ORCommit** is a production-grade CLI that:\n\n* analyzes your staged git diff\n* generates a high-quality commit message via LLMs\n* enforces Conventional Commits\n* blocks secrets and dependency folders **before** commit\n* works with both **cloud and local** AI models\n\nIf you care about **clean history, security, and standards** — this tool is for you.\n\n---\n\n## ✨ Key Features\n\n### 🤖 AI Providers\n\n* OpenAI (GPT‑4, GPT‑3.5)\n* Claude via OpenRouter (200+ models)\n* Local models via **Ollama** (offline \u0026 private)\n\n### 🧠 Smart Commit Generation\n\n* Token-aware diff chunking (large repos supported)\n* Interactive regeneration with feedback\n* Custom prompts \u0026 project context\n* Conventional Commits by default\n\n### 🔐 Security by Default\n\n* Secret scanning via **Gitleaks** (100+ patterns)\n* Blocks API keys, tokens, private keys\n* Prevents committing `node_modules/`, `vendor/`, etc.\n* Secure API key storage (600 permissions)\n\n### ⚙️ Git-Native Workflow\n\n* Breaking change detection\n* Optional push after commit\n* Git hooks support\n\n### ⚡ Fast \u0026 Reliable\n\n* Memory + disk cache\n* Parallel API calls\n* Strict TypeScript + comprehensive tests\n\n---\n\n## 🚀 Quick Start\n\n```bash\nnpm install -g orcommit\norc config set openrouter YOUR_API_KEY\n\ngit add .\norc commit\n```\n\nThat’s it.\n\n---\n\n## 🛠 Common Commands\n\n```bash\norc commit                 # interactive commit\norc commit --yes           # auto-confirm\norc commit --context \"...\" # extra context\norc commit --emoji         # gitmoji\norc commit --breaking      # breaking change\norc commit --dry-run       # preview only\n```\n\n👉 [Full CLI reference](https://github.com/markolofsen/openrouter-commit/blob/main/docs/cli.md)\n\n---\n\n## 🔐 Security Highlights\n\nORCommit includes **mandatory security checks**:\n\n* 🔍 Secret scanning via **Gitleaks**\n* 🚫 Blocks API keys, tokens, private keys\n* 🚫 Prevents committing dependency folders\n\nThese checks run **before** commit creation and cannot be bypassed accidentally.\n\n👉 [Security details](https://github.com/markolofsen/openrouter-commit/blob/main/docs/security.md)\n\n---\n\n## 💡 Who Is ORCommit For?\n\n* **Teams** — enforce commit standards automatically\n* **Open Source** — keep contribution quality high\n* **Enterprise** — prevent leaks and ensure compliance\n\n---\n\n## ⚙️ Configuration\n\nConfig is stored at `~/.config/orcommit.json` (permissions `600`).\n\n```json\n{\n  \"preferences\": {\n    \"defaultProvider\": \"openrouter\",\n    \"commitFormat\": \"conventional\",\n    \"temperature\": 0.6\n  }\n}\n```\n\nEnvironment variables are also supported:\n\n```bash\nexport OPENROUTER_API_KEY=\"your-key\"\nexport OPENAI_API_KEY=\"your-key\"\n```\n\n---\n\n## 📚 Documentation\n\n* [CLI Reference](https://github.com/markolofsen/openrouter-commit/blob/main/docs/cli.md)\n* [Security Model](https://github.com/markolofsen/openrouter-commit/blob/main/docs/security.md)\n* [Architecture](https://github.com/markolofsen/openrouter-commit/blob/main/docs/architecture.md)\n* [Advanced Usage](https://github.com/markolofsen/openrouter-commit/blob/main/docs/advanced.md)\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Add tests\n4. Submit a pull request\n\n---\n\n## 🏢 About the Maintainers\n\nORCommit is built and maintained by **[Reforms.ai](https://reforms.ai)** — a team specializing in AI-powered developer tools.\n\nCommercial support, consulting, and custom AI integrations are available.\n\n---\n\n## 📄 License\n\nMIT License — see [LICENSE](LICENSE).\n\n---\n\nBuilt with ❤️ using TypeScript and modern AI tooling.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkolofsen%2Fopenrouter-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkolofsen%2Fopenrouter-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkolofsen%2Fopenrouter-commit/lists"}