ActivityWatch/activitywatch
ActivityWatch/activitywatch has 19,508 GitHub stars and 1,074 forks. GitHot measured +12 stars in 24 hours, +78 in 7 days, and +190 in 15 days. Last checked 2026-11-05 07:24 UTC. Last push 2026-11-01.
最好的自由开源自动时间追踪工具。跨平台、可扩展、注重隐私。
实测星标增长
- 24小时
- +12
- 7天
- +78
- 15天
- +190
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Records what you do so that you can know how you've spent your time.
All in a secure way where you control the data.
Website
— Forum
— Documentation
— Releases
Contributor stats
— CI overview
Do you want to receive email updates on major announcements?
Signup for the newsletter!
Table of Contents
About
The goal of ActivityWatch is simple: Enable the collection of as much valuable lifedata as possible without compromising user privacy.
We've worked towards this goal by creating an application for safe storage of the data on the user's local machine and as well as a set of watchers which record data such as:
- Currently active application and the title of its window
- Currently active browser tab and its title and URL
- Keyboard and mouse activity, to detect if you are AFK ("away from keyboard") or not
It is up to you as user to collect as much as you want, or as little as you want (and we hope some of you will help write watchers so we can collect more).
Screenshots

Screenshots of v0.14.0 with demo data (generated with make screenshots). Find more, including dark mode, Android, and how it has evolved over the versions, on the website.
How to cite ActivityWatch
If you use ActivityWatch in your research, please cite it. This helps us track academic impact and keeps the project sustainable. The canonical reference is the Zenodo DOI:
Ready-to-paste BibTeX for your methods section:
@software{activitywatch,
author = {Bjäreholt, Erik and Bjäreholt, Johan},
title = {ActivityWatch},
year = {2026},
publisher = {Zenodo},
version = {0.14.0},
doi = {10.5281/zenodo.4957165},
url = {https://github.com/ActivityWatch/activitywatch}
}
If you publish a paper that uses ActivityWatch, we would love to hear about it — please let us know on the forum.
Installation & Usage
Downloads are available on the releases page.
For instructions on how to get started, please see the guide in the documentation.
Interested in building from source? There's a guide for that too.
Is this yet another time tracker?
Yes, but we found that most time trackers lack one or more important features.
Common dealbreakers:
- Not open source
- The user does not own the data (common with non-open source options)
- Lack of synchronization (and when available: it's centralized and the sync server knows everything)
- Difficult to setup/use (most open source options tend to target programmers)
- Low data resolution (low level of detail, does not store raw data, long intervals between entries)
- Hard or impossible to extend (collecting more data is not as simple as it could be)
To sum it up:
- Closed source solutions suffer from privacy issues and limited features.
- Open source solutions aren't developed with end-users in mind and are usually not written to be easily extended (they lack a proper API). They also lack synchronization.
We have a plan to address all of these and we're well on our way. See the table below for our progress.
Feature comparison
Basics
| User owns data | GUI | Sync | Open Source | |
|---|---|---|---|---|
| ActivityWatch | :white_check_mark: | :white_check_mark: | WIP, decentralized | :white_check_mark: |
| Selfspy | :white_check_mark: | :x: | :x: | :white_check_mark: |
| ulogme | :white_check_mark: | :white_check_mark: | :x: | :white_check_mark: |
| RescueTime | :x: | :white_check_mark: | Centralized | :x: |
| WakaTime | :x: | :white_check_mark: | Centralized | Clients |
Platforms
| Windows | macOS | Linux | Android | iOS | |
|---|---|---|---|---|---|
| ActivityWatch | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| Selfspy | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
| ulogme | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: |
| RescueTime | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Limited functionality |
Tracking
| App & Window Title | AFK | Browser Extensions | Editor Plugins | Extensible | |
|---|---|---|---|---|---|
| ActivityWatch | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Selfspy | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
| ulogme | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
| RescueTime | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
| WakaTime | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Only for text editors |
For a complete list of the things ActivityWatch can track, see the page on watchers in the documentation.
Architecture
graph TD;
aw-qt[<a href='https://github.com/ActivityWatch/aw-qt'>aw-qt</a><br/>or<br/><a href='https://github.com/ActivityWatch/aw-tauri'>aw-tauri</a>];
aw-notify[<a href='https://github.com/ActivityWatch/aw-notify-rs'>aw-notify</a>];
aw-server[<a href='https://github.com/ActivityWatch/aw-server'>aw-server</a><br/>or<br/><a href='https://github.com/ActivityWatch/aw-server-rust'>aw-server-rust</a>];
aw-webui[<a href='https://github.com/ActivityWatch/aw-webui'>aw-webui</a>];
aw-watcher-window[<a href='https://github.com/ActivityWatch/aw-watcher-window'>aw-watcher-window</a>];
aw-watcher-afk[<a href='https://github.com/ActivityWatch/aw-watcher-afk'>aw-watcher-afk</a>];
aw-watcher-web[<a href='https://github.com/ActivityWatch/aw-watcher-web'>aw-watcher-web</a>];
aw-sync[<a href='https://github.com/ActivityWatch/aw-server-rust/tree/master/aw-sync'>aw-sync</a>];
aw-qt -- Manages --> aw-server;
aw-qt -- Manages --> aw-notify -- Queries --> aw-server;
aw-qt -- Manages --> aw-watcher-window -- Watches --> S1[Active window] -- Heartbeats --> aw-server;
aw-qt -- Manages --> aw-watcher-afk -- Watches --> S2[AFK status] -- Heartbeats --> aw-server;
Browser -- Manages --> aw-watcher-web -- Watches --> S3[Active tab] -- Heartbeats --> aw-server;
SF -- Dropbox/Syncthing/etc --> SF;
aw-server <-- Push/Pull --> aw-sync <-- Read/Write --> SF[Sync folder];
aw-server -- Serves --> aw-webui -- Queries --> aw-server;
%% User -- Interacts --> aw-webui;
%% User -- Observes --> aw-notify;
%% User -- Interacts --> aw-qt;
classDef lightMode fill:#FFFFFF, stroke:#333333, color:#333333;
classDef darkMode fill:#333333, stroke:#FFFFFF, color:#FFFFFF;
classDef lightModeLinks stroke:#333333;
classDef darkModeLinks stroke:#FFFFFF;
class A,B,C,D,E,G lightMode;
class A,B,C,D,E,G darkMode;
%% linkStyle 0 stroke:#FF4136, stroke-width:2px;
%% linkStyle 1 stroke:#1ABC9C, stroke-width:2px;
About this repository
This repo is a bundle of the core components and official modules of ActivityWatch (managed with git submodule). Its primary use is as a meta-package providing all the components in one repo; enabling easier packaging and installation. It is also where releases of the full suite are published (see releases).
Server
ActivityWatch has two server implementations:
aw-server(Python) - The current default implementationaw-server-rust- A Rust implementation that is the planned future default
Both provide a REST API to a datastore and query engine, and serve the web interface developed in the aw-webui project (which provides the frontend).
The REST API includes:
- Access to a datastore suitable for timeseries/timeperiod-data organized in "buckets" (containers grouping related activity data by metadata like client type or hostname)
- Buckets API: Create, retrieve, and delete data buckets
- Events API: Read and write timestamped events within buckets
- Heartbeat API: Watchers use heartbeat signals to update the current state of activity (e.g., active application, AFK status)
- Query API: simple query scripting language for filtering, merging, grouping, and transforming events
- Client libraries: Language-specific libraries like
aw-client(Python),aw-client-js, andaw-client-rustthat wrap REST endpoints for programmatic access
The frontend (aw-webui) includes:
- Data visualization: Dashboard and timeline views showing activity summaries with detailed breakdowns of app usage, web browsing, and user-defined categories
- Query explorer: Browser-based interface for writing, executing, and debugging queries with real-time results
- Activity browser: Navigate through historical data with filtering by date ranges, applications, websites, and custom categories
- Raw data access: View and browse individual events from all tracking buckets with detailed metadata
- Export functionality: Export activity data in JSON format (individual buckets or complete datasets) via web interface or REST API
Watchers
ActivityWatch comes pre-installed with two watchers:
aw-watcher-afktracks the user active/inactive state from keyboard and mouse inputaw-watcher-windowtracks the currently active application and its window title.
There are lots of other watchers for ActivityWatch which can track more types of activity. Like aw-watcher-web which tracks time spent on websites, multiple editor watchers which track spent time coding, and many more! A full list of watchers can be found in the documentation.
Libraries
aw-core- core library, provides no runnable modulesaw-client- client library, useful when writing watchers
Folder structure
Contributing
Want to help? Great! Check out the CONTRIBUTING.md file!
Questions and support
Have a question, suggestion, problem, or just want to say hi? Post on the forum!
探索相关项目
n8n-io/n8n
具备原生 AI 能力的 Fair-code 工作流自动化平台。可将可视化构建与自定义代码相结合,支持自行部署或使用云服务,并提供 400 多种集成。
209,644 星标langgenius/dify
在同一个协作工作区中构建智能体工作流和 RAG 流水线,并提供丰富的 AI 模型与工具支持。可部署到云端、VPC 或自行部署,团队无需重建技术栈即可从原型进入生产。
160,482 星标microsoft/PowerToys
Microsoft PowerToys 是一组提升 Windows 生产力和自定义能力的实用工具
140,594 星标stablyai/orca
Orca 是使用智能体集群开展工作的地方(例如 Grok Bot、Claude Code)。可使用你自己的订阅运行任意编程智能体。支持桌面端、移动端和远程运行时。
116,806 星标