{
  "markdown": "# OpenClaw Auto-Updater\n\nA skill for OpenClaw that automatically updates your agent every night.\n\n## What It Does\n\nThis skill sets up a nightly cron job that runs an external shell script — the script runs independently of the agent, so it works even when the gateway restarts.\n\n## Why a Script?\n\nWhen OpenClaw updates, the gateway restarts — which kills any running agent commands. By using a standalone shell script (not agent commands), the update runs successfully without needing the agent to be active.\n\n## Installation\n\nCopy the `auto-updater` folder to your skills directory:\n\n```bash\ncp -r auto-updater ~/.openclaw/skills/\n```\n\nRestart your OpenClaw gateway:\n\n```bash\nopenclaw gateway restart\n```\n\n## Setup\n\nOnce installed, say **\"Set up auto-updater\"** and I'll:\n1. Copy the update script to `~/update-openclaw.sh`\n2. Create a cron job that runs at 4 AM daily\n\n## The Script\n\nLocation: `~/update-openclaw.sh`\n\n```bash\n#!/bin/bash\nset -e\n\nLOG_FILE=\"$HOME/openclaw-update.log\"\n\nlog() {\n    echo \"[$(date)] $1\" | tee -a \"$LOG_FILE\"\n}\n\nlog \"Starting OpenClaw update...\"\nopenclaw gateway stop\nopenclaw update.run\nopenclaw gateway start\nlog \"Update complete!\"\n```\n\n## Usage\n\n- **\"Set up auto-updater\"** - Creates the cron job\n- **\"Update yourself now\"** - Runs the script immediately\n- **\"Change update time to [time]\"** - Updates the schedule\n\n## Change Update Time\n\nThe cron runs at 4 AM by default. To change:\n\n```bash\ncrontab -e\n# Change: 0 4 * * * ~/update-openclaw.sh\n```\n\n## Manual Run\n\n```bash\n~/update-openclaw.sh\n```\n\nCheck logs: `~/openclaw-update.log`\n\n## Troubleshooting\n\n### Update Failed\n\nCheck the log:\n```bash\ncat ~/openclaw-update.log\n```\n\nRun manually to see errors:\n```bash\n~/update-openclaw.sh\n```\n\n### Cron Not Running\n\n```bash\ncrontab -l  # List cron jobs\n```\n\n## Requirements\n\n- OpenClaw v2026.02+ \n- Gateway running in local mode\n- Internet connection for updates\n",
  "bytes": 1893,
  "sha": "42eced1458dc9024a4cccd07caa85030de2c459d03834c87ee871bdfb703d55f",
  "repo_slug": "teylersf/openclaw-auto-updater",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_teylersf_openclaw_auto_updater_auto_upda_b3a96e7c/readme"
}