Sandbox
@wakatime/claude-code-wakatime

Claude Code plugin for WakaTime usage tracking

This plugin connects Claude Code to WakaTime so your coding activity, generated lines, and prompting time are recorded automatically. It works through Claude Code’s plugin system and sends data to your WakaTime account.

92 stars16 forksTypeScriptUpdated 2mo ago
Who it's for

Builders who use Claude Code and want their agent activity tracked in WakaTime.

What it delivers

You can see how much time you spend in Claude Code and what it generates without tracking it by hand.

What it does

Tracks Claude Code activity

Records AI usage, generated lines of code, and time spent prompting.

Uses WakaTime reporting

Sends activity into your WakaTime dashboard for viewing and history.

Installs as a Claude plugin

Adds through Claude’s plugin marketplace and plugin install flow.

How to get it

  1. 1Run
    claude plugin marketplace add https://github.com/wakatime/claude-code-wakatime.git
  2. 2Run
    claude plugin i claude-code-wakatime@wakatime
  3. 3Add your API key to ~/.wakatime.cfg
    [settings]
    api_key = waka_123

README

WakaTime for Claude Code

Track your AI usage, lines of code generated, time spent prompting AI, etc. using the WakaTime plugin for Claude Code.

WakaTime is an open source plugin for metrics, insights, and time tracking automatically generated from your programming activity.

Installation

  1. claude plugin marketplace add https://github.com/wakatime/claude-code-wakatime.git

  2. claude plugin i claude-code-wakatime@wakatime

  3. Add your API key to ~/.wakatime.cfg:

    [settings]
    api_key = waka_123
    

Upgrading

claude plugin marketplace update

Usage

New: See the lines of code generated by AI on your dashboard!

Visit https://wakatime.com to see your coding activity.

Project Overview

Development

npm run watch

Troubleshooting

Diagnostic tool for troubleshooting the installation and health of Claude Code and plugins:

claude doctor

Make sure you have node.js installed and in your $PATH:

node -v

Run claude with verbose logging to see any plugin load errors:

claude --debug

Look for errors in the wakatime-cli log file:

grep error ~/.wakatime/wakatime.log | grep -v backoff

Files in the repo

Repository payload12 top-level entries
  • .claude-plugin
  • dist
  • hooks
  • scripts
  • src
  • .gitignore
  • LICENSE
  • package-lock.json
  • package.json
  • prettier.config.cjs
  • README.md
  • tsconfig.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

cbrock84/
headcount

An agent organization for Claude Code, structured as a company — 15+ departments, 125+ skills, each independently installable.

1.4k

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

22k

Persistent file-based planning for AI coding agents and long-running tasks. Crash-proof markdown plans, session recovery after /clear and compaction, per-turn re-injection against context rot, deterministic completion gate. Manus-style. Install from npm, the Claude Code plugin marketplace, or npx skills. Codex, Cursor, OpenCode, 60+ agents.

27k
kharmanskyi/
open-steps

Skills that translate your coding agent's output into plain language: honest reports, straight verdicts, steps you can follow. MIT.

351