Skip to content
المشاريع

حول

CLI to manage timers

أدوات التطوير

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • 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

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

:timer_clock: Comodoro Matrix Mastodon Sponsor

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 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
  • 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

Sponsoring

nlnet

Special thanks to the NLnet foundation and the European Commission that have been financially supporting the project for years:

This program is part of Pimalaya, free software funded entirely by grants and donations. If you find it useful, consider sponsoring its development:

GitHub Ko-fi Buy Me a Coffee Liberapay thanks.dev PayPal

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…