The Timesheet Nobody Can Argue With: Self-Host Kimai

A timesheet should answer a plain question: what work happened, for whom, and when? The answer gets harder when hours are reconstructed from memory, calendar scraps, and messages after the week has already moved on.

Kimai gives freelancers and teams a shared record of time, projects, activities, rates, and reports. Self-hosting puts that record on infrastructure you control; punch-in mode can make the record less dependent on anyone remembering to fill it in later.

When the rented clock stops being neutral

A hosted tracker can be convenient, but convenience does not settle every operational question. If a client disputes a week, an auditor asks how a payroll total was assembled, or a team needs to preserve records during a vendor change, the location and exportability of the data suddenly matter.

Per-seat subscriptions also make access design feel like a billing decision instead of an operational one. Teams may delay giving a coordinator or reviewer access, then compensate with spreadsheets and forwarded screenshots that create more copies and less clarity.

That does not make hosted software inherently wrong. It means the organization should decide deliberately which responsibilities belong to a vendor and which should remain under its own control, including identity, retention, backups, and the ability to extract records.

“A defensible timesheet is not a memory contest. It is a repeatable record with visible rules, review, and custody.”

Kimai is a professional-grade open-source time tracker under AGPL-3.0, made in Austria. Its project reports roughly 5.2 thousand repository stars, releases every couple of weeks, and says it is trusted by more than 7,500 companies; it is available for self-hosting and as hosted cloud.

The product is designed for solo work as well as organizations with dozens or hundreds of users. One installation has unlimited users, with configurable roles and team permissions, so access can reflect how work is actually organized rather than a single global administrator account.

A workday becomes a record, not a reconstruction

The agency opens the day with a clock, not a blank grid

Imagine a small agency with a design group, an implementation group, and a client-services lead. Each customer has projects; projects have activities such as discovery, design review, implementation, and support; tags distinguish internal review from client-facing delivery.

An administrator configures the installation for punch-in and punch-out time-clock use, so staff cannot write arbitrary time records. At the start of the day, a team member punches into the approved activity, works, switches when the assignment changes, and punches out before leaving.

The project lead reviews exceptions rather than collecting everyone's recollection. Team assignments can limit which customers and projects a group sees, while roles determine who may manage configuration, review entries, or simply record time.

The crucial change is not that every minute becomes billable. It is that the organization distinguishes tracked work from billable work using explicit projects, activities, rates, and review practices.

At close, advanced search and filtering help a lead inspect a date range, customer, project, user, activity, or tag. A multi-timer workflow remains available where it fits, but punch-clock enforcement is the better choice when policy requires entries to begin and end through the clock.

A freelancer turns a sprint into a reviewable invoice

A freelance developer runs two timers during a short sprint: one for a client implementation project and another for a separately scoped support task. Each record is associated with the customer and project, and tags mark work that needs explanation before it reaches an invoice.

The freelancer sets rates at the level that matches the agreement: a user-specific rate for a specialist, a customer rate for a standing contract, or a project rate for a fixed engagement. Budgets can be expressed in time or money, making the approaching limit visible before the final review.

After correcting descriptions and grouping entries, the freelancer exports the timesheet and locks the exported records. That lock protects the reviewed set against further changes, creating a clean boundary between active work and the records used for billing.

Invoice templates can group entries and use configurable numbering, producing PDF or DOCX output. The invoice is a business document; the supporting record remains the timesheet, with its own entries, filters, and locked export.

Payroll closes with evidence, not a spreadsheet hunt

A payroll administrator starts with a defined period and filters for the teams or projects in scope. The report can be examined for missing days, unusual durations, unexpected activity labels, and records that need manager review before totals are handed to payroll.

Kimai's reporting and statistics dashboard provide a view of tracked time, while exports are available in XLSX, PDF, CSV, and HTML. The administrator retains the relevant locked records and the chosen export, then documents the period, reviewer, and internal approval alongside the organization's payroll process.

A file alone does not establish a complete audit trail. The useful evidence pack pairs the data with a clear period, the filter logic, the role of the reviewer, and the fact that the records were locked after sign-off.

