ActivityWatch lets you define category rules that automatically classify events fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ActivityWatch/activitywatch/llms.txt
Use this file to discover all available pages before exploring further.
aw-watcher-window and aw-watcher-web based on app name, window title, or URL patterns. Once your rules are in place, the Category view on the dashboard shows a breakdown of your day by category — “Work”, “Social”, “Entertainment”, or whatever groupings make sense for you — rather than a raw list of application names.
Creating categories
Add a category
Click Add category and give it a name such as “Work” or “Social”. You can also nest categories under a parent (see subcategories below).
Add matching rules
For each category, add one or more rules. Each rule specifies:
- Match type — whether to match against the application name (
app), the window title (title), or the URL (for browser events). - Pattern — a regex or plain substring to match against the selected field.
Category rules
Each rule is evaluated against incoming events in the order your categories are listed. The first matching rule wins — once an event is assigned to a category, evaluation stops. Regex support: patterns are treated as regular expressions. Use(?i) at the start of a pattern for case-insensitive matching. For example, (?i)slack|teams|zoom matches any of those strings regardless of capitalization.
Subcategories: you can create hierarchical categories by nesting them under a parent. For example:
- Work
- Work > Coding
- Work > Meetings
- Work > Email
Viewing category reports
Once you have defined at least one category with a matching rule:- Open the dashboard at
http://localhost:5600. - Navigate to the Activity view for the day you want to inspect.
- Toggle to the Category tab within the view.
Default categories
ActivityWatch ships with no default categories. The category system is intentionally blank so that you define groupings that match your own workflow, rather than having to remove or override presets that do not apply to you.Why don't my categories appear in the Category view?
Why don't my categories appear in the Category view?
Check two things:
- Category view is selected — on the Activity page, make sure you have switched to the “Category” tab rather than the default “Apps” tab.
- Events exist for the selected day — if no events have been recorded for the date you are viewing, all views will be empty. Confirm that your watchers are running by checking the Buckets page.
Can I export category data?
Can I export category data?
Yes, in two ways:
- JSON export from the dashboard — open the Buckets page, click the bucket you want (e.g.,
aw-watcher-window_<hostname>), and click Export. The exported JSON contains all raw events. You can post-process them against your category rules locally. - Query API — use the
categorize(events, rules)function in the Query explorer or viaPOST /api/0/query/to apply category filters server-side and return pre-classified results. See the query guide for details.
