---
title: "用于按项目追踪时间、token 和 API 价格的 Claude Code 模组"
url: "https://claudemods.dev/zh-cn/builds/a-claude-code-mod-to-track-time-tokens-and-api-price-per-pro-504a17"
source: "https://github.com/Abdoul-sudo/worklog"
source_type: "github"
repo: "https://github.com/Abdoul-sudo/worklog"
author: "Ok-Original-3868"
author_handle: "Ok-Original-3868"
stars: 18
category: "用量与成本"
categories: ["cost"]
tags: ["cost-tracking", "dashboard", "heatmap", "time-tracking", "token-usage"]
permission_level: 3
scan_complete: true
install: "claude plugin marketplace add Abdoul-sudo/worklog\nclaude plugin install worklog@worklog"
added: "2026-11-19T04:31:47.329Z"
updated: "2026-11-18T18:32:58Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# 用于按项目追踪时间、token 和 API 价格的 Claude Code 模组

Worklog 是一个免费、开源的 Claude Code 模组，可自动追踪每个项目所花的时间、token 用量和预估 API 费用，并提供年度热力图和多种主题。

## Description

这篇 Reddit 帖子介绍了 Worklog，一个用于按项目追踪的 Claude Code 模组。它会在 Claude 工作期间统计活跃时间，包括回答、子代理和后台命令；统计 token 并估算其 API 费用；并显示带有八种可选主题的全年热力图。该项目免费且开源，帖子中包含 GitHub 仓库链接和演示 GIF。

## Install

```
claude plugin marketplace add Abdoul-sudo/worklog
claude plugin install worklog@worklog
```

## Original README

I use Claude on many projects, sometimes for hours without a break. I wanted to see how much time each project takes, how many tokens it uses and what it would cost on the API. So I built Worklog to track it all automatically.

[https://github.com/Abdoul-sudo/worklog](https://github.com/Abdoul-sudo/worklog)

What the mod does:

* Counts your time while Claude works (answers, subagents, background commands, ...).
* Counts your tokens and shows what they would cost on the API.
* Shows your whole year as a heatmap, with 8 different themes to choose from.

It's free and open source. Try it and tell me what you think. A star on GitHub would really help :)
