chroncal

A terminal calendar backed by SQLite with full iCal import/export and CalDAV sync. Launch the TUI for an interactive calendar, or use the CLI for scriptable access to events, todos, journals, alarms, free/busy queries, and calendars.
Built for people who live in the terminal and want their calendar data local, portable, and standards-compliant.
Features
- Interactive TUI with month, week, day, and agenda views
- Full CLI for scripting and automation
- iCal import/export with broad RFC 5545 coverage (VEVENT, VTODO, VJOURNAL, VALARM, VTIMEZONE)
- CalDAV sync with account-level collection discovery, selective calendar imports, per-calendar access metadata, conflict handling, at-a-glance sync health, and in-app Google re-authentication
- Free/busy queries from local data or remote CalDAV
VFREEBUSY reports
- Recurring events and todos via RRULE, RDATE, and EXDATE
- Recurring journals via RRULE, RDATE, and EXDATE
- Alarm notifications with desktop alerts, sound, and email
- Multiple calendars with color coding
- Full-text search across events, todos, and journals
- Attendees, attachments, comments, contacts, resources, and relations
- SQLite storage with automatic migrations
- Cross-platform (Linux, macOS, Windows)
- Two output formats: text for humans, JSON for scripts and LLMs
Installation
| Method |
Platforms |
Best for |
| Install script |
Linux, macOS, FreeBSD, OpenBSD |
Prebuilt binary users who want one command |
| Homebrew |
macOS, Linux |
Managed installs and upgrades |
| Go install |
Any platform with Go 1.25+ |
Go users and contributors |
| mise |
macOS, Linux |
Users who already manage tools with mise |
| Nix |
Linux, macOS |
nix run and profile installs |
| Scoop |
Windows |
Managed Windows installs |
| AUR |
Arch Linux |
yay/paru users (binary or source package) |
| Build from source |
Any platform with Go 1.25+ |
Contributors and packagers |
Install script (Linux / macOS / BSD)
No Go toolchain required. The installer detects your OS and architecture,
downloads the latest release archive, verifies it against checksums.txt, and
installs chroncal to /usr/local/bin when possible. If sudo is unavailable,
it falls back to ~/.local/bin.
curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | sh
Pin an exact version:
curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | env VERSION=v0.2.3 sh
Install somewhere else:
curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | env INSTALL_DIR="$HOME/.local/bin" sh
If your environment cannot run checksum tools, you can opt out with
VERIFY_CHECKSUM=0, but checksum verification is recommended.
Homebrew (macOS / Linux)
brew tap douglasdemoura/tap && brew install chroncal
Upgrade:
brew update && brew upgrade chroncal
Uninstall:
brew uninstall chroncal
chroncal ships as a Homebrew cask (prebuilt binary). On Linux this needs
Homebrew 4.5+ (April 2025), which added cask support. GoReleaser pushes the
cask to DouglasdeMoura/homebrew-tap automatically on each release (when the
HOMEBREW_TAP_TOKEN repository secret is configured); installs from the old
formula migrate to the cask on brew upgrade. If Homebrew is temporarily
unavailable for a new release, use the install script, mise, Nix, or
go install.
Go install
Requires Go 1.25+.
go install github.com/douglasdemoura/chroncal/cmd/chroncal@latest
Pin an exact release:
go install github.com/douglasdemoura/chroncal/cmd/chroncal@v0.2.3
The binary is usually installed to $(go env GOPATH)/bin/chroncal. Make sure
that directory is on your PATH.
mise
Install the latest GitHub release globally:
mise use -g github:DouglasdeMoura/chroncal
Pin an exact release globally:
mise use -g github:DouglasdeMoura/chroncal@0.2.3
If a just-published release does not appear yet, clear mise's GitHub release
cache first:
mise cache clear
mise ls-remote github:DouglasdeMoura/chroncal
Nix
Run without installing:
nix run github:DouglasdeMoura/chroncal
Install to your profile:
nix profile install github:DouglasdeMoura/chroncal
Build the package from a clone:
nix build .#chroncal
The flake exposes packages.default, packages.chroncal, apps.default, and a
developer shell with Go, GoReleaser, golangci-lint, govulncheck, and sqlc.
Scoop (Windows)
Windows users can install with:
scoop bucket add chroncal https://github.com/DouglasdeMoura/scoop-bucket
scoop install chroncal
Upgrade:
scoop update chroncal
The manifest is generated by GoReleaser and pushed to
DouglasdeMoura/scoop-bucket on each release.
Arch Linux AUR
Two AUR packages are published:
yay -S chroncal-bin # prebuilt Linux binary from GitHub Releases
yay -S chroncal # builds from source with your local Go toolchain
chroncal-bin is fastest for x86_64 and aarch64 users. chroncal is the right
choice when you want to build locally or use another Arch-supported CPU target.
Both packages are generated by GoReleaser (aurs and aur_sources in
.goreleaser.yml) and pushed to the AUR automatically on each release.
Build from source
git clone https://github.com/DouglasdeMoura/chroncal.git
cd chroncal
make build
./chroncal version
Run the test suite before sending changes:
go test ./...
Maintainer checklist
Before cutting a release:
- Make sure CI is green on
master.
- Bump the
VERSION file to the new version (no leading v) — the release
workflow refuses to run if it does not match the tag.
- Run
goreleaser check locally if GoReleaser is installed.
- Create a
v* tag and push it.
- Confirm the GitHub Release includes archives,
checksums.txt, and install snippets.
- Confirm the install script works for the new tag.
- Confirm
brew tap douglasdemoura/tap && brew install chroncal works after the Homebrew tap update.
- Confirm
scoop update chroncal sees the new Scoop manifest.
- Confirm the AUR packages were pushed: https://aur.archlinux.org/packages/chroncal and https://aur.archlinux.org/packages/chroncal-bin.
- Confirm
go install github.com/douglasdemoura/chroncal/cmd/chroncal@<tag> works.
- Confirm
mise use -g github:DouglasdeMoura/chroncal@<version> resolves the release.
If a release run fails after some assets were already uploaded, do not just
rerun it: GoReleaser refuses to overwrite existing release assets and the
rerun dies with already_exists before reaching the package publishers.
Delete the assets first, then rerun the failed job — the release object and
its notes are kept, and all channels get hashes consistent with the fresh
assets:
for a in $(gh release view vX.Y.Z --json assets --jq '.assets[].name'); do
gh release delete-asset vX.Y.Z "$a" -y
done
gh run rerun <run-id> --failed
Required repository secrets:
| Secret |
Purpose |
Required |
GITHUB_TOKEN |
Created automatically by GitHub Actions; publishes release assets |
Yes |
HOMEBREW_TAP_TOKEN |
Personal access token with write access to DouglasdeMoura/homebrew-tap |
No, but Homebrew updates are skipped without it |
SCOOP_BUCKET_TOKEN |
Personal access token with write access to DouglasdeMoura/scoop-bucket |
No, but Scoop updates fall back to HOMEBREW_TAP_TOKEN if it has access |
AUR_KEY |
Unencrypted SSH private key registered to the AUR maintainer account |
No, but AUR publishing is skipped without it |
The flake reads its version from the VERSION file, so Nix needs no
per-release edits. When go.mod or go.sum changes, the flake's vendorHash
must change with it — the Nix CI workflow builds the flake on any PR touching
those files and fails on a mismatch. To fix one, run nix build .#chroncal,
copy the got: hash into flake.nix, and rerun the build. The
update-flake-lock workflow opens a PR refreshing the flake inputs monthly,
manually, and after a successful release workflow.
GoReleaser publishes everything in one run — release assets, Homebrew
cask, Scoop manifest, and both AUR packages; no manual packaging steps
remain.
Future package channel: .deb and .rpm assets can be added later with
GoReleaser nFPM once the primary package manager channels are stable.
Quick start
# Launch the interactive TUI
chroncal
# Create a calendar
chroncal calendar create "Work" --color "#3B82F6"
# Add an event
chroncal event add "Team standup" --date 2026-04-01 --time 09:00 --duration 30m --calendar Work
# Add a recurring event
chroncal event add "Weekly review" --date 2026-04-04 --time 14:00 --duration 1h --rrule "FREQ=WEEKLY;BYDAY=FR"
# Add a todo
chroncal todo add "Write quarterly report" --due 2026-04-15 --priority 1
# Add a journal entry
chroncal journal add "Weekly notes" --date 2026-04-04 --calendar Work
# List upcoming events
chroncal event list --from 2026-04-01 --to 2026-04-30
# Search
chroncal event search "standup"
# Import from iCal
chroncal ical import calendar.ics --calendar Work
# Export to iCal
chroncal ical export --calendar Work -f work.ics
# Add one CalDAV account; every usable calendar is discovered, imported, and synced
CHRONCAL_PASSWORD="…" chroncal account add "Work server" \
--server https://cal.example.com/dav/ --username alice --auth basic
chroncal account calendars list "Work server"
# Run sync and inspect status
chroncal sync run --calendar Work
chroncal sync status
# Compute local free/busy for a range
chroncal freebusy --calendar Work --from 2026-04-01 --to 2026-04-30
CLI reference
Events
chroncal event list [--from DATE] [--to DATE] [--calendar NAME] [--status STATUS] [--include-deleted]
chroncal event get <id|uid> [--recurrence-id ID]
chroncal event search <query> [--calendar NAME] [--from DATE] [--to DATE] [--status STATUS]
chroncal event add "<title>" [flags]
chroncal event update <id|uid> [flags] [--recurrence-id ID]
chroncal event delete <id|uid> [--recurrence-id ID] [--yes]
chroncal event restore <id|uid>
chroncal event purge <id> [--yes]
chroncal event purge-deleted [--older-than DURATION] [--yes]
Event flags: --date, --time, --end-time, --duration, --timezone, --location, --description, --calendar, --status, --class, --transparency, --priority, --url, --categories, --geo, --rrule, --exdate, --rdate, --attach, --alarm, --attendee, --organizer, --contact, --resource, --comment, --related-to
Todos
chroncal todo list [--calendar NAME] [--status STATUS] [--all] [--from DATE] [--to DATE] [--include-deleted]
chroncal todo get <id|uid> [--recurrence-id ID]
chroncal todo search <query> [--calendar NAME] [--status STATUS] [--completed] [--incomplete]
chroncal todo add "<summary>" [flags]
chroncal todo update <id|uid> [flags] [--recurrence-id ID]
chroncal todo complete <id|uid> [--recurrence-id ID]
chroncal todo delete <id|uid> [--recurrence-id ID] [--yes]
chroncal todo restore <id|uid>
chroncal todo purge <id> [--yes]
chroncal todo purge-deleted [--older-than DURATION] [--yes]
Todo flags: --due, --start, --duration, --location, --description, --calendar, --status, --progress, --class, --priority, --url, --categories, --geo, --rrule, --exdate, --rdate, --attach, --alarm, --attendee, --organizer, --contact, --resource, --comment, --related-to
Journals
chroncal journal list [--from DATE] [--to DATE] [--calendar NAME] [--status STATUS] [--all] [--include-deleted]
chroncal journal get <id|uid> [--recurrence-id ID]
chroncal journal search <query> [--calendar NAME] [--from DATE] [--to DATE] [--status STATUS]
chroncal journal add "<summary>" [flags]
chroncal journal update <id|uid> [flags] [--recurrence-id ID]
chroncal journal delete <id|uid> [--recurrence-id ID] [--yes]
chroncal journal restore <id|uid>
chroncal journal purge <id> [--yes]
chroncal journal purge-deleted [--older-than DURATION] [--yes]
Journal flags: --date, --description, --calendar, --status, --class, --url, --categories, --rrule, --exdate, --rdate, --attach, --attendee, --organizer, --contact, --comment, --related-to
CalDAV accounts
chroncal account add "<name>" --server URL --username USER [--auth {basic,bearer,oauth2}] [--oauth-client-id ID] [--allow-insecure]
chroncal account get <name|id>
chroncal account list
chroncal account update <name|id> --name NAME
chroncal account calendars list <name|id>
chroncal account calendars add <name|id> (--calendar NAME_OR_URL ... | --all)
chroncal account calendars set <name|id> (--calendar NAME_OR_URL ... | --all | --none) [--default ID_OR_NAME_OR_URL] [--yes]
chroncal account remove <name|id> [--yes]
An account stores one credential and discovers every CalDAV calendar collection
available to it. account add imports every collection that supports VEVENT,
VTODO, or VJOURNAL and completes an initial sync before returning.
account calendars list refreshes the complete inventory, including already
selected, read-only, unsupported, and no-longer-available collections.
account calendars add remains additive and idempotent for collections exposed
later: use --calendar repeatedly to add chosen collections, or --all to add
every usable collection. Newly added collections are synced before the command
returns.
account calendars set replaces the exact local selection. Deselected
calendars and their downloaded data are deleted from Chroncal after
confirmation, but the remote collections are never deleted. If the current
default calendar is deselected, pass --default with a retained local calendar
or newly selected remote collection. Newly selected collections are synced
before the command returns. Selecting none also removes the now-empty account
and credential. By contrast, account remove deletes the credential and
remote links while preserving downloaded calendars as local copies.
Read-only collections are available for local browsing and pull-only sync;
Chroncal does not send metadata changes, resources, or tombstones to them.
Calendars
chroncal calendar list
chroncal calendar get <id>
chroncal calendar create "<name>" [--color HEX] [--description TEXT] [--email ADDR] [remote flags]
chroncal calendar update <id|name> [--name NAME] [--color HEX] [--description TEXT] [--email ADDR] [remote flags] [--disconnect-remote]
chroncal calendar delete <id>
chroncal calendar set-default <id|name>
set-default promotes a calendar to the default; new events, todos, and
journals without an explicit --calendar land there. Exactly one calendar
is default at any time.
Remote flags can still be used with create or update to attach one local
calendar directly to a known CalDAV collection. Prefer chroncal account when
one credential exposes multiple collections:
--remote-url <href>
--username <user>
--auth {basic,bearer,oauth2}
--oauth-client-id <id>
--allow-insecure
For scripted setup, credentials are read from environment variables instead of
interactive prompts: CHRONCAL_PASSWORD (basic), CHRONCAL_BEARER_TOKEN
(bearer), and GOOGLE_CLIENT_SECRET (oauth2). They are intentionally not
accepted as CLI flags.
Pass --disconnect-remote on update to remove a calendar's remote link.
iCal import/export
chroncal ical import <file.ics> [--calendar NAME]
chroncal ical export [--calendar NAME] [--from DATE] [--to DATE] [--category TEXT] [--status TEXT] [-f FILE] [--events] [--todos] [--journals]
Imports are bounded to reduce resource exhaustion from untrusted calendar
data. chroncal ical import rejects .ics payloads larger than 8 MiB and
inline base64 attachments larger than 1 MiB decoded.
Sync
chroncal sync run [--calendar NAME] [--conflict MODE]
chroncal sync status
chroncal sync conflicts
chroncal sync resolve <id> --pick {local,server}
chroncal sync reset [--calendar NAME]
Sync operates on each connected calendar independently. Calendars sharing an
account reuse its credential and sync serially; distinct accounts can sync
concurrently. Use chroncal account calendars list and
chroncal account calendars add to inspect and import remote collections, or
the calendar remote flags above when attaching one already-known URL directly.
Google Calendar via CalDAV
Google Calendar requires OAuth 2.0 and only exposes VEVENT over CalDAV.
Credentials are stored in the OS keyring by default. chroncal uses OAuth PKCE
for installed-app flows, but Google's token endpoint also requires the Desktop
client's client_secret even with PKCE — so both the client ID and the
client secret are needed at setup time. Refresh tokens (and the client secret)
are persisted to the keyring after the first authorization, so subsequent
syncs run unattended.
Plaintext fallback caveat. On systems without an OS keyring, the
--allow-plaintext fallback writes credentials (including the Google
client_secret) to a 0600-mode file under ~/.config/chroncal/. The mode
protects against casual cat, but not against backups, filesystem
snapshots, or sync tools (Dropbox, iCloud, rsync) that ignore Unix
permissions. Install a keyring provider (e.g. libsecret + gnome-keyring
on Linux) before using OAuth on shared or backed-up hosts.
-
Create a Desktop app OAuth client in the Google Cloud Console. Note both the client ID and the client secret.
-
Add https://www.googleapis.com/auth/calendar to the OAuth consent screen, and add yourself as a Test user while it's in Testing mode.
-
Enable both APIs on the project — they are separate services:
gcloud services enable calendar-json.googleapis.com --project=YOUR_PROJECT
gcloud services enable caldav.googleapis.com --project=YOUR_PROJECT
The Calendar JSON API alone is not enough; the CalDAV endpoint will return
403 accessNotConfigured until caldav.googleapis.com is enabled.
-
Add the Google account. Provide the client secret via the
GOOGLE_CLIENT_SECRET environment variable, or let chroncal prompt for it
interactively (echo disabled). The secret is intentionally not accepted
as a CLI flag — flags leak via process listings and shell history.
GOOGLE_CLIENT_SECRET="GOCSPX-…" chroncal account add "Google" \
--server "https://apidata.googleusercontent.com/caldav" \
--username "you@example.com" \
--auth oauth2 \
--oauth-client-id "YOUR_CLIENT_ID.apps.googleusercontent.com"
-
The add command imports and initially syncs every usable calendar in the
Google CalendarList, including delegated, family, holiday, and subscription
calendars. Inspect the resulting inventory:
chroncal account calendars list "Google"
-
Run sync and inspect status:
chroncal sync run
chroncal sync status
To connect from the TUI, press C (Shift+C) or choose Calendars in
the command palette (/ or Ctrl+K), activate the bottom + Add action,
then choose Add Account…. Chroncal discovers, imports, and initially syncs
every usable collection exposed by that sign-in without a second selection
step. Unsupported collections are ignored; if discovery finds no usable
calendars, Chroncal removes the newly created account. Browser authorization
runs without leaving the app. The same anchored + Add menu creates local
calendars and imports iCal files; remote calendars belong to an account rather
than carrying separate credentials.
Account maintenance has one entry point. In Calendars, select a remote
account heading and press Enter; selecting an account heading in the sidebar
also opens that inspector. It shows the provider, server URL, login identity,
calendar count, and sync warnings, with actions to sync now, add or remove
calendars, rename the account, sign in again for OAuth accounts, or remove the
account. Manage Calendars… replaces the inspector with the discovered
collection list while keeping the calendar hierarchy mounted. Calendars
already in Chroncal start checked, and unchecking one removes its local copy
after destructive confirmation. Removing every collection also removes the
empty account and its stored credential. Remove Account… instead removes
the remote links and stored sign-in while preserving downloaded calendars as
local calendars. Calendar metadata editing is likewise inline: name, color,
description, owner email, default status, and quiet account/sync context.
Google limitations:
- Google CalDAV only supports
VEVENT. Use Nextcloud, Radicale, or Fastmail for VTODO and VJOURNAL.
- Google paginates large
sync-collection REPORT responses (RFC 6578 §3.6),
returning a 507 marker plus a continuation token; chroncal follows the
pages and applies the union, so the initial sync of a big calendar pulls
every event.
Free/busy
chroncal freebusy --calendar NAME --from DATE_OR_RFC3339 --to DATE_OR_RFC3339 [--remote] [--format {text,ical}]
Without --remote, freebusy computes busy time from local recurring data. With --remote, it sends a CalDAV free-busy report to the linked remote calendar.
Alarms
chroncal alarm check # Fire due alarms (one-shot)
chroncal alarm list # List unacknowledged alarms
chroncal alarm dismiss <state-id> # Dismiss a fired alarm
chroncal alarm snooze <state-id> [--for DURATION] [--until-start]
chroncal alarm daemon [--interval DURATION] # Run alarm checks in a loop (default: 30s)
chroncal alarm missed [--days N] # Show missed alarms (default lookback: 7 days)
Attach alarms when creating or updating events and todos with --alarm
(repeatable). The format is [ACTION:]TRIGGER[:DESC:REPEAT:DURATION:RELATED:ATTENDEES],
where ACTION is DISPLAY (default), EMAIL, or AUDIO, and TRIGGER is an
RFC 5545 duration relative to the start (-PT15M = 15 minutes before) or an
RFC 3339 absolute time. Only the trigger is required:
chroncal event add "Standup" --date 2026-06-15 --time 09:00 --alarm "-PT15M"
chroncal event add "Release" --date 2026-06-15 --time 14:00 --alarm "DISPLAY:-PT30M::3:PT5M" # repeat 3x every 5 min
See chroncal event add --help for the extended fields.
Getting notified
Storing an alarm is not enough by itself — something has to run
chroncal alarm check periodically to fire it. Two options:
- Background service (recommended):
chroncal service install sets up a
user-level systemd timer (Linux), launchd agent (macOS), or Scheduled Task
(Windows) that ticks every minute. No terminal needs to stay open.
- Foreground loop:
chroncal alarm daemon checks every 30 seconds until
interrupted. Useful for testing or tmux-resident setups.
With either in place, a DISPLAY alarm pops a desktop notification at trigger
time (15 minutes before the event in the example above). AUDIO alarms also
play a sound, and EMAIL alarms send mail — see
SMTP (for email alarms) and the
security.allow_unsafe_alarm_* config options. If nothing appears, check
Desktop notification backends.
Service (alarm background service)
chroncal service install # Install service; syncs CalDAV every 15m by default
chroncal service run # Run one background-service cycle now (alias: tick)
chroncal service uninstall
chroncal service status
The installed unit runs chroncal service run every minute, which fires due
alarms and also runs CalDAV sync when the configured sync interval is due.
chroncal service install defaults that interval to 15 minutes; pass a
different interval to tune it:
chroncal service install --sync-interval 5m
Set sync.interval in config.toml to change the default used by future
installs, or pass --sync-interval "" when installing to disable background
sync while keeping alarm checks.
Global flags
All commands accept -o, --output {text,json} (default: text).
Scripting and LLM use
The CLI is meant to be driven from shells and language models, not just typed by hand. The agent-friendly path:
-
Pass -o json (or --output json) on every read/write command. The shape is stable, omits empty optional fields, and write commands return the new row so a script can capture the id / uid. This applies to read commands too — sync status, sync conflicts, freebusy, and alarm list all emit JSON arrays/objects under -o json; an empty result is [], not prose.
-
Timestamps in JSON are RFC 3339 UTC with a Z suffix (2026-04-21T13:00:00Z). Text mode prints in your local timezone; only JSON normalizes to UTC so cross-machine comparisons stay honest.
-
Check the exit code. 0 on success, non-zero on any failure. Errors go to stderr, never stdout, so cmd -o json | jq … is safe — on failure stdout is empty.
-
Errors honor -o json. They emit one JSON object on stderr with a code field:
{"code": "not_found", "error": "event 999 not found"}
Codes are not_found, invalid_input, aborted, or error (catch-all). The error field is the user-facing message; internal call-chain prefixes (e.g. get event:) are stripped, so dispatch on code and surface error directly.
-
References accept either the numeric id or the string uid. Recurring overrides additionally take --recurrence-id <RFC3339> to target a single instance.
-
Dates are YYYY-MM-DD. Times are HH:MM local unless a command accepts --timezone. Durations are Go-style (30m, 1h30m) and some flags also accept RFC 5545 (PT1H30M).
-
If you want plain text (no JSON), pass --compact for one line per row, suitable for grep, awk, and friends. Available on event list, event search, todo list, journal list, and calendar list.
# Round-trip: create then read back the new event
uid=$(chroncal event add "Demo" --date 2026-06-01 --time 09:00 --output json | jq -r .uid)
chroncal event get "$uid" --output json
Destructive operations
event delete, todo delete, journal delete, and calendar delete prompt
for confirmation before destroying data. The prompt is bypassed when any of
the following is true, so scripted use keeps working:
--yes / -y is passed
CHRONCAL_ASSUME_YES=1 is set in the environment
--output is json (machine-readable implies scripted)
In a non-interactive shell without any of the above, the command refuses
rather than silently auto-confirming.
Soft-delete + restore
Events, todos, and journals are soft-deleted by default. The row stays in
the database with a deleted_at timestamp so you can restore it later.
After a retention window (default 30 days) a background purge hard-deletes
rows older than the cutoff.
chroncal event restore <id|uid>
chroncal todo restore <id|uid>
chroncal journal restore <id|uid>
chroncal event purge-deleted [--older-than DURATION] [--yes]
chroncal todo purge-deleted [--older-than DURATION] [--yes]
chroncal journal purge-deleted [--older-than DURATION] [--yes]
List soft-deleted candidates with --include-deleted on the matching
list command. In the TUI, press D to open the mixed "Recently deleted"
dialog which spans all three resource types; r restores the cursor row,
x purges it, and space toggles multi-select so you can bulk restore or
bulk purge.
TUI
Run chroncal with no arguments to launch the interactive terminal interface.
Views: month, week, day, agenda. Switch with m, w, d, a.
The TUI supports creating, editing, viewing, and deleting events, with full
details including alarms, attendees, and attachments. Use u to undo a
delete. The sidebar uses quiet, collapsible account sections, including a
separate Local section. Active calendars show an item-colored filled ●
circle; hidden calendars show an outline ○ circle. Space or clicking the
circle toggles visibility. Calendar colors remain on calendar rows rather than
account headings. On an account heading, Left/Right collapse or expand,
Enter opens Account settings, and Shift+Up/Shift+Down persistently
reorder complete remote-account sections while keeping Local first. The
same reorder keys move calendars only within their own account. Hidden state
and scrolling operate on calendar rows rather than group headings. Read-only
imported calendars remain browsable but reject event edits and deletes.
Calendars opens an account-grouped manager with the calendar hierarchy on
the left and an inspector on the right. Calendar rows keep visibility (a
checkbox) separate from identity (the calendar-color dot); Space or the
checkbox toggles the same visibility state shown by sidebar circles. Account
headings collapse with Left/Right and open account settings with Enter. The
root inspector keeps a calendar's Edit… action or an account's Account
Settings… action at the bottom. Enter or a calendar-row body click opens
metadata, export, default-calendar, and delete controls while the hierarchy
remains mounted. Linked calendar details drill into account settings without
losing unsaved calendar edits.
The source list has a bottom + Add action. It opens an anchored menu for
New Calendar…, Add Account…, and Import Calendar File…. Account
connection signs in once and adds every usable remote calendar; iCal import
retains its preview and compatible-destination selection. Todo and journal
management live in the CLI for now.
Sync health is visible at a glance: a calendar whose last sync failed shows
a ⚠ next to it in the sidebar, and opening it explains why (and offers a
fix). See Google Calendar via CalDAV for the
OAuth flow.
Configuration
Configuration is loaded in order of precedence:
- Environment variables (prefix
CHRONCAL_, e.g., CHRONCAL_DB)
- Config file at
$XDG_CONFIG_HOME/chroncal/config.toml (or ~/.config/chroncal/config.toml)
- Defaults
Config keys
| Key |
Description |
Default |
db |
Path to SQLite database |
$XDG_DATA_HOME/chroncal/chroncal.db |
product_id |
iCal PRODID for export |
-//chroncal//chroncal//EN |
ui.theme |
Built-in TUI theme name under internal/tui/themes/ (system or default; see TUI themes) |
system |
soft_delete.purge_days |
Days to retain soft-deleted rows before the background purge. 0 disables automatic purging. |
30 |
sync.interval |
Minimum interval between background CalDAV syncs performed by chroncal service run; service install defaults to 15m when this is unset |
(unset — no sync unless the installed service sets CHRONCAL_SYNC_INTERVAL) |
sync.conflict_strategy |
Default conflict-resolution mode when sync run --conflict is not passed |
(unset) |
security.allow_unsafe_alarm_audio_attach |
Allow AUDIO alarms to attach arbitrary URIs. Off by default. |
false |
security.allow_unsafe_alarm_email_attendees |
Allow EMAIL alarms to send to unverified attendee addresses. Off by default. |
false |
Every key is also available as an environment variable (CHRONCAL_ prefix,
dots become underscores): for example CHRONCAL_UI_THEME,
CHRONCAL_SOFT_DELETE_PURGE_DAYS, CHRONCAL_SYNC_INTERVAL.
TUI themes
The TUI ships two built-in themes:
system (default) — chrome (text, borders, surfaces, dim text)
inherits the terminal's ANSI palette (color0..15), so the TUI follows
themed terminal setups like
Omarchy,
Catppuccin, Gruvbox, Tokyo Night, or anything that paints the standard
16 colors in your terminal config. The row-selection highlight adapts to
the live terminal background via OSC 11. Accent colors (buttons,
badges, "today", errors) sit on a fixed Dracula palette so the
text-on-accent contrast stays guaranteed across themes.
default — fixed designer palette (violet primary, sky secondary,
emerald accent) with light/dark variants. Ignores the terminal palette.
Pick this if you don't theme your terminal or want the same look on
every machine.
Override with ui.theme = "default" in config.toml or
CHRONCAL_UI_THEME=default.
SMTP (for email alarms)
Configure via environment variables or config.toml:
[smtp]
host = "smtp.example.com"
port = 587
username = "you@example.com"
password = "app-password"
from = "you@example.com"
Or via environment: CHRONCAL_SMTP_HOST, CHRONCAL_SMTP_PORT, CHRONCAL_SMTP_USERNAME, CHRONCAL_SMTP_PASSWORD, CHRONCAL_SMTP_FROM.
Desktop notification backends
chroncal alarm check records fired alarms even in headless environments, but
DISPLAY and AUDIO notifications still need an OS notification backend. On
Linux that means a D-Bus notification daemon — the one built into GNOME or KDE,
or a standalone daemon such as mako or dunst on lighter setups. On macOS
and Windows (toast notifications), they work out of the box. On minimal
containers or SSH sessions without desktop tooling, notification delivery can
fail even though the alarm is detected and listed by chroncal alarm list.
Sound playback on Linux uses paplay (with aplay as fallback) and macOS uses
afplay; Windows has no sound-file playback, so AUDIO alarms show the toast
with a system beep instead.
Data storage
The database is a single SQLite file:
- Linux:
~/.local/share/chroncal/chroncal.db
- macOS:
~/Library/Application Support/chroncal/chroncal.db
Override with CHRONCAL_DB or the db config key.
Migrations run automatically on startup. WAL mode is enabled for better concurrency.
iCal compatibility
chroncal aims for complete RFC 5545 compliance. Current coverage:
- VEVENT: 30/31 properties (RSTATUS excluded, iTIP-only)
- VTODO: 31/32 properties (RSTATUS excluded, iTIP-only)
- VJOURNAL: core component import/export and CalDAV sync support
- VALARM: 7/7 properties, plus RFC 9074 UID support
- ATTENDEE/ORGANIZER: all 11 parameters
- VTIMEZONE: round-trip preservation
- VFREEBUSY: local compute/export plus remote CalDAV query support
Import from Google Calendar, Apple Calendar, Thunderbird, or any RFC 5545-compliant source. Export produces standards-compliant .ics files.
For safety, chroncal applies size limits to untrusted imports and inline
attachments before storing them locally or sending them to linked CalDAV
servers.
CalDAV interoperability
Live interoperability QA has been run against Nextcloud CalDAV with:
VEVENT: create, update, delete, recurrence, timezone, conflict handling
VTODO: create, update, delete, recurrence, duration/start semantics, conflict handling
VJOURNAL: create, update, delete, recurrence, conflict handling
VALARM: round-trip sync on VEVENT and VTODO, including repeated alarms
Nextcloud does not expose a VJOURNAL collection by default, but chroncal
interoperates cleanly with a dedicated CalDAV calendar created with
supported-calendar-component-set = VJOURNAL.
Desktop icon
chroncal ships an application icon under assets/: a vector master
(chroncal.svg) plus rasterized PNGs from 16px to 512px. Being a terminal app,
chroncal is normally launched by typing chroncal (or a shell alias), exactly
like lazygit or lazydocker — the icon is there for when you'd rather give it
a graphical launcher tile.
Omarchy
Omarchy has a built-in command for turning a terminal
app into a launcher tile, so you don't have to write a .desktop file by hand.
Point it at chroncal's icon and you're done — find it afterwards with
SUPER + SPACE:
omarchy tui install chroncal chroncal float \
https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/assets/chroncal-512.png
The four arguments are name command window-style icon-url. float opens
chroncal in a centered floating window (Omarchy's TUI.float window rule); pass
tile instead to have it tile like a normal window. The launcher runs chroncal
through xdg-terminal-exec, so it opens in whatever terminal you've configured —
nothing is hardcoded. The icon is downloaded into
~/.local/share/applications/icons/, so it keeps working after the command
finishes.
If you have the repo cloned, point at the local vector master instead for a
crisp icon at any size (it's referenced in place, so keep the file around):
omarchy tui install chroncal chroncal float "$PWD/assets/chroncal.svg"
Remove the launcher later with omarchy tui remove chroncal.
Other launchers (walker, rofi, GNOME, KDE)
On any other freedesktop setup, register the icon with a .desktop entry by
hand:
# Install the icon into your user icon theme
install -Dm644 assets/chroncal.svg \
~/.local/share/icons/hicolor/scalable/apps/chroncal.svg
# Create a launcher entry that opens chroncal in your terminal
cat > ~/.local/share/applications/chroncal.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=chroncal
Comment=Terminal calendar
Exec=alacritty -e chroncal
Terminal=false
Icon=chroncal
Categories=Utility;Calendar;Office;
EOF
Swap alacritty for your terminal of choice (ghostty, kitty, foot, …).
The icon's deep petrol tile is tuned to keep its silhouette against dark
wallpapers like the ones Omarchy ships with, so it stays legible in the
launcher rather than melting into the background.
Contributing
See CONTRIBUTING.md for development setup, testing, and code conventions.
Links
License
MIT - Douglas de Moura