A client sees only the agreed slice

For a recurring engagement, the account owner prepares a Customer Portal view of the relevant customer or project statistics and timesheets. The portal uses a secret URL and can optionally require a password, which lets a client inspect agreed progress without receiving an internal administrator account.

The project manager checks that the portal contains the intended scope before sharing the link through the normal client channel. Internally, the team keeps its broader permissions; externally, the client gets a purpose-built view rather than a forwarded workbook that may include unrelated records.

illustration

Read the shape of the work, not just the total

Operational charts are most useful when they prompt a question rather than claim a universal benchmark. The examples below show relative measures an organization could calculate from its own records; they are illustrative, not published Kimai performance claims.

Billable share should be interpreted against the team's work mix, not treated as a quota. A support group, an internal platform team, and a client delivery team can have different healthy patterns even when all of them track time accurately.

Punch-in compliance is a process signal: how consistently required shifts begin and end through the clock. A low result may indicate confusing activities, poor onboarding, mobile access friction, or a policy that does not match the team's actual day.

Time-to-invoice after month close is another useful local measure. Pair it with export mix: a team that repeatedly needs spreadsheet analysis may benefit from a stable CSV workflow, while a client-facing review may call for a PDF or portal view.

The operating boundary: your team, your host, your responsibility

A self-managed VPS gives you control, but it also gives you a list of chores. You provision a web server, PHP runtime, database, TLS and hostname; plan backups; watch disk and service health; apply updates; and understand what to do when a migration changes the database schema.

Kimai's official requirements call for PHP 8.2 at minimum, with 8.3, 8.4, and 8.5 supported, plus MariaDB 10.6 or newer or MySQL 8.4 or newer. It needs a web server, a subdomain rather than a subdirectory installation, and PHP extensions gd, intl, json, mbstring, pdo, tokenizer, xml, xsl, and zip.

Available install paths include the kimai/kimai2 Docker images, either FPM-only or with Apache, Caddy with Docker Compose guides, Git and Composer over SSH, and Synology. Docker can make the runtime reproducible, but it does not remove the need to understand persistent data, database backups, hostname routing, and upgrade sequencing.

For upgrades, follow Kimai's official UPGRADING guide for the version being installed. Database schema changes are version-specific; treating an upgrade as merely replacing a container image risks leaving code and data at incompatible stages.

On deployinstant.com, a managed deployment is intended to reduce the server-side chores around running the stack, while Kimai remains the application your team configures. The instance Overview gathers status and specification tiles, public IP, region, domain and repository configuration, SSH access, instance billing, and a live cost meter refreshing every minute; header controls stop, restart, or open the app.

The Domain tab can use a default automatically managed A record or a domain you bring. The Shield tab has four protections enabled by default: SSH brute-force banning after repeated failed logins, blocked root SSH login, limited password attempts within a short login window, and a kernel network shield with SYN-flood protection.

The deeper operational story lives in Ops. Health checks probe every minute; after three failed checks the system restarts, and after two failed restarts it restores the last backup, with auto-heal configurable per server.

For a time tracker, timing matters. If Kimai is unavailable shortly before the morning rush on a billable Monday, people may work for hours before anyone notices; auto-heal is designed to return the punch-in page without waiting for a sysadmin to diagnose the service.

Ops also lets you switch automatic updates on or off for the running stack. An authenticated server-sent-events channel streams deployments, resource changes, domains, and alerts into a live activity feed, while the monitoring agent brings application stdout logs into view.

Scheduled backups and one-click restore are available in Ops → Backups. The auto-heal and alert engine run by default and can be turned off, not purchased as add-ons; provider-side snapshots in the separate Backups tab are rolling out by provider, so the working backup engine today is the one inside Ops.

Transfer In addresses a different risk: moving a working service without discovering too late that its data did not come along. Point it at the current host and the migration moves files, databases, and configuration; each move runs a verification pass before start, requires your approval for go-live, and remains visible in migration history with its state.

That sequence maps well to a timesheet migration. Export the hosted records, import them into the destination, compare representative totals and date ranges, inspect customer and project relationships, then approve cutover only after the verification pass and your own billing checks agree.

To run Kimai through this managed path, review the instance workflow at DeployInstant's Kimai page. Keep the application-specific configuration, data-retention decisions, and user permissions under your team's review even when the host operations are managed.

Operational area Unmanaged VPS Managed deployment path
Punch-in enforcement Kimai installation policy configured and tested by operator Same Kimai policy; operator still validates team workflow
Role and team granularity Kimai roles and team/customer assignments maintained by owner Same application controls; host management does not replace them
Rate card control User, customer, and project rates maintained in Kimai Same rates remain application data under team control
Invoice formats Configure templates and output PDF, DOCX, or supported e-invoices Same Kimai outputs; confirm organizational acceptance requirements
Export custody Operator stores exports and controls database backup location Team retains exports; Ops backup and restore support host continuity
Audit evidence Build period, reviewer, locks, and evidence retention procedure Same review practice; activity feed adds operational context
Backup cadence Design, schedule, monitor, and test restore yourself Scheduled backups and one-click restore in Ops → Backups
Upgrade friction Coordinate runtime, image, and version-specific schema guidance Toggle automatic updates, or retain manual control and follow UPGRADING
Security posture Harden SSH, network, host, application, and identity separately Default Shield protections plus application identity configuration
Integration surface Kimai JSON API and plugins; operate your own network path Same JSON API; managed host does not constrain app integrations
Day-two operations load Owner handles probes, logs, restarts, backups, and incident response Health automation, activity stream, logs, and restore tools reduce routine handling

Keep the data legible and the exit path real

Self-hosting is meaningful only if the data remains usable outside the interface. A MariaDB dump can be inspected with ordinary database clients, while the JSON API offers a structured route for reading and writing application data.

Kimai exports time records to CSV, XLSX, HTML, and PDF, and lets you lock exported records against further changes. Plugins extend the product through its marketplace and developer documentation; the marketplace includes free and paid options, including paid expense tracking.

A practical integration playbook begins with a narrow use case. Decide whether an external tool needs a daily summary, a project-level rollup, or a write-back action; use the JSON API for the exchange, and avoid building a second unofficial source of truth in a spreadsheet.

Start with read access and a small set of fields. Compare the receiving system's totals with Kimai reports for the same period, define how corrections are handled, and only then consider writing data back through the API.

For a hosted-to-self-hosted move, first inventory customers, projects, activities, tags, users, rates, budgets, invoice history, and any custom reports. Export the original records in the formats available to you, preserve the original files unchanged, and identify which data can be imported directly versus which needs reconciliation.

Next, stand up the destination on its required subdomain and confirm database and PHP prerequisites before importing. Run a trial migration, compare record counts and representative week totals, test user and team permissions, and generate sample reports and invoices before announcing a cutover.

At cutover, pause writes to the old system, take a final export, import the delta, verify totals, and direct users to the new punch-in page. Keep the old service read-only for a clearly defined review window if your retention policy permits, and document who approved the final switch.

For an operator who wants a managed server boundary for this process, see the Kimai deployment option. Transfer In's preflight verification, explicit go-live approval, and migration history make the move visible rather than an opaque copy operation.

The terminal sketch below shows the shape of a Docker Compose launch and a logical database dump. It is intentionally not a complete Kimai compose file: image tags, environment variables, secrets, volumes, and database service names must come from the official Kimai deployment guide for the chosen version.

# Use the version-matched official compose configuration docker compose up -d # Example logical backup; substitute the actual service and database docker compose exec -T database mariadb-dump -u kimai -p kimai > kimai-backup.sql 

A dump is not a backup strategy until you know where it is stored, who can read it, how it is encrypted at rest and in transit, and whether it can be restored. Test restoration into an isolated environment before relying on a file's existence as proof of recoverability.

Access design deserves the same care as storage. Use SAML when your identity provider should govern sign-in, with supported examples including Google Workspace, Azure AD, and Authentik; LDAP or database authentication may fit other environments.

TOTP two-factor authentication adds another layer for accounts that can access sensitive records or configuration. Assign users to teams that map to real departments or delivery groups, then grant customer and project access deliberately instead of treating team membership as decoration.

Operating rules that make time data credible

A time tracker is only as consistent as the vocabulary behind it. Before inviting the whole team, define what counts as a customer, a project, an activity, and a tag, then decide who can create or rename each item.

Customers carry practical context such as address, contacts, country, currency, and archive visibility. Projects belong to customers and can carry an order number, budget, and visibility setting; activities describe the type of work, while tags add cross-cutting context that may span projects.

This hierarchy matters when reports are used by more than one group. If one team calls a task “maintenance,” another calls the same work “support,” and a third enters free text, later filters become a vocabulary clean-up project instead of an operational report.

Create a small, stable activity set that reflects decisions people need to make. A services business may distinguish discovery, delivery, review, and support; an internal department may distinguish planned work, incidents, and administrative work, provided those terms map to actual reporting needs.

Tags should complement that structure rather than duplicate it. A tag such as “needs approval” or “reimbursable review” can mark records for a temporary workflow, while the customer, project, and activity remain the durable classification.

Permission design begins with the least surprising role. Someone who records time should not automatically manage all customer records; a project lead may need visibility into assigned customers without access to unrelated work; an administrator should be reserved for people responsible for configuration and operation.

Teams are useful when they map to real access boundaries: departments, client delivery groups, or regional units. Connect users to the appropriate teams, assign the relevant customers and projects to those groups, and verify both positive access and expected denial with test accounts.

Do not infer that a role name alone proves a control is correct. Make a permission matrix before rollout, list the tasks each role must perform, then exercise those tasks in the interface with a representative account.

A careful pilot also catches a subtle failure mode: over-partitioning. If a team cannot see a shared project needed for handoffs, members may resort to duplicate records or ask an administrator to enter time for them, eroding the very accountability the permission model was meant to provide.

The right balance is not maximum restriction at any cost. It is a deliberate boundary that limits exposure while keeping legitimate work possible, with an owner who reviews access when people change roles or projects close.

Rates and budgets need an owner

Kimai can attach rates to users, customers, and projects. That flexibility reflects real commercial arrangements: a specialist may have a distinct rate, a customer may have a standing agreement, and a particular project may override the general pattern.

Flexibility can also produce ambiguity if the organization never decides which level is authoritative. Document the precedence rule your team follows, assign a person to maintain rates, and test a sample invoice when a project-level rate differs from the customer's general rate.

Budgets expressed in time or money let a team compare accumulated work with a defined boundary. They do not replace a forecast or a conversation with the client, but they can make drift visible early enough to change scope, staffing, or expectations.

For a fixed-scope engagement, a project budget can prompt review when accumulated work approaches the agreed envelope. For a retainer, customer-level rates and recurring project organization may make monthly reporting easier to interpret.

Make budget alerts actionable by deciding who sees the report and what response follows. A chart that no one owns is decoration; a short review cadence with a named decision-maker turns the same data into a useful operating control.

Keep a record of rate changes through your organization's normal approval process. Kimai's rates represent operational configuration, while the signed agreement and change approval remain the source documents for commercial terms.

Invoices and e-invoices are separate acceptance questions

Invoice configuration covers more than choosing a file type. Teams may need to decide how entries are grouped, which descriptions appear, what invoice-number pattern is used, and which details belong on each customer's document.

PDF and DOCX outputs serve common review and delivery workflows. Templates should be tested with representative data, including long project names, multiple activities, and the grouping rules finance expects.

Electronic invoicing is more structured than a printable document. Kimai supports XML and PDF/A-compliant e-invoices aligned with EN 16931, XRechnung 3.0, and ZUGFeRD/Factur-X, using CII and UBL syntax.

Those standards do not mean every generated file is automatically accepted by every recipient or jurisdiction. Confirm the recipient's required profile, required identifiers, tax treatment, and validation process with accounting before relying on an e-invoice path for a live billing cycle.

A sensible validation sequence starts with a test customer and representative invoice lines. Generate the document, inspect its human-readable rendering, validate the structured payload with the recipient's required checks, and obtain finance approval before scaling the workflow.

Retain the invoice and the underlying time evidence according to your record-retention policy. The invoice communicates a claim; the detailed entries, review, and locked export explain how that claim was assembled.

Treat the JSON API as an integration contract

An extensive JSON API makes Kimai available to external applications and custom tools, but integration should begin with a concrete operational question. Perhaps payroll needs an approved period summary, a business-intelligence job needs project totals, or an internal portal needs to show current delivery progress.

Write down the source of truth for each field before connecting systems. If Kimai owns time entries while an accounting platform owns invoice status, define which system may create, amend, or merely read each value.

Start with a read-only proof of concept against a narrow date range and a small set of customers. Compare totals, time zones, rounding assumptions, archived items, and user identities against Kimai's own reports before allowing automated writes.

Then document failure behavior. A network timeout should not create duplicate records on retry; an unavailable downstream service should not silently discard a period; and a partial synchronization should be visible to an operator rather than reported as complete.

Use stable identifiers from the API rather than matching on display names alone. Names can change, while integrations need a reliable way to associate records and detect whether a synchronization is an update or a new object.

Keep credentials scoped and stored outside source code, rotate them through the team's normal secrets process, and log enough metadata to diagnose a sync without copying sensitive client descriptions into unrelated systems.

A good integration has an owner, a test procedure, and a reconciliation report. It also has an exit path: if the downstream tool changes, the organization should be able to disable the connector without losing Kimai's primary records.

The Customer Portal offers a simpler pattern when the goal is client visibility rather than system-to-system exchange. Use the portal for a scoped human view; use the API when another application must process structured data or initiate an approved workflow.

Host operations remain part of the product decision

A subdomain requirement affects DNS, TLS, reverse-proxy routing, and the public URL users will bookmark. Decide the hostname early, confirm it resolves as intended, and avoid planning a nested path such as example.com/time because Kimai does not support a subdirectory installation.

The PHP extension list is operationally important because a container that starts is not proof that every application function works. Check the required gd, intl, json, mbstring, pdo, tokenizer, xml, xsl, and zip extensions against the exact runtime image or package installation.

Database choice is likewise not a footnote. Keep MariaDB or MySQL on a supported version, record how persistent storage is mounted, and ensure the database backup is consistent with the application files and configuration needed to restore the service.

A monitoring signal should connect to a response. If health checks fail, someone should know where the logs are, how to identify a failed database connection or full volume, and how to decide whether a restart is safe.

Automatic updates trade operator effort for a different kind of responsibility: someone still needs to read release notes, schedule review, and validate the application after a change. For a business-critical time tracker, choose an update policy that matches the team's tolerance for change rather than assuming either automatic or manual is universally safer.

Kimai's version-specific schema guidance is why the UPGRADING document belongs in the runbook. Before an upgrade, capture a recoverable backup, read the instructions for the source and destination versions, and define a rollback decision before performing a change that may alter stored data.

After an upgrade, test the workflows that matter: sign-in, punch-in and punch-out, reporting, invoice generation, exports, API access, and any identity integration. A green process status is only one part of a business-ready verification.

Keep separate notes for application configuration and hosting configuration. This distinction helps a future operator understand which settings should travel with a Kimai migration and which belong to DNS, reverse proxy, database credentials, or the server platform.

Operational readiness is a sequence, not a feature checkbox. Confirm the hostname, runtime, database, identity path, backup and restore, representative reports, locked exports, and the responsible person for routine review.

A pilot group should include people with different roles and work patterns. Include someone who punches time, someone who approves it, someone who prepares billing, and someone responsible for the host, then collect friction before the whole organization depends on the system.

Training should explain not just which button to press, but why the team uses a particular project and activity structure. A short reference that explains when to switch timers, how to correct mistakes, and who reviews exceptions prevents many inconsistent records.

Set an expectation for missed punches before the first one happens. A correction procedure should identify who can amend an entry, what context must accompany the correction, and how the reviewer confirms that the change reflects the work actually performed.

