Privacy
Keyount reads keyboard events to count them. Tools in this
category deserve extra scrutiny, so here is exactly what it does
and does not do. (This page mirrors the repo’s SECURITY.md.)
What it stores
Section titled “What it stores”Only daily totals in ~/.local/share/keyount/YYYY-MM-DD.json:
{"date": "2026-11-27", "keys": 12345, "words": 2104, "chars": 9800, "backspaces": 300, "mouse_clicks": 812, "active_seconds": 5640, "hourly_words": ["...24 numbers..."], "hourly_keys": ["..."], "best_burst_wpm": 48}If (and only if) you opt in with wordcount goal --heatmap on,
the file also gains a heatmap object with per-key press
counts (e.g. {"KEY_E": 412, "KEY_SPACE": 900}). Counts
only — never the order, sequence, or timing of individual keys.
It is off by default because key-frequency data, while far
less sensitive than text, says slightly more about you than plain
totals do.
What it never stores or sends
Section titled “What it never stores or sends”- Typed text or the sequence/order of keys
- Mouse position or movement (click counts only, and only if enabled)
- Window titles, application names, or clipboard contents
- Anything over the network — the counter contains no network calls, no telemetry, and no update checks
Verify it yourself:
grep -Ei 'socket|urllib|requests|curl|wget|http' \ src/keyount.py src/counter_core.py \ windows/counter_win.py macos/counter_mac.py ports/wordcount.py# (no matches expected)The installers download the source once, only when you run the one-liner install; the installed counter never touches the network.
Permissions and risks
Section titled “Permissions and risks”- On Linux, reading
/dev/input/event*requires membership in theinputgroup (or root). Any process running as your user with that access could read key events — inherent to how Linux input works, and a reason to audit this short script before running it and to keep your user account secure. - Data files are created with
0600permissions in a0700directory, so other local users cannot read your totals. - Use
wordcount pause(or the widget’s Pause button) before typing passwords or other sensitive material if you do not want even the count of those keystrokes recorded. - The systemd unit runs as your user (not root) with
MemoryMax=32MandCPUQuota=5%. - Windows: the counter installs low-level keyboard/mouse
hooks (
WH_KEYBOARD_LL/WH_MOUSE_LL) — the same mechanism keyloggers use, which is why some antivirus products flag any process that installs one. Ours only classifies and counts, and always passes events through. Auditwindows/counter_win.py(short, stdlib-only) before whitelisting it. - macOS: the counter needs the Input Monitoring
permission (System Settings → Privacy & Security). That grant
lets the counter process observe key events system-wide, so
only grant it to the exact binary you run the counter with
(the standalone
keyountbinary, or your Python in the fallback install), and revoke it if you uninstall. The event tap is listen-only and cannot block or alter input.
Reporting a vulnerability
Section titled “Reporting a vulnerability”Please report security issues privately via GitHub’s Security → Report a vulnerability flow on the repository rather than a public issue. Include steps to reproduce and the affected version. Please do not include real passwords or typed text in reports.