WakaTime for Claude Code plugin

WakaTime plugin for Claude Code tracks time spent working with AI and lines the agent wrote, and shows them on the dashboard

  • 98 ★ on the repository
  • Last commit
  • BSD-3-Clause
PluginOfficial

Extended access

Why this level

  • The plugin's hooks see session activity and send metrics to the WakaTime service using an API key
All reasons and checks

wakatime/claude-code-wakatime

Install

Works in

In your terminal, with SkillFoxx CLI

npx skillfoxx add plugins/wakatime-for-claude-code

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The plugin's hooks see session activity and send metrics to the WakaTime service using an API key

This is third-party code. Review the repository files before installing.

What it does

The plugin connects Claude Code to WakaTime, a service that tracks programmer activity. Its hooks follow work inside a Claude Code session and send data to WakaTime through wakatime-cli. The dashboard at wakatime.com shows time spent talking to AI and lines of code the agent generated. Installation goes through the Claude Code plugin marketplace: add the repository first, then install the plugin. The API key from your WakaTime account goes into `~/.wakatime.cfg`. Node.js must be on `PATH`. Updating uses `claude plugin marketplace update`. For troubleshooting the README points to `claude doctor`, `claude --debug` for plugin load errors and the log at `~/.wakatime/wakatime.log`.

Who it is for. Developers and freelancers who track time in WakaTime and want hours spent in Claude Code to show up there.

Good fit when

  • You want to know how many hours a week go into prompting and reviewing Claude Code output
  • A client report should include time spent with the AI agent on each project
  • A team wants to compare the amount of code written by people and by the agent
  • Editor time is already tracked in WakaTime and Claude Code should land in the same statistics

Not a fit when

  • You need local tracking with no data sent to an external service: the plugin works through WakaTime
  • A different agent such as Codex or Cursor: the plugin is built for Claude Code
  • You need token or cost accounting: the plugin counts time and lines

Example request

Install the WakaTime plugin for Claude Code, add my API key to ~/.wakatime.cfg and check that activity shows up on the dashboard

Limitations

  • A WakaTime account and API key are required, and data is stored and shown on their servers.
  • Node.js must be installed: the README asks you to check that it is on `PATH`.
  • The plugin shows AI-written lines on the WakaTime dashboard and does not count tokens or session cost.
  • It works only in Claude Code. Diagnostics use `claude doctor` and `claude --debug`, and the log sits at `~/.wakatime/wakatime.log`.

How to disable. Disable the plugin in Claude Code with `claude plugin` or via `/plugin`, then remove the key from `~/.wakatime.cfg` if you wish.

FAQ

How do I install WakaTime in Claude Code?

Run `claude plugin marketplace add https://github.com/wakatime/claude-code-wakatime.git`, then `claude plugin i claude-code-wakatime@wakatime` and add the API key to `~/.wakatime.cfg` under `[settings]`.

Where do I see the statistics?

On wakatime.com: it shows activity by project and AI-generated lines of code. Data from Claude Code lands in the same account as editor data.

How do I update the plugin?

Run `claude plugin marketplace update`.

The plugin sends nothing, what should I check?

Run `claude doctor`, then `claude --debug` and look for plugin load errors. Next search the log with `grep error ~/.wakatime/wakatime.log | grep -v backoff` and check that `node -v` responds.

How is it different from the WakaTime plugin for OpenCode?

That one installs into OpenCode, while this one is registered in the Claude Code marketplace and relies on Claude Code hooks. Both send activity to the same WakaTime service.

Discussion

No questions or reviews yet.

Plugins

An OpenCode plugin that reports to WakaTime the time and lines an agent produced, covering edit, write and patch operations.

PluginExtended access205Repository stars

A Claude Code plugin: a status line with context, 5-hour and 7-day limits, cost and usage of Codex, Gemini and z.ai

PluginBroad access587Repository stars

A marketplace of 17 Claude Code mods: token-spend breakdown, a rollback edit timeline, assumption tracking, a verification board and a live command feed

PluginExtended access873Repository stars

A Warp plugin for Claude Code that sends native notifications when a task ends, a permission is requested or Claude waits for you

PluginExtended access238Repository stars

A Claude Code status line showing 5-hour and 7-day quota use plus the pace: whether what is left lasts until the window resets

PluginExtended access243Repository stars

A marketplace of 70 small Claude Code plugins with panes: notes, a task board, a context meter, utilities and a Git change viewer

PluginMinimal access120Repository stars

README in short

The README is very short: a statement that the plugin tracks AI usage and lines of code, three install steps, the update command, a link to the WakaTime dashboard and a troubleshooting section with `claude doctor`, `claude --debug` and a look at the wakatime-cli log.

README badge

Report a problem