The best open source alternative to Code Time is ActivityWatch. If that doesn't suit you, we've compiled a ranked list of other open source Code Time alternatives to help you find a suitable replacement. Other interesting open source alternatives to Code Time are: Wakapi, Hackatime, and Ziit.
Code Time alternatives are mainly Time Tracking Tools but may also be Productivity & Utilities. Browse these if you want a narrower list of alternatives or looking for a specific functionality of Code Time.
Free open-source time tracker that automatically monitors your device usage. Cross-platform support with local data storage for complete privacy.

ActivityWatch automatically tracks how you spend time on your devices while keeping your data completely private. This open-source alternative to RescueTime and ManicTime stores all information locally on your device, ensuring your activity data never leaves your control.
Key features include:
Perfect for monitoring productivity, tracking project time, managing screen habits, or gaining insights into your digital behavior. The tool helps you understand work-life balance, identify behavioral trends, and measure time spent on different activities without compromising your privacy.
Built by volunteers and maintained by the Bjäreholt brothers, ActivityWatch serves researchers, developers, and anyone seeking "self-knowledge through numbers." The active community contributes plugins, extensions, and improvements to make this the most comprehensive privacy-focused time tracker available.
Looking for open source alternatives to other popular services? Check out other posts in the alternatives series and openalternative.co, a directory of open source software with filters for tags and alternatives for easy browsing and discovery.
Open-source, self-hosted time tracking solution for developers. Analyze coding habits, improve productivity, and visualize progress.

Wakapi is a powerful, open-source time tracking tool designed specifically for developers who want to gain insights into their coding habits and boost productivity. With its seamless integration and user-friendly interface, Wakapi offers a comprehensive solution for monitoring your programming activities.
Key benefits of Wakapi include:
Whether you're a solo developer looking to optimize your time or a team leader aiming to enhance project management, Wakapi provides the tools and insights needed to elevate your coding productivity to new heights.
Free, open-source coding time tracker compatible with VS Code, JetBrains IDEs, vim, emacs and more. No limits, no paywalls - your data stays yours forever.

Track your coding time across all your favorite editors without any restrictions. This free, open-source alternative to WakaTime works seamlessly with VS Code, JetBrains IDEs, vim, emacs, and 70+ other development environments.
Key benefits that set it apart:
Comprehensive tracking features:
Easy migration from WakaTime - Simply point your existing WakaTime plugin to the new API URL and enter your API key. The compatible data format makes switching effortless.
Self-hosting option available - The entire codebase is open source (MIT license) on GitHub, allowing complete data sovereignty for teams and organizations.
Monitor your coding sessions, analyze productivity patterns, and gain insights into your development workflow with comprehensive time tracking statistics.

Track every line of code and gain valuable insights into your development habits with comprehensive coding statistics. Monitor your daily coding sessions, analyze productivity patterns, and understand how you spend your programming time across different projects and languages.
Key features include:
Whether you're a freelance developer tracking billable hours or a team lead analyzing productivity metrics, this tool provides the data you need to optimize your coding workflow. The intuitive dashboard displays your coding patterns, helping you identify peak productivity hours and areas for improvement.
Perfect for developers who want to understand their coding habits, improve time management, and demonstrate productivity to clients or employers. The detailed statistics help you make data-driven decisions about your development process and career growth.