I'd be happy skipping the free part for something that preserves my privacy. Off the list GP posted, the first name -- ActivityWatch -- seems to hit the mark? open source, privacy-first, cross-platform according to the homepage[0]. Never even heard of it until now, but I might give it a try :)
[0] https://activitywatch.net/