Sign inSign up

[Open Source] Kimai: Lightweight Time Tracking and Attendance

Open SourceStaff & Attendance
2026-11-22 06:37 1 views • 0 downloads Docker · ~350 MB
[Open Source] Kimai: Lightweight Time Tracking and Attendance

Overview

Kimai is a mature open-source time-tracking system for recording how long people spend on customers, projects and activities, then turning those records into billing and cost reports. It offers a browser interface and a phone-friendly page, with a one-click timer as well as manual entry. For an owner, it answers a very concrete question: where did the labour go, and which clients are actually profitable. The design is intentionally small, so it can be added to an existing server without planning a major migration.

kimai main interface screenshot

Why it fits a small business

Service businesses often quote by the hour but reconstruct timesheets from memory and chat messages, which under-bills work and invites client disputes. Kimai makes tracking a fixed routine: start, choose customer and project, stop. Data rolls up into reports by client, project or person, so pricing decisions and capacity planning have evidence behind them. For distributed teams it also works as a light attendance record without introducing a full HR suite. Tags can mark overtime or non-billable work, giving an honest picture of how much effort actually produces revenue.

What you can do

  • One-click timer with pause and resume
  • Customer, project and activity structure for precise attribution
  • Manual entry and bulk editing for forgotten sessions
  • Reports and exports grouped by person, client, project, tag or date
  • Billing rates and cost rates with automatic margin calculation
  • Teams and roles restricting users to their own records
  • Tags and custom fields for overtime, travel and non-billable work
  • REST API and plugins for invoicing tools
  • A phone-friendly page that behaves like an app when served over HTTPS
kimai feature screenshot

Stack and license

Kimai is built on PHP and Symfony. SQLite works for a minimal single-user deployment, while MariaDB or MySQL is the right choice for a team. The official images live on Docker Hub under kimai/kimai2, with 2.72.1 as a recent stable tag. The AGPL-3.0 license permits internal use without extra obligations. The project updates frequently and its issue tracker is responsive, making it one of the healthiest small tools in this batch. There is no separate front-end build step for normal deployment.

Deployment notes

The smallest setup is one container with SQLite on port 8000; add MariaDB for multiple users. If ADMIN_USER, ADMIN_PASSWORD and ADMIN_EMAIL are provided at first start, the administrator is created automatically; otherwise the web installer handles it. Generate a fixed APP_SECRET and keep it stable, because changing it invalidates sessions. DATABASE_URL decides which database is used and switching it later does not migrate old data. A frequently overlooked detail is timezone: if the container and team disagree, late-night entries land on the previous day's report. Configure trusted proxies so generated links use the public address.

  • Immediate logout after login means APP_SECRET changed or the session directory was not persisted.
  • Report totals off by a day point to mismatched container and database timezones.
  • No administrator created usually means malformed environment variables or a cached installer.
  • The phone-friendly page cannot be installed as an app unless served over HTTPS.
kimai reporting screenshot

Resource footprint

SQLite mode stays below 300 MB of memory; with MariaDB, budget 500 to 800 MB. It runs on a 1 CPU / 2 GB machine, making it easy to co-host with other services. The image is roughly 350 MB, one of the lightest in this batch. As history grows, report queries become the main cost, and adding indexes on the database is usually enough.

Before you deploy

Write down the few facts that will be used every day before creating containers: the people who need access, the names of the main business objects, and the one workflow that must work on launch day. Most failed self-hosting projects do not fail because the software is broken; they fail because master data is messy and nobody agreed on who owns each step. Prepare persistent volumes, a final domain name and a working SMTP account now, since all three are painful to retrofit after staff have started using the system. If the tool will be reachable from the internet, plan for HTTPS from the first hour rather than as a later improvement.

Data organisation

Start small and real. Import a handful of current records rather than a perfect but imaginary dataset, then walk one complete cycle from creation to report. Give fields short, familiar names and resist adding custom fields until somebody asks for the same filter twice. Define roles at the same time as data: an owner who can see everything, a small group that can edit, and everyone else with read-only or self-service access. Write the three or four rules that matter most into a one-page guide, because a short guide that people read is more useful than a long manual that nobody opens. Review the structure after a month and remove fields that nobody uses.

Backup, upgrades and security

Every system in this batch stores its real value in two places: the database and the uploaded files. Back up both on the same schedule, keep one copy away from the host, and perform a restore drill at least once a quarter. Before replacing an image, read the release notes, take a fresh backup and, where practical, rehearse the upgrade on a test instance. Use one account per person, disable accounts immediately when someone leaves, and keep the administrator login for administration rather than daily work. Check public links and API tokens periodically; forgotten shares are a common source of leaks. HTTPS, strong passwords and a short access review every quarter are enough to protect a small business without building a security programme.

Getting started

  1. Prepare persistent volumes, the database, the final HTTPS address and the pinned image tag.
  2. Start the stack and complete the first-run wizard or site creation step before inviting anyone.
  3. Enter a small set of real master data and run one complete workflow to the final report.
  4. Assign roles, configure email notifications and document the three steps people will use daily.
  5. Schedule backups, rehearse a restore and only then make the system the team's default place to work.

Pitfalls

  • Immediate logout after login means APP_SECRET changed or the session directory was not persisted.
  • Report totals off by a day point to mismatched container and database timezones.
  • No administrator created usually means malformed environment variables or a cached installer.
  • The phone-friendly page cannot be installed as an app unless served over HTTPS.

Who should use it

Consultants, designers, developers, repair services and any team billing by time. It does not calculate salaries, handle social insurance or enforce leave policies, so treat it as a factual time ledger rather than a complete HR system. Used alongside an invoicing tool, it turns vague labour costs into concrete numbers.

A typical day

The pattern is similar across these tools. In the morning someone opens the system instead of a chat thread, because that is where the current state lives. Work is recorded once, at the moment it happens, and the record carries enough context for a colleague to continue. During the day, filters and views answer the small questions that used to interrupt other people: what is waiting, what is overdue, and who owns the next step. At the end of the day or week, a report is generated from the same records rather than rebuilt by hand. That is the practical return on self-hosting: fewer repeated questions, fewer conflicting versions of the truth, and data that remains yours.

Links

Source repository | Container image | Official documentation

Deployment serviceVerified deployable

Having trouble setting up this project?

We have run “[Open Source] Kimai: Lightweight Time Tracking and Attendance” locally and verified that it installs and the admin panel works. We can deploy it to your server.

Starting at
from $149
Estimated time
48 hours
Deployment notes
Compose 编排、数据库初始化、管理员与团队权限、HTTPS 反代 / Compose stack, database init, admin and team permissions, HTTPS proxy
Service details →

WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails