A system tray companion for Kimai time tracking. Start, stop, pause and switch timers without leaving your desktop.
Built with Tauri 2, React 19 and TypeScript.
- Start, stop and switch Kimai timers directly from the tray popup
- Run several timers at once when your Kimai instance allows more than one active entry; each running timer gets its own card with pause and stop, and starting a task stops only the oldest timers beyond the limit
- Failed starts and resumes caused by network or server problems, or by Kimai rejecting the current time for your account ("Validation Failed"), are queued and retried automatically with Retry now and Cancel controls, without creating duplicate timers
- Pause multiple timers, resume any of them later or discard them
- Optionally reveal paused-timer descriptions on hover
- Quick-start tasks from per-connection favorites and recent entries; type to filter both lists
- Searchable project, activity, customer and Kimai tag pickers with on-demand refresh
- Create project-local or global activities from the new-timer form, with automatic or custom colors; the activity picker groups local activities before global ones
- Optional notes, tags, customer filtering and a custom start time for new tasks
- Per-connection text and URL custom fields, including required fields, for starting, viewing and editing timers; testing a connection discovers supported fields from Kimai's optional Custom Fields API while preserving manual definitions
- Optional Creative Issue Link plugin for storing an Issue / Ticket URL in timer metadata
- Edit the active timer's note, tags and start time
- Edit the start and end time of completed entries when permitted by the Kimai API; edit or clear their descriptions from the right-click menu in Today or Recent tasks
- Hide recent tasks locally or delete their time entries from Kimai
- Today's color-coded day timeline and entry list with sorting, durations, billable status and a start-again control for completed entries
- Fill untracked gaps between today's entries by opening a new timer with the gap's start time prefilled, when custom start time is enabled
- Optional per-connection daily goals with required/full milestones, remaining time and an estimated finish time
- Optional per-connection workflow with a configurable two-level category and activity tree, icons and colors
- Use a default project for internal activities, and select a client project for subcategories that require one
- Optionally assign an automatic client project per subcategory, with manual selection when it is unavailable or incompatible with the activity
- Optionally auto-select the only subcategory in a category, starting directly or opening the project picker; unavailable activities keep their warnings visible
- Continue the last category activity within a configurable time window after stopping
- Import/export category configuration as JSON and synchronize categories hourly from a remote URL
- GitLab, GitHub and Gitea issue linking, configured independently for each Kimai connection
- Browse and search accessible projects/repositories and select a repository per timer
- Filter issues by state, assignee and included or excluded labels
- Highlight and preselect issues matching the chosen Kimai project
- Open or copy issue links and optionally insert an issue URL or title into the timer description
- GitLab spent/estimated-time badges in the issue picker and active timer
- Sync recorded time back to linked GitLab and Gitea issues when a timer stops; pending exports survive restarts, retry after reconnection and offer review for uncertain writes
- Up/Down arrows move between startable rows; Enter starts the focused task
- Shift+Enter on a favorite or recent task opens it with changes before starting
- Cmd/Ctrl+1–9 starts a favorite; Cmd/Ctrl+N opens a new task
- Space pauses or resumes when no interactive control is focused
- Typing opens the favorites/recent-task filter when available; shortcuts leave text inputs and dialogs available for normal editing
- Configurable global shortcuts for the popup, new task, stop, pause/resume, continue last task, 1049E edit note, open Kimai and Settings
- Idle detection with configurable threshold and actions: ask, stop at idle start, stop now or keep running; stop actions apply to every running timer
- Automatic local idle statistics with period history, total duration and a daily chart in idle detection settings; retained for 30 days by default (configurable from 1 to 365 days). Recording runs while the app and idle detection are enabled, even without a running timer.
- Full-screen idle prompt and optional desktop notification
- Independently configurable options to stop all running timers when the macOS screen saver starts or the Mac is locked, both disabled by default
- Optional stop on shutdown or sign-out. KimaiTray tries to stop all running timers on the active connection within a short time limit. Deployments can set
settings.stopTimerOnShutdowntotrueinsettings.json. On Linux, desktop sign-out requires a session manager that reports the event through XDG Desktop Portal (Inhibit v3) or GNOME SessionManager. System shutdown and reboot can also be detected through systemd-logind. - Configurable full-screen reminder when no timer has been running
- Launch at login, configurable server refresh interval and one-click opening of Kimai
- Automatic updates, manual update checks and a localized What's New screen after updates
- Multiple isolated Kimai connections, including separate accounts on the same server
- Per-connection favorites, paused timers, feature settings, caches and issue integrations
- API and integration credentials stored in the operating system's secure credential store
- Native HTTP broker with validated origins and pinned DNS targets for Kimai and issue-tracker requests
- Four popup layouts: Classic, Focus, Taskbar and Timeline
- Light, dark and transparent themes, five accent colors and configurable Kimai color indicators
- UI scaling from 85% to 160%, optional rounded corners, animations and translucency controls; popup transitions respect the system reduced-motion preference
- Resizable tray-popup and detached-window modes
- macOS True Tray mode hides the Dock and Cmd+Tab entry
- Custom tray icon shape, size and colors for running, paused, idle and error states
- Configurable macOS menu-bar label (timer, project, activity or icon only) and tray left/right-click actions
- Native context menus for timers, tasks, today's entries, issue selection, layout controls and editable text
- Configurable popup monitor and placement on supported Linux/X11 desktops
- Six bundled languages: English, Slovak, Czech, German, Ukrainian and Spanish, plus system-language detection
- Native support for macOS, Windows and Linux, including X11 and supported Wayland desktops
The optional no-timer and idle reminders can take over the screen so they are difficult to miss.
An installed KimaiTray can be opened from a browser or another application
through the kimaitray:// protocol. The start action starts immediately,
matching the normal in-app switch behavior: it stops the running Kimai
timesheet, or only the oldest ones beyond the limit when the instance allows
several active entries. The new action only opens a prefilled new-timer form and always
requires manual confirmation.
<button id="start-kimai-timer">Start timer</button>
<script>
document.querySelector("#start-kimai-timer").addEventListener("click", () => {
const params = new URLSearchParams({
connection: "work",
project: "123",
activity: "45",
description: "Review pull request",
issue: "https://git.example.com/team/project/-/issues/17",
"custom.issue_link": "https://tickets.example.com/17",
});
window.location.href = `kimaitray://start?${params}`;
});
</script>| Parameter | Required | Meaning |
|---|---|---|
project |
for start |
Positive Kimai project ID |
activity |
for start |
Positive Kimai activity ID |
connection |
no | Saved KimaiTray connection ID; the active connection is used when omitted |
description |
no | Timer description |
begin |
no | Custom Kimai start date/time |
label |
no | Label used in start/error feedback |
tag |
no | One tag; repeat the parameter for multiple tags |
tags |
no | Comma-separated tags (may be combined with tag) |
issue |
no | GitLab, GitHub, or Gitea issue URL belonging to the configured integration |
custom.<name> |
no | Enabled custom plugin input, addressed by metadata name or its stable input ID |
An open-only example suitable for browser integrations is:
kimaitray://new?connection=work&issue=https%3A%2F%2Fgit.example.com%2Fteam%2Fproject%2F-%2Fissues%2F17
For the Creative Issue Link plugin, use custom.issue_link. Git issue URLs are
resolved using the selected connection's configured provider and credentials;
the URL is also inserted into the configured description/custom-input target
when that integration's auto-insert option is enabled. API and issue tokens must
never be placed in a deep-link URL.
The installable userscript at
tempermonkey/gitlab.user.js adds a Nový
Kimai timer button after GitLab's small issue breadcrumb. It opens
kimaitray://new with the current issue URL and displays a prefilled new-timer
form; it never starts the timer automatically. Both GitLab issue URL formats
(/-/issues/:iid and /-/work_items/:iid) are supported. On an issue board,
the same button is added to the open work-item drawer next to its reference and
copy-link action.
- Create a new Tampermonkey userscript and paste the contents of
tempermonkey/gitlab.user.jsinto it. - Open the Tampermonkey menu and choose KimaiTray: pridať GitLab server.
- Enter the GitLab base URL. Self-hosted GitLab installations and base-path
URLs such as
https://example.com/gitlabare supported. - Repeat for additional GitLab servers. Use KimaiTray: zobraziť GitLab servery to list them or KimaiTray: odstrániť GitLab server to remove one.
- Optionally choose KimaiTray: nastaviť custom plugin field and enter a
custom plugin metadata name. Use
issue_linkfor the Creative Issue Link plugin; leave it empty when the plugin is disabled.
The userscript always uses the active KimaiTray connection, so select the appropriate connection in KimaiTray before opening an issue. Existing single-server settings are migrated automatically.
Because GitLab servers are configured at runtime, the userscript uses a broad
@match; it only adds buttons for issue URLs matching a configured server and
base path.
| Tool | Version |
|---|---|
| Node.js | 22.22.2+ (22.x), 24.15+ (24.x) or 26+ |
| Rust | 1.95.0, pinned in rust-toolchain.toml |
| Tauri CLI | Installed locally by npm install |
TypeScript stays on 6.0 until typescript-eslint supports 7.x. Linux GTK/GLib bindings stay on 0.18 to match Tauri and libappindicator.
macOS — Xcode Command Line Tools:
xcode-select --installLinux (Debian/Ubuntu):
sudo apt install libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelfWindows — Visual Studio Build Tools with "Desktop development with C++" workload. WebView2 is bundled automatically.
git clone https://github.com/Engazan/KimaiTray.git
cd KimaiTray
npm install
npm run tauri devThe tray icon appears in your menu bar / system tray. Click it to open the popup.
- Log into your Kimai instance
- Go to your profile (click your avatar) -> API Access
- Click Create to generate a new API token
- Copy the token
- In KimaiTray, click the tray icon -> Settings -> Connection
- Enter your Kimai URL (e.g.
https://kimai.example.com) and paste the token - Click Test & Save
Token permissions depend on your Kimai role. Admin or Team Lead roles provide full API access.
# Build for the current platform
npm run tauri build
# Build frontend only (staging/production mode)
npm run build:staging
npm run build:prod| Platform | Artifacts |
|---|---|
| macOS | src-tauri/target/release/bundle/dmg/ and .app |
| Windows | src-tauri/target/release/bundle/nsis/ |
| Linux | src-tauri/target/release/bundle/appimage/, deb/ |
Three environment modes via Vite .env.* files:
| File | VITE_ENV |
VITE_LOG_LEVEL |
|---|---|---|
.env.development |
development | debug |
.env.staging |
staging | info |
.env.production |
production | warn |
Create .env.local or .env.production.local for machine-specific overrides (gitignored).
src/ # React frontend
api/ # Kimai REST API client
categorymode/ # Configurable category-based timer workflow
components/ # UI components
hooks/ # Custom React hooks
integrations/ # Issue tracker integrations
plugins/ # Custom timer inputs and plugin metadata
providers/ # React context providers (React Query)
services/ # Timer operations
tray/ # Popup workflows, keyboard navigation and UI helpers
settings/ # Settings UI & service
windows/ # TrayPopup & Settings windows
shared/i18n/ # Translations (6 languages)
utils/ # Logger, time formatting
src-tauri/ # Tauri / Rust backend
src/lib.rs # App setup, plugin registration
src/main.rs # Binary entry point
src/tray.rs # System tray entry point
src/tray/ # Popup workflows, icons and native platform adapters
src/shortcuts.rs # Global keyboard shortcuts
src/keychain.rs # API token storage
src/http.rs # Bounded native HTTP broker
src/idle.rs # Platform idle detection
src/idle_stats.rs # Persistent local idle statistics and retention
tauri.conf.json # App metadata & bundle config
capabilities/ # Permission declarations
icons/ # App icons (icns, ico, png)
Rust side: Uses tauri-plugin-log — writes to stdout, log directory, and webview console.
- macOS logs:
~/Library/Logs/eu.engazan.kimaitray/ - Linux logs:
~/.local/share/eu.engazan.kimaitray/logs/ - Windows logs:
%APPDATA%/eu.engazan.kimaitray/logs/
Frontend: Import logger from src/utils/logger.ts. Log level controlled by VITE_LOG_LEVEL.
import { logger } from "./utils/logger";
logger.info("Timer started");KimaiTray checks for updates on startup via GitHub Releases. When a new version is available, an update banner appears in the tray popup.
Setup for CI signing (one-time):
- The signing keys are already generated. The public key is in
tauri.conf.json->plugins.updater.pubkey - Add the private key content (
src-tauri/signer.key) as a GitHub Secret namedTAURI_SIGNING_PRIVATE_KEY - If the key has a password, also add
TAURI_SIGNING_PRIVATE_KEY_PASSWORD
The CI workflow automatically signs artifacts and generates latest.json on tagged releases.
To regenerate keys (invalidates all previous versions):
npx tauri signer generate -w ./src-tauri/signer.key --ciUpdate the pubkey in tauri.conf.json with the new public key.
See the Tauri Updater docs for details.
GitHub Actions workflow at .github/workflows/build.yml:
- Build & Release triggers on version tags (
v*) and manualworkflow_dispatchruns - Verification also runs on pushes to
mainand pull requests via.github/workflows/verify.yml - Cross-platform matrix: macOS (ARM + Intel), Linux, Windows
- On version tags (
v*), creates a draft GitHub Release with all platform artifacts
To release (replace X.Y.Z with the version from package.json):
git tag vX.Y.Z
git push origin vX.Y.ZThen review and publish the draft release on GitHub.
macOS: "app is damaged" or Gatekeeper warning Official release builds are signed and notarized. If macOS still quarantines a verified download, run:
xattr -cr /Applications/KimaiTray.appLinux: AppImage won't launch
chmod +x KimaiTray_*.AppImageWindows: WebView2 missing The NSIS installer bundles a WebView2 bootstrapper. If you built manually, install WebView2 Runtime.
Connection test says the server redirects to another address
KimaiTray does not follow redirects to a different address, so your API token is never sent anywhere else. Use the address the message suggests, typically https:// instead of http://.
Connection fails with 401 Your API token may have expired or lack permissions. Generate a new one in Kimai -> Profile -> API Access.
Idle detection not working on Linux
Idle detection uses xprintidle on X11 and the GNOME Mutter or KDE KIdleTime
D-Bus API on Wayland. Install xprintidle when using X11:
sudo apt install xprintidle- KimaiTray uses AppIndicator in Wayland sessions.
- GNOME may need an AppIndicator extension to display the tray icon.
- Cinnamon, Xfce and MATE use legacy GTK tray icons under X11.
- Tauri does not expose direct left/right clicks on tray icons. Therefore, left/right click both open the tray menu.
- As a workaround, middle-click opens the KimaiTray popup/window.