PROVIDER - Local-First Time Tracking
ActivityWatch
ActivityWatch is an open-source automatic time tracker that logs window titles, sites and idle state locally, then summarises hours by app and category without any cloud account.
4.1pts
Service Overview
ActivityWatch is an open-source automatic time tracker: installed on Windows, macOS or Linux, it records the active window title, the pages visited in the browser and whether the machine is idle, then summarises where each day went by app, window and custom category. Data is stored locally by default, with no account required and nothing uploaded to a third-party server.
The project is MPL-2.0 licensed with roughly 20,000 stars on GitHub, currently on the 0.14.x line, written in Python and Rust, and shipped as a desktop client, a command-line tool and an Android client. A self-hosted server API can aggregate several devices.
Key Strengths
- Window and page activity is captured automatically, so no timer needs to be started and nothing is missed.
- Idle and away states are detected, so long stretches without input never inflate logged hours.
- Custom categories and regex rules fold messy window titles into readable groups.
- Data sits in a local SQLite database, can be exported, and can also be self-hosted for clear ownership.
- MPL-2.0 keeps it free with no seat fees or hour caps, which suits individuals and small teams.
Limitations
- It records and reports only, with no billing, approvals or client dimensions, so it is not an invoicing system.
- Reports and charts are plain, and month-over-month trends or team comparisons need an export first.
- Merging devices requires a self-hosted server, since each device keeps its own data by default.
- Page-level detail depends on the browser extension; without it only the window title is captured.
- The recording granularity is high, so privacy-sensitive settings need agreed rules and allow lists.
Product Ecosystem
The key mental model is watcher plus bucket: each collector appends what it observes into its own bucket, categorisation rules map events to categories at read time, and the raw data is never rewritten.
Watchers and Events
The window watcher reads the foreground window, the AFK watcher uses keyboard and mouse activity to decide whether the user is away, and the web watcher gets specific pages from a browser extension. Only the three together distinguish "had the editor open" from "edited code in the editor".
Buckets and Timeline
Each watcher owns a bucket, events are appended in time order, and simultaneous events appear side by side on the timeline. Buckets can carry their own retention settings, so long-running hosts benefit from periodic cleanup or archiving.
Categories and Rules
Categories support nesting and regex matching, mapping a window title or domain into a category. Editing rules only changes the view and never rewrites raw events, so a taxonomy can be iterated safely.
Query and Export
The local server exposes an HTTP interface on a fixed port for interval events, bucket lists and summaries, and the command-line tool exports JSON. Cross-device aggregation needs a self-hosted server with authentication in front, and callbacks should follow webhook signature verification.
Use Cases
- Good fit|Personal time audits: see which apps and sites consume a day.
- Good fit|Remote workers and freelancers: group hours by project and client to support timesheets.
- Good fit|Small-team retrospectives: opt-in installs reveal where the toolchain loses time.
- Good fit|Privacy-sensitive environments: data never leaves the machine and retention is local policy.
- Evaluate first|Teams issuing external timesheets: billing and approval flows are absent.
- Evaluate first|Centrally managed IT estates: there is no central policy distribution by default.
- Evaluate first|Users unwilling to install a client: there is no browser-only option.
Open Source License & Deployment Cost
| Item | Billing | Spec and usage | Notes |
|---|---|---|---|
| Software license | Free | Unlimited devices and users | MPL-2.0, free to use and modify; modified files keep the license |
| Desktop client | Free | Installed on each device | Local storage, runs at login |
| Self-hosted server | Billed by host | Optional, for multi-device merging | A single small service carries personal and small-team data |
| Storage | Local disk or cloud drive | Event data grows daily | Set retention and cleanup for long-running installs |
| Operations effort | Team time | Upgrades, rule upkeep and backups | Rule work is done once and reused |
The software is free; cost is limited to a host and disk, and personal use can run at zero spend.
FAQ
- Does any data leave the machine? By default everything is recorded and stored locally, with no account and no upload, and export and deletion stay with the user. If a self-hosted server merges devices, data aggregates there, so access control and backups must be handled by the operator. Privacy-sensitive settings should use allow lists to record work apps only.
- Why does a page show only the browser name? Page-level detail comes from the browser extension, and without it the window watcher only sees the browser title. Install the extension and restart the browser to fill in page titles and domains. Where policy blocks extensions, regex rules over window titles are the fallback.
- How does it work alongside a manual timer? A manual timer suits quoting and confirming deliverable hours, while automatic tracking suits review and gap detection. A common pattern is to use the automatic data to judge real effort, then log committed hours with the timer and explain the difference in the weekly report rather than forcing minute-level agreement.
- Can the data be exported for further analysis? Events export to JSON through the command-line tool or the local API and can be loaded into a spreadsheet or database for pivots. Exports contain window titles, so redact before sharing. Keep the category version fixed for long-term analysis so trend lines stay comparable.
Integration and Code Examples
Query one day of window events
# List the buckets on this host
curl -s "http://localhost:5600/api/0/buckets/" | jq 'keys'
# Fetch one day of events and summarise by app
curl -s "http://localhost:5600/api/0/buckets/aw-watcher-window_$(hostname)/events?start=2026-11-29T00:00:00&end=2026-11-30T00:00:00" \
| jq -r '.[].data.app' | sort | uniq -c | sort -rn | head
Command-line export
# Export events from all buckets as JSON for offline archiving
aw-cli export > activitywatch-2026-11.json
The interface listens on localhost only; put a reverse proxy and authentication in front before exposing it to a LAN.
Community and Resources
- ActivityWatch website — downloads, documentation and FAQ
- GitHub repository — MPL source, issues and releases
- Server API reference — buckets, events and query endpoints
- Watcher documentation — window, AFK and web collectors
- Categorisation guide — category structure and regex syntax
- Community forum — questions and field experience
Articles
- 01 Video SEO for Google Search and YouTube 07-18
- 02 Triggered Email Design: Events, Eligibility, and Frequency 07-18
- 03 Online Form Builder Comparison 11-26
- 04 Cold Email and New-Domain Warm-Up 07-18
- 05 Email Bounce Causes and Responses 07-18
- 06 E-Signature and Contract Cost Structure 07-18
- 07 Choosing Free Mailbox and Sending Quotas 11-26
- 08 Choosing Forum Software: Hosting and Maintenance 11-26
- 09 Cookie Consent Platform Selection 11-26
- 10 Choosing Team Messaging for China-Based Teams 11-26