Use the Kimai CLI from KosmoKrator to call Kimai tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Kimai can be configured headlessly with `kosmokrator integrations:configure kimai`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure kimai --set access_token="$KIMAI_ACCESS_TOKEN" --set url="$KIMAI_URL" --enable --read allow --write ask --jsonkosmokrator integrations:doctor kimai --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Bearer tokenbearer_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
KIMAI_ACCESS_TOKEN
Secret secret
yes
API Token
url
KIMAI_URL
URL url
yes
Kimai URL
Call Kimai Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Kimai.
kimai.kimai_list_timesheets
Read read
List time-tracking entries from Kimai. Supports filtering by user, project, date range, and state. Returns paginated results with timesheet details including duration, description, and associated project/activity.
Get details of a specific timesheet entry from Kimai. Returns the full timesheet record including begin/end timestamps, duration, description, project, activity, and user information.
Create a new time-tracking entry in Kimai. Requires a begin timestamp and at least a project ID. Optionally specify an end time, activity, and description to categorize the time entry.
List projects from Kimai. Supports filtering by customer and visibility. Returns project details including name, customer, budget, and time budget information.
Get details of a specific project from Kimai. Returns the full project record including name, customer, comment, budget, time budget, and visibility status.
List customers from Kimai. Supports filtering by visibility. Returns customer details including name, company, contact information, and associated project count.
Get the profile of the currently authenticated Kimai user. Returns user details including username, display name, email, timezone, and language preferences.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
kimai.kimai_list_timesheets
List time-tracking entries from Kimai. Supports filtering by user, project, date range, and state. Returns paginated results with timesheet details including duration, description, and associated project/activity.
Filter start date (ISO 8601, e.g., "2025-01-01T00:00:00"). Only entries starting on or after this date.
end
string
no
Filter end date (ISO 8601, e.g., "2025-01-31T23:59:59"). Only entries starting before or on this date.
state
string
no
Filter by state: "running" for active timers, "stopped" for completed entries. Omit for all.
kimai.kimai_get_timesheet
Get details of a specific timesheet entry from Kimai. Returns the full timesheet record including begin/end timestamps, duration, description, project, activity, and user information.
Create a new time-tracking entry in Kimai. Requires a begin timestamp and at least a project ID. Optionally specify an end time, activity, and description to categorize the time entry.
Start time in ISO 8601 format (e.g., "2025-01-15T09:00:00").
end
string
no
End time in ISO 8601 format (e.g., "2025-01-15T17:00:00"). Omit to start a running timer.
project
integer
yes
The project ID to associate the time entry with.
activity
integer
no
The activity ID to categorize the time entry (e.g., "Development", "Meeting").
description
string
no
A description of the work performed during this time entry.
kimai.kimai_list_projects
List projects from Kimai. Supports filtering by customer and visibility. Returns project details including name, customer, budget, and time budget information.
Filter by customer ID to list only projects for a specific customer.
visible
integer
no
Visibility filter: 1 for visible projects only, 2 for hidden, 3 for all.
kimai.kimai_get_project
Get details of a specific project from Kimai. Returns the full project record including name, customer, comment, budget, time budget, and visibility status.
List customers from Kimai. Supports filtering by visibility. Returns customer details including name, company, contact information, and associated project count.
Visibility filter: 1 for visible customers only, 2 for hidden, 3 for all.
kimai.kimai_get_current_user
Get the profile of the currently authenticated Kimai user. Returns user details including username, display name, email, timezone, and language preferences.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.