Skip to content

import

The import command reads the detailed report of another time tracker, saved as CSV, and writes its finished days as kasl’s own: a workday each, the gaps between entries as pauses, and the entries’ descriptions as tasks, tagged with their projects. Your first week of kasl then has weeks before it to be compared with.

Terminal window
kasl import <FILE> [--dry-run] [--user NAME] [--date-order dmy|mdy]
  • <FILE>: The export to read - a detailed report saved as CSV by Toggl Track or Clockify.
  • --dry-run: Show the days the import would write, one row each, and write nothing.
  • --user <NAME>: Whose entries to import from a team’s report, by the name or the email the file has. A file with the entries of more than one person is refused without it, naming them.
  • --date-order <dmy|mdy>: Which number comes first in dates like 03/11/2026. Asked for only when every date in the file reads both ways; a file with a 25/11/2026 or an 11/25/2026 in it says so itself.
  • Toggl Track: Reports, then the Detailed report; pick the dates and export it as CSV.
  • Clockify: Reports, then the Detailed report; pick the dates and export it as CSV.

A summary report has no times of day in it and is refused: kasl needs to know when each entry started and ended. Times are read as they are written, in the time zone the tracker exported them in - your own, as long as the tracker’s profile and this machine agree.

Terminal window
$ kasl import toggl-detailed.csv --dry-run
Read 11 entries of Robin Vale from the Toggl Track export, November 25 to December 1, 2026.
+----------------+-------+-------+-------+--------+-------+
| DATE | START | END | WORK | PAUSES | TASKS |
+----------------+-------+-------+-------+--------+-------+
| Wed 2026-11-25 | 09:04 | 17:48 | 07:59 | 3 | 3 |
| Thu 2026-11-26 | 09:15 | 17:35 | 07:40 | 2 | 2 |
| Fri 2026-11-27 | 08:58 | 16:20 | 06:27 | 2 | 3 |
+----------------+-------+-------+-------+--------+-------+
Would import 3 days with 5 tasks and 7 new tags.
ℹ️ Left out today: a day is imported once it is over, and today's belongs to the watcher.
Nothing was written: run it again without --dry-run to import.

WORK is what report will count on the day once it is written - the same rule, so the preview and the report agree.

Terminal window
$ kasl import toggl-detailed.csv
Read 11 entries of Robin Vale from the Toggl Track export, November 25 to December 1, 2026.
✅ Imported 3 days with 5 tasks and 7 new tags.
ℹ️ Left out today: a day is imported once it is over, and today's belongs to the watcher.
See them with `kasl sum --month 2026-11` and `kasl report --date 2026-11-27`.

Run it again, or on a longer export of the same tracker, and only the days kasl does not hold yet are written:

Terminal window
$ kasl import toggl-detailed.csv
Read 11 entries of Robin Vale from the Toggl Track export, November 25 to December 1, 2026.
ℹ️ Left out 3 days kasl already holds records of: November 25, November 26, November 27.
ℹ️ Left out today: a day is imported once it is over, and today's belongs to the watcher.
Nothing to import: kasl holds every finished day in the file already.
Terminal window
# One person's entries from a team's report
kasl import clockify-team.csv --user robin@example.com
# Dates such as 03/11/2026 throughout, day first
kasl import clockify.csv --date-order dmy
  • A workday for each date with entries, from the first entry’s start to the last one’s end. An entry belongs to the date it started on, so one past midnight ends its day the next morning.
  • Pauses for the gaps between entries, as long as the pause the watcher would have noticed (monitor.pause_threshold, a minute unless changed); a shorter gap is work, as it would have been on a day kasl watched. From there the day is judged as any day is: the long pauses slice it into intervals, the short ones count against its productivity. Overlapping entries are one stretch of work.
  • Tasks: one for each description in each project, with a row on every day it has entries - the chain task shows - done, at the time its first entry of the day began. An entry with no description is named by its tracker task, or else its project; one with none of them adds its time to the day and no task.
  • Tags: a task’s project, and the tags of its entries. Tags kasl already has are reused by name; new ones are made without a colour.

The client, the billable flag, rates and amounts are not read, and neither are the duration columns: the start and the end already say it.

Terminal window
$ kasl report --date 2026-11-26
Report for November 26, 2026
+--------------+-------+-------+----------+
| ID | START | END | DURATION |
+--------------+-------+-------+----------+
| 1 | 09:15 | 12:30 | 03:15 |
| 2 | 13:10 | 17:35 | 04:25 |
| | | | |
| TOTAL | | | 07:40 |
| PRODUCTIVITY | | | 98.7% |
+--------------+-------+-------+----------+
Tasks:
+---+----+---------+-----------------------------+------+---------------+
| # | ID | TASK ID | NAME | DONE | TAGS |
+---+----+---------+-----------------------------+------+---------------+
| 1 | 6 | 5 | Retry uploads that time out | 100% | API, backend |
| 2 | 7 | 7 | Sprint planning | 100% | Internal, me… |
+---+----+---------+-----------------------------+------+---------------+
ℹ️ Imported from Toggl Track: the pauses are the gaps between its entries.

Nothing is guessed, and everything left out is said:

  • Today and later: a day is imported once it is over; today’s belongs to the watcher.
  • Days kasl already holds anything of - a workday, a pause, a task. They stay as kasl has them, so no day is half kasl’s and half another tracker’s, and an import run twice adds nothing the second time.
  • Entries still running, with no end yet, and entries of no length.
  • Columns by name, in any order and letter case: Start date, Start time, End date, End time, Description, Project, Task, Tags, and User (or Member) and Email for a team’s report. A file without a start date, a start time or an end time is refused, naming the column.
  • ,, ; or a tab between fields - a spreadsheet saving CSV in a European locale writes ;.
  • UTF-8, with or without a byte order mark, or UTF-16 with one. A file in another encoding is refused; save it again as CSV UTF-8.
  • Dates year first (2026-11-03), day first between dots, and with slashes or dashes in either order (11/03/2026, 03/11/2026); times 14:05, 14:05:30 and 2:05 PM.

Into the same tables as the days kasl records, so report, sum, standup, export and kasl mcp read them as they read any day. Each imported workday remembers the import it came from: the report says so under the tasks, and kasl report --json carries it as imported_from (toggl or clockify). Imported days are not sent anywhere by the import itself - not to the reporting API, not to a team server.

  • report - One day, imported or recorded: kasl report --date 2026-11-26
  • sum - A month of them: kasl sum --month 2026-11, kasl sum --last
  • demo - Try kasl on invented weeks instead
  • watch - Record the days from here on
  • export - The way out: CSV, JSON and Excel