Installation
tcxcommit can be installed globally via npm or used directly with npx. Choose whichever method works best for your workflow.
Prerequisites
- Node.js (v18 or higher)
- Git (installed and configured)
- An OpenRouter API key (optional - 5 free trials included)
Quick Install
Install using npm:
npm install -g tcxcommitOr use directly with npx (no installation needed):
npx tcxcommitVerify Installation
Check if tcxcommit is installed:
tcxcommit --versionConfiguration
API Key Setup
By default, tcxcommit gives you 5 free trials. After that, you'll need your own OpenRouter API key:
- Visit OpenRouter.ai
- Create an account and get your API key
- When prompted in tcxcommit, enter your API key
- The key is saved to
.envfile automatically
Environment Variables
Your .env file will be created automatically with:
OPENROUTER_API_KEY=your-api-key-here
FREE_TRIALS=5Update
To update to the latest version:
npm update -g tcxcommitUninstall
To remove tcxcommit:
npm uninstall -g tcxcommitNext Steps
Now that you have tcxcommit installed, check out the Usage guide to start generating commit messages!