Do not confuse strict clock enforcement with perfect evidence. A punch records an action in the system; it does not independently establish what work was done, whether the activity was classified correctly, or whether the underlying engagement was authorized.

A robust process combines the clock with clear project assignments, manager review, documented corrections, and retention. Those controls make the record more useful while acknowledging that software cannot replace an organization's policies or professional judgment.

For distributed teams, time zones deserve an explicit test. Kimai supports multiple time zones and more than thirty translations, but administrators should still verify how the team expects dates to appear in reports when members work across regions.

Choose a reporting convention for the organization: whether managers review in a common business timezone, whether local users see their local clock, and how a period boundary is defined. A consistent convention prevents a record near midnight from appearing in two different periods to two reviewers.

Language support can reduce onboarding friction for international teams. It does not settle local payroll or invoicing requirements by itself, so pair the interface choice with a review of the organization's documentation and statutory obligations.

Responsive design matters when employees record time away from a desk. Test the actual punch-in and project-selection flows on the devices people use, including the path back from a browser interruption.

During a pilot, collect specific failure reports rather than asking whether the system feels easy. Ask which activity was hard to choose, which customer was missing, whether a user could reach the correct project, and what happened when a timer needed correction.

Those answers distinguish a training gap from a data-model gap or permission error. Fixing the underlying cause is more durable than asking people to remember a workaround.

A rollout can proceed group by group. Start with one team and a bounded set of customers, inspect real reports, refine the vocabulary and permissions, then expand only after billing and payroll stakeholders confirm the records meet their needs.

Document the owner for each operational layer: application configuration, identity, host health, backups, rates, and report review. In a small business one person may hold several roles, but naming the responsibilities prevents important work from becoming nobody's job.

Finally, rehearse a restore and a migration while the service is healthy. A calm rehearsal exposes missing credentials, unclear instructions, and incomplete exports before those problems arrive during an incident or a vendor transition.

Questions teams should settle before rollout

Should we use punch-in mode or let people enter time freely?

Use punch-in and punch-out when policy requires a clock-based record and users should not author arbitrary historical entries. Use multi-timer or flexible entry workflows when the work pattern needs them, then set review expectations and make corrections visible through the team's process.

Can Kimai handle a company with many departments?

Kimai supports unlimited users per installation, customizable roles, and teams that connect users into groups. Teams can be assigned customers and projects to limit access, but administrators should test the exact permission design with representative accounts before rollout.

Which database and PHP versions are required?

The stated minimum is PHP 8.2, with PHP 8.3, 8.4, and 8.5 supported; database options are MariaDB 10.6 or newer or MySQL 8.4 or newer. Confirm all required PHP extensions and use a subdomain, because subdirectory installation is not supported.

Does Kimai produce electronic invoices?

Kimai supports configurable invoice templates, grouping, and numbering, with PDF and DOCX outputs. E-invoice support includes XML and PDF/A compliant with EN 16931, XRechnung 3.0, and ZUGFeRD/Factur-X using CII and UBL syntax; confirm the target jurisdiction and customer requirements with your accounting process.

Can an API integration replace exports?

The JSON API reads and writes data and can support custom tools, while exports remain useful for human review, archival workflows, and exchange with systems that do not integrate directly. Many teams keep both: API automation for recurring operations and locked exports for sign-off.

What does a reliable migration require?

Inventory the source data, preserve original exports, rehearse the import, compare counts and sample totals, test permissions, and generate representative reports before cutover. Transfer In performs a verification pass before the move begins and waits for your go-live approval, but your billing and payroll checks remain essential.

Are backups and updates fully automatic?

Ops provides scheduled backups, one-click restore, health checks, and an automatic-update toggle; auto-heal and alerts run by default and can be turned off. Kimai upgrades still need version-aware discipline: follow the official UPGRADING guide and treat schema changes as specific to the release path.

How do clients see project progress without a user account?

The Customer Portal shares client or project statistics and timesheets through a secret URL, optionally protected by a password. Review the scope before sharing and handle the link as a credential, since anyone who obtains an unprotected secret link may be able to view its intended contents.

Read the full illustrated guide with animated diagrams