Skip to content

First run

Type a few words anywhere, wait ~2 seconds (totals are saved within 2s of typing), then:

Terminal window
wordcount today
2026-11-27 words=2104 keys=12345 chars=9800 backspaces=300 clicks=812 active=94m wpm=22 best_burst_wpm=48 goal=3000 (70%)

On Windows:

Terminal window
& "$env:LOCALAPPDATA\keyount\wordcount.exe" today
# Python fallback install: python "$env:LOCALAPPDATA\keyount\wordcount.py" today

On macOS:

Terminal window
~/.local/bin/wordcount today
# Python fallback install: python3 ~/.local/bin/wordcount.py today

If counts stay 0, see Troubleshooting.

A word is counted when letters/digits are followed by a boundary key (space, Enter, Tab, or punctuation). Backspace shrinks the current word, so a fully deleted word is not counted. This is a typing-volume estimate, like other word counters — code, shortcuts, and gaming count differently from prose.

Active time counts gaps between events up to 10 seconds (longer gaps are idle). Average WPM is words ÷ active minutes. Best burst WPM is your fastest sustained burst of continuous typing (gaps under 2.5s, at least 5s and 3 words).

Stop counting before passwords or private typing:

Terminal window
wordcount pause # stop counting
wordcount resume # start again
wordcount toggle # pause if running, resume if paused

Every widget also has a pause/resume control. Pausing creates a PAUSED file in the data directory; the counter checks it and counts nothing while it exists.

Terminal window
wordcount goal 3000 # set daily word goal
wordcount goal # show current config
wordcount goal 0 # clear the goal
wordcount goal --mouse off # stop counting mouse clicks
wordcount goal --heatmap on # opt in to per-key press counts (off by default)

Goal progress shows in wordcount today, wordcount panel, and the widgets.

One small JSON file per day — daily totals only, never text:

~/.local/share/keyount/YYYY-MM-DD.json

On Windows the same layout sits under your home directory (C:\Users\<you>\.local\share\keyount\). The directory is 0700 and files are 0600 on Linux/macOS — only your user can read them. See Data format for the fields.

Optional configuration lives at ~/.config/keyount/config.json:

{"daily_goal_words": 3000, "track_mouse": true, "track_heatmap": false}

The counter reloads it automatically; wordcount goal edits it for you.

Terminal window
wordcount week # last 7 days
wordcount month # last 30 days + daily average
wordcount info # streak, best day, all-time totals
wordcount report # local HTML report (static file, no server)

Full list: Commands.