Track your AI coding hours, patterns, and achievements.
🌐 English • Español • Português • 中文
StatsCode tracks how you use AI coding assistants. Think of it as GitHub stats for AI-assisted coding.
- Track hours spent coding with AI
- View insights about your coding patterns
- Sync to cloud and appear on the leaderboard
- Add a badge to your GitHub profile
| Tool | Status |
|---|---|
| Claude Code | Available |
| OpenCode | Available |
| Codex | Pronto |
| Antigravity | Pronto |
| Cursor | Pronto |
# Install via marketplace
claude plugins install statscode
# Or manually
cd ~/.claude/plugins
git clone https://github.com/srdanirz/statscode| Command | Description |
|---|---|
/statscode:stats |
View your coding statistics |
/statscode:insights |
View session patterns |
/statscode:login |
Login with GitHub |
/statscode:badge |
View your earned badges |
Add to your opencode.json (docs):
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@statscode/plugin-opencode"]
}The plugin installs automatically via Bun on startup.
| Tool | Description |
|---|---|
statscode.stats |
View your coding statistics |
statscode.badge |
Generate badge SVG |
statscode.sync |
Force sync to cloud |
- Active Hours - Time spent coding (activity-based)
- Sessions - Number of sessions
- Prompts - Total prompts sent
- Lines Generated - Code written/edited
- Languages - Programming languages used
After logging in with /statscode:login:
[](https://statscode.dev/profile/YOUR_USERNAME)| Package | Description |
|---|---|
@statscode/core |
Core tracking library |
@statscode/api-client |
Cloud sync SDK |
@statscode/plugin-claude-code |
Claude Code plugin |
@statscode/plugin-opencode |
OpenCode plugin |
- All data stored locally by default (
~/.statscode/) - Cloud sync is opt-in only
- No code or prompts uploaded
- Only aggregated stats synced
git clone https://github.com/srdanirz/statscode
cd statscode
npm install
npm run buildMIT