원클릭으로
openclaw-add-cron
Create a new scheduled cron job for an OpenClaw agent (recurring, interval, or one-shot)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a new scheduled cron job for an OpenClaw agent (recurring, interval, or one-shot)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | openclaw-add-cron |
| description | Create a new scheduled cron job for an OpenClaw agent (recurring, interval, or one-shot) |
| argument-hint | ["agent-id"] |
| disable-model-invocation | true |
Create a new scheduled job for agent $ARGUMENTS.
Read ~/.openclaw/workspace/skills/05-cron-system.md for detailed guidance.
OPENCLAW_REPO=$(readlink ~/.openclaw/openclaw.json 2>/dev/null | sed 's|/.openclaw/openclaw.json||')
TIER_CONFIGS=(~/.openclaw/configs/openclaw-*.json)
[[ -f "${TIER_CONFIGS[0]}" ]] && MULTI_GATEWAY=true || MULTI_GATEWAY=false
If multi-gateway, resolve the agent's tier for log verification:
for cfg in ~/.openclaw/configs/openclaw-*.json; do
if grep -q "\"id\": *\"$ARGUMENTS\"" "$cfg" 2>/dev/null; then
TIER=$(basename "$cfg" | sed 's/openclaw-//;s/.json//')
break
fi
done
Read current jobs: Read $OPENCLAW_REPO/.openclaw/cron/jobs.json
Ask the user:
isolated (default, recommended) or maintelegram, slack, or lastGenerate UUID:
python3 -c "import uuid; print(uuid.uuid4())"
{
"id": "<generated-uuid>",
"agentId": "<agent-id>",
"name": "<descriptive name>",
"enabled": true,
"createdAtMs": <current-epoch-ms>,
"schedule": {
"kind": "cron",
"expr": "<cron-expression>",
"tz": "<timezone>"
},
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "<task description>",
"model": "anthropic/claude-sonnet-4-5",
"timeoutSeconds": 120
},
"delivery": {
"mode": "announce",
"channel": "last"
}
}
For one-shot reminders, add "deleteAfterRun": true.
Add to jobs.json in the openclaw-home repo
Stow:
rm -f ~/.openclaw/cron/jobs.json
cd "$OPENCLAW_REPO" && stow --no-folding -t ~ .
tail -30 ~/.openclaw-$TIER/gateway.logtail -30 ~/.openclaw/logs/gateway.logtimeoutSeconds for agentTurn payloads (prevents runaway sessions)isolated session target for scheduled tasks (cheaper, cleaner)jobs.json at runtime — always edit in the repo and stowtz default to UTCAdd a messaging channel binding (Telegram, Slack, WhatsApp, or GChat) to an existing OpenClaw agent
Scaffold a new deterministic shell script for an OpenClaw agent with JSON output, error handling, and the json-response library
Add a new secret to the OpenClaw keychain and update the appropriate launcher/secrets script
Set up nightly dream routine (memory distillation) for an OpenClaw agent including DREAM-ROUTINE.md, cron job, and archive pipeline
Create a new OpenClaw agent with all required directive files, directory structure, and config registration
Restart OpenClaw gateway(s) — handles stow conflicts and verifies channels reconnect. Supports single-gateway and multi-gateway (per-tier) deployments.