Serve
Serve
Run the daemon on the D-Bus session bus until it receives SIGINT or SIGTERM.
D-Bus normally starts it on demand through the systemd user unit when the widget loads, so running it by hand is only needed for debugging. Only one instance can own the bus name at a time.
Changes from the widget’s settings page apply at once. After editing the settings file by hand, send SIGHUP to apply it, for example with systemctl –user reload clankerwatch.
Usage
clankerwatch serveExamples
Run in the foreground with debug logging.
clankerwatch serve --log-level debugGlobal options
These settings flags are accepted by every command. See Configuration for how they combine with environment variables and the settings file.
| Flag | Short | Default | Type | Description |
|---|---|---|---|---|
--claude-config-dir | "" | string | Claude Code’s config directory ($CLAUDE_CONFIG_DIR) | |
--config | "" | string | YAML settings file, default $XDG_CONFIG_HOME/clankerwatch/config.yaml ($CLANKERWATCH_CONFIG) | |
--idle-interval | 20m0s | duration | polling interval while Claude Code is idle ($CLANKERWATCH_IDLE_INTERVAL) | |
--interval | 5m0s | duration | polling interval while Claude Code is active, at least 2m ($CLANKERWATCH_INTERVAL) | |
--log-level | info | string | debug, info, warn, or error ($CLANKERWATCH_LOG_LEVEL) | |
--mode | hybrid | string | data source: hybrid, or cache-only to never read credentials or use the network ($CLANKERWATCH_MODE) | |
--notify | 80,95 | string | alert thresholds in percent, empty to turn alerts off ($CLANKERWATCH_NOTIFY) | |
--notify-auth | true | bool | alert when the Claude Code login needs attention ($CLANKERWATCH_NOTIFY_AUTH) | |
--state-dir | "" | string | directory for the daemon’s state, default $XDG_STATE_HOME/clankerwatch ($CLANKERWATCH_STATE_DIR) |