pimalaya/comodoro
À propos
CLI to manage timers
Outils de développementWhat you can do
- Shared timer: one server owns it, any number of clients drive it and watch it
- Status bars without polling: comodoro watch prints the timer on every change the server pushes
- Local socket and TCP: either transport, or both at once
- Open protocol: plain JSON-RPC 2.0, drivable from any language
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original:timer_clock: Comodoro

CLI to manage timers
$ comodoro start --json
{
"schedule": {
"cycles": [
{ "name": "Work", "duration": 1500 },
{ "name": "Rest", "duration": 300 }
],
"loops": null
},
"state": "running",
"cycle": { "name": "Work", "duration": 1500 },
"startedAt": "2026-11-21T09:00:00Z",
"elapsed": 0
}
Table of contents
Features
- Shared timer: one server owns it, any number of clients drive it and watch it
- Status bars without polling:
comodoro watchprints the timer on every change the server pushes - Local socket and TCP: either transport, or both at once
- Open protocol: plain JSON-RPC 2.0, drivable from any language
- Any cycles: Pomodoro or any named durations, looping forever or a fixed number of times
- Hooks: a command, a desktop notification or both on any timer event, the cycle given as variables
- REPL running commands one per line, and MCP server serving the timer to an AI agent
- JSON output of every command, described by
comodoro json-schema
Installation
Debian, Ubuntu
Comodoro is not in the official repositories yet, but the signed APT repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions. Add the repository once:
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://pkg.pimalaya.org/pimalaya.asc | sudo tee /etc/apt/keyrings/pimalaya.asc >/dev/null
sudo tee /etc/apt/sources.list.d/pimalaya.sources >/dev/null <<EOF
Types: deb
URIs: https://pkg.pimalaya.org/apt
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/pimalaya.asc
EOF
sudo apt update
Then install Comodoro:
sudo apt install comodoro
Fedora, RHEL, Rocky Linux, AlmaLinux
Comodoro is not in the official repositories yet, but the signed DNF repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions:
sudo curl -fsSL -o /etc/yum.repos.d/pimalaya.repo https://pkg.pimalaya.org/pimalaya.repo
sudo dnf install comodoro
Homebrew (macOS, Linux)
Comodoro is not in homebrew-core yet, but the pimalaya/tap formula installs the latest release with its man pages and shell completions:
brew install pimalaya/tap/comodoro
Pre-built binary
For other systems, Comodoro can be installed with the installer:
As root:
curl -sSL https://raw.githubusercontent.com/pimalaya/comodoro/master/install.sh | sudo sh
As a regular user:
curl -sSL https://raw.githubusercontent.com/pimalaya/comodoro/master/install.sh | PREFIX=~/.local sh
These commands install the latest release, built with the default cargo features. For a build of master, check out the releases GitHub workflow and look for the Artifacts section.
Cargo
cargo install --locked comodoro
For a build of master:
cargo install --locked --git https://github.com/pimalaya/comodoro.git
Nix
nix profile install github:pimalaya/comodoro
Sources
Requires Rust 1.89 or later:
git clone https://github.com/pimalaya/comodoro
cd comodoro
cargo build --release --locked
The binary lands at target/release/comodoro.
Configuration
A TOML configuration is loaded from every existing path among the following, each one deep-merged on top of the ones before:
$XDG_CONFIG_HOME/comodoro/config.toml$HOME/.config/comodoro/config.toml$HOME/.comodororc
Override the path with -c <PATH>, repeated to merge several files.
[!TIP] See config.sample.toml for a complete configuration of one example account with commented fields; rename the account and uncomment what you need.
An account only needs its cycles: uncomment one of the sample's presets (Pomodoro, 52/17 or 112/26). The TCP listener is unauthenticated, so keep it on loopback.
Usage
Step 1: once your first account is configured, start the server, which owns the timer until a signal stops it:
comodoro server start
Step 2: from another terminal, check that the server answers on every transport of the account:
comodoro account check
Step 3: start the timer:
comodoro start
Step 4: follow it, for a status bar for example:
comodoro watch
Every command runs on the default account unless -a names another, and its --help details its flags, exit codes and JSON output. More use cases:
# Pause, resume or stop the timer
comodoro pause
comodoro resume
comodoro stop
# Leave five minutes in the current cycle
comodoro set 300
# Serve both transports, then read the timer over TCP
comodoro server start socket tcp
comodoro get tcp
# Feed a status bar with the cycle name and its remaining seconds
comodoro watch --json | jq -r --unbuffered 'select(.event == "timer-changed") | "\(.cycle.name) \(.cycle.duration)s"'
# Drive the timer from an AI agent
comodoro mcp --allow-write
License
This project is licensed under either of:
Social
- Chat on Matrix
- News on Mastodon or RSS
- Mail at [email protected]
Sponsoring
Special thanks to the NLnet foundation and the European Commission that have been financially supporting the project for years:
- 2022 → 2023: NGI Assure
- 2023 → 2024: NGI Zero Entrust
- 2024 → 2026: NGI Zero Core
- 2026 → 2027: NGI Zero Commons Fund
This program is part of Pimalaya, free software funded entirely by grants and donations. If you find it useful, consider sponsoring its development:
Explorer des projets similaires
Chargement…
