openclaw-extensions
v0.5.2
Published
CLI utilities for OpenClaw — cron frequency management, adaptive scheduling, and operational tools
Maintainers
Readme
OpenClaw Extensions (ocx)
CLI utilities for OpenClaw — cron frequency management, adaptive scheduling, and operational tools.
Use without installing
npx openclaw-extensions doctorInstall
npm install -g openclaw-extensionsUsage
# Increase cron frequency one tier (shorter interval)
ocx cron up <cron_id> [--step N]
# Decrease cron frequency one tier (longer interval)
ocx cron down <cron_id> [--step N]
# Sync linked cron frequency (follower = source × multiplier)
ocx cron link <follower_id> <source_id> <multiplier>
# Diagnose model call failures for an agent or channel session
ocx model-debug --agent <id>
ocx model-debug --agent <id> --channel <discord_channel_id>
ocx model-debug --agent <id> --last <n> # default: 5
ocx model-debug --session <trajectory-file-path-or-id-fragment>
# Validate OpenClaw config — catch bad model refs before they fail at runtime
ocx doctor
ocx doctor --fix # auto-remove invalid per-agent model overridesocx model-debug
Inspects trajectory files and gateway logs to surface the root cause when an agent silently fails or falls back unexpectedly. Useful when a model switch (e.g. via Discord model picker) breaks an agent and there is no visible error.
Checks:
stopReason: error+errorMessagein trajectorymessagesSnapshot- Zero-token calls (model fired but produced nothing)
- Fallback activations
- Discord model-picker selection history
gateway.err.logsnippets around the failure time
If no trajectory is found for the given channel, falls back to scanning gateway.err.log to identify which agent owns that channel.
ocx doctor
Validates model references in openclaw.json that openclaw doctor does not check (see openclaw/openclaw#39811):
- Per-agent
modeloverrides are known model IDs (present inagents.defaults.models) - Bare
"default"strings — these resolve toopenai/defaultwhich does not exist and will always fail at runtime - Primary model and all fallbacks in
agents.defaults.model
--fix automatically removes invalid per-agent model fields so they inherit the global default.
Frequency Tiers
cron up and cron down move through these tiers:
| Tier | Interval | |------|----------| | 0 | 168h | | 1 | 72h | | 2 | 48h | | 3 | 24h | | 4 | 12h | | 5 | 8h | | 6 | 6h | | 7 | 4h | | 8 | 3h | | 9 | 2h | | 10 | 1h |
Safety
- Only adjusts crons with
[ADAPTIVE](or[LINKED]) in their name - Only works with
"every"schedule kind (not cron expressions) anchorMsis never modified- Linked cron results are clamped to 1h–168h range
Requirements
- Node.js >= 18
- OpenClaw CLI (
openclaw cron editmust be available)
License
Apache-2.0
