Code TimeCode Time
专注 · 隐私 · 开放

CODETIMECodeTime 是一款专为开发者设计的应用,帮助您追踪、分析您的编程时间。

免费开始使用,无需信用卡。Pro 订阅按需开通

Privacy-respecting coding-time analytics for VS Code and JetBrains

Code Time records per-minute coding activity reported by official editor plugins for Visual Studio Code and every JetBrains IDE. Sign in with GitHub or Google, install the plugin, and watch your dashboard fill in: daily distribution, language breakdown, per-workspace totals, and a calendar heatmap. Source code is never uploaded — only file paths, languages, and timestamps. Your raw events are exportable forever through the JSON API.

Built for developers who want to understand their habits, attribute time to projects, or feed coding metrics into downstream tools. Compatible with VS Code, IntelliJ IDEA, PyCharm, WebStorm, GoLand, Rider, RubyMine, CLion, and the rest of the JetBrains family. The free tier supports unlimited personal use with full history retention.

A free native companion app for iPhone, iPad, and Mac is available on the App Store, showing daily totals, trends, and language and project breakdowns. Due to regulatory requirements the app is not yet distributed in mainland China or the European Union.

[00/global · impact]
已统计编程时间·分钟
0last 24h
[01/visualization]

数据可视化

我们致力于提供最美观的现代化仪表盘,帮助您更好地了解您的编程时间。

[02/agent · telemetry]

记录每一次 AI Agent 会话,而不只是键盘敲击。

安装一个 CLI,Code Time 就会自动采集来自 Claude Code、Codex、OpenCode、Pi 的会话记录——模型调用、Token 用量、缓存命中率、估算成本以及涉及的项目。Prompt 与源代码不会离开你的机器。

47会话
$132估算成本
1.2k模型调用
按 Agent 拆分的成本 · 最近 14 天
$0$5$10$15−13d−10d−7d−4d−1d
已对接
  • Claude Code$73.60
  • Codex$37.40
  • OpenCode$16.90
  • Pi$4.00
[03/always synced]

永久保存您的编程时间数据。

我们知道历史数据的美好。没有什么比自己的辛勤劳动被抹去更令人沮丧的了。为了让所有用户都能够在多年之后回顾自己的成长历史,我们会永久保存您的数据,直到您主动销毁它们,即使您从未付费。

永久保留
1m分钟级精度
0$免费保存
[04/open data]

支持数据导出。

世界上最安全的地方就是您自己的硬盘。因此,我们支持数据导出,您可以随时退出,并连接到其他平台或自建服务。

JSONCSVREST API
GET/v3/stats200 OK
{
  "minutes": 14820,
  "since":   "2024-01-01",
  "by":      "language",
  "data": [
    { "field": "TypeScript", "minutes": 6240 },
    { "field": "Python",     "minutes": 4180 },
    { "field": "Go",         "minutes": 2120 }
  ]
}
[05/editors]

支持多种编辑器。

官方支持 VS Code 与 JetBrains 全家桶(IntelliJ IDEA、PyCharm、WebStorm、GoLand、CLion 等)。基于 VS Code 的衍生编辑器也开箱即用,包括 Cursor、Windsurf、Google Antigravity 等。我们将持续扩展更多平台。

VS Code
JetBrains
Cursor
Windsurf
Antigravity
更多
[06/widgets]

把编程时间嵌入任意角落。

将徽章、语言环图与实时状态卡片放进 README、博客或个人主页。每个组件都是一张独立 SVG,主题可定制,根据最新数据动态渲染。

Codetime: 7190hrs 47mins
/v3/users/shield?uid=…

Shields 风格徽章

126h 10m last 30d LANGUAGES typescript 22.2% markdown 20.3% python 19.8% json 19.2% vue 18.4% codetime.dev
/api/widgets/donut.svg?uid=…

语言占比环图

CURRENTLY CODING @jannchie codetime-web-v3 TypeScript today 3h 42m last seen just now
/api/widgets/status.svg?uid=…

实时状态卡

[07/ios · app]

你的编程统计,现已登陆 iPhone、iPad 和 Mac。

官方 Code Time 应用把仪表盘带到每一块 Apple 屏幕——每日时长、趋势、语言与项目分布,原生体验。App Store 免费下载。

iPhoneiPadMac
Download on theApp Store

因合规要求,暂不支持中国大陆和欧盟地区。

[08/pricing]

免费开始,按需升级 Pro

选择适合您的计划。

[/start tracking]

种下一棵树最好的时候是三十年前其次是现在