@aicommit/cli
v0.1.0
Published
CLI prompt tracker for AICommit — track your AI-assisted development
Maintainers
Readme
@aicommit/cli
Track your AI-assisted development. Verified prompt history linked to git commits.
Install
npm install -g @aicommit/cliQuick Start
# 1. Create account at aicommit.app (or your self-hosted instance)
# 2. Go to Dashboard → CLI Tokens → Generate
# 3. Copy the token and run:
aicommit login # Paste your CLI token when prompted
aicommit init # Initialize tracking in your repo
aicommit prompt "your prompt" --model=copilot --tokens=1200
git commit -m "feat: my feature" # Auto-matches prompts to commits
aicommit push # Sync to aicommit.appAuthentication
The CLI uses token-based auth. No passwords are stored locally.
- Log in to the web dashboard
- Go to Dashboard → CLI Tokens → Generate
- Copy the token (you won't see it again)
- Run
aicommit loginand paste it, or useaicommit login --token <token>for CI
Tokens have configurable expiry (30/60/90/180/365 days) and can be revoked from the dashboard at any time.
Commands
| Command | Description |
|---|---|
| aicommit login | OAuth login (GitHub / GitLab / Bitbucket) |
| aicommit init | Initialize tracking + install git hooks |
| aicommit status | Show tracking status |
| aicommit prompt | Log a prompt manually |
| aicommit log | View prompt history (filterable) |
| aicommit show <sha> | Show prompts matched to a commit |
| aicommit tag <id> <tag> | Tag a prompt |
| aicommit note <id> <text> | Add a note to a prompt |
| aicommit push | Push prompts to platform |
| aicommit push --dry-run | Preview what will be pushed |
| aicommit push --review | Interactively approve each prompt |
| aicommit privacy | Scan for secrets and sensitive data |
| aicommit redact <id> | Redact sensitive content |
| aicommit set-visibility <id> <public\|private> | Change prompt visibility |
| aicommit sync | Re-match prompts to commits |
| aicommit branches | List branches with prompt/commit data |
How It Works
- Local proxy on
localhost:7331captures AI API calls transparently - Prompts stored locally in
.aicommit/history.db(SQLite) - Git post-commit hooks auto-link prompts to commits
aicommit pushsyncs encrypted data to the web platform- Nothing leaves your machine until you explicitly push
Privacy
- All data local-first in SQLite
- AES-256 encryption at rest
- Auto-redaction scans for API keys, passwords, PII
- Granular visibility: public / private / redacted per prompt
Supported AI Tools
OpenAI, Anthropic, Google Gemini, Ollama, LM Studio, GitHub Copilot, Cursor, Windsurf, Aider, Continue.dev
License
MIT
