Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By aneymv1.0.3MIT
Track Claude Code usage: tools, hooks, skills, sessions. Sends to PostHog for team-wide analytics.
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Track Claude Code usage with PostHog. See what tools your team uses, how long sessions last, which skills get invoked, and more.
| Event | Description |
|---|---|
cc_session_start/end | Session lifecycle and duration |
cc_tool_use | Core tool usage (Edit, Read, Bash, etc.) |
cc_mcp_call | MCP tool invocations by server |
cc_skill_invoke | Skill usage and arguments |
cc_subagent | Subagent spawning and completion |
cc_hook_execute | Hook execution timing |
/plugin marketplace add aneym/claude-code-analytics
/plugin install claude-code-analytics
Then run setup:
/claude-code-analytics:setup
Restart Claude Code to activate hooks.
git clone [email protected]:aneym/claude-code-analytics.git ~/.claude/plugins/claude-code-analytics
cd ~/.claude/plugins/claude-code-analytics
bun install
cp config.template.json config.json
# Edit config.json with your PostHog API key
Edit config.json (created by setup or manually):
{
"enabled": true,
"posthog": {
"apiKey": "phc_YOUR_PROJECT_KEY",
"host": "https://us.i.posthog.com"
},
"user": {
"email": "[email protected]",
"name": "Your Name",
"team": "engineering"
},
"tracking": {
"tools": true,
"mcp": true,
"skills": true,
"hooks": true,
"prompts": false,
"subagents": true
},
"privacy": {
"hashFilePaths": true,
"sanitizeCommands": true,
"truncatePrompts": 100
}
}
By default, the plugin protects sensitive data:
| Setting | Default | Effect |
|---|---|---|
hashFilePaths | true | SHA256 hash instead of full path |
sanitizeCommands | true | First word only (git, npm, curl) |
truncatePrompts | 100 | Max chars if prompt tracking enabled |
tracking.prompts | false | Prompt content NOT tracked by default |
File contents are never captured.
| Skill | Description |
|---|---|
/claude-code-analytics:setup | Configure API key and user details |
/claude-code-analytics:dashboard | View analytics summary |
Marketplace handles auto-updates. To manually update:
/plugin marketplace update
# Clone for development
git clone [email protected]:aneym/claude-code-analytics.git
cd claude-code-analytics
bun install
# Lint & typecheck
bun run check
# Test locally (without installing)
claude --plugin-dir .
Create these insights in PostHog:
tool_nameduration_msmcp_serverdistinct_idMIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
Generated from the plugin's indexed repository (aneym/cc-analytics) — no native marketplace selected
npx claudepluginhub p/aneym-cc-analytics