Agent skill

Myclaw Backup

by LeoYeAI in LeoYeAI/openclaw-backup

Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data.

MITAuto-check passedDevOps & Cloud

Install Myclaw Backup

skills CLI
$ npx skills add LeoYeAI/openclaw-backup --skill myclaw-backup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-backup myclaw-backup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
myclaw-backup
GitHub stars
659
Token cost
~1.8k tokens
SKILL.md length
570 words
Files
19 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data.

  • Works in 3 steps: Check if… → If yes: read it, send a restore report… → Send the report in the user's primary…
  • The user wants to create a snapshot of their OpenClaw instance
  • SKILL.md covers ⚠️ Trust Boundary & Security…, Dependencies, Scripts and What Gets Backed Up, plus 3 more sections
  • Runs Shell and JavaScript scripts from its folder; calls bash, openssl and curl

What it does

Myclaw Backup is an agent skill from LeoYeAI/openclaw-backup. Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Part of the MyClaw.ai (https://myclaw.ai) open skills ecosystem — the AI personal assistant platform that gives every user a full server with complete code control. Use when the user wants to create a snapshot of their OpenClaw instance, schedule periodic backups, restore from a backup, migrate to a new server, download a backup file locally, upload a backup file from another machine, or protect against data loss. Includes a…

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `README.de.md`, `README.es.md` and `README.fr.md`).

It sits in DevOps & Cloud, covering Backup and disaster recovery and Agent memory. The repository describes itself as: One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history. Powered by MyClaw.ai. The licence is MIT.

When your agent uses it

  • The user wants to create a snapshot of their OpenClaw instance
  • Schedule periodic backups
  • Restore from a backup
  • Migrate to a new server

Example prompts

  • “/myclaw-backup”

Requirements

  • Python 3
  • Node.js
  • A Bash shell

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Check if workspace/.restore-complete.json exists
  2. If yes: read it, send a restore report to the user, then delete the file (one-shot — never report twice)
  3. Send the report in the user's primary language (read from workspace/USER.md)

What it can do on your machine

Read from SKILL.md and the folder at commit a05a80d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (Shell and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • openssl
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Myclaw Backup loads about 1.8k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 219 tokens; SKILL.md has 570 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~219
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-backup at commit a05a80d, republished under its MIT licence (© LeoYeAI). 570 words, ~1,845 tokens.

Download SKILL.mdSave it as .claude/skills/myclaw-backup/SKILL.md (or your agent's skills folder). This skill also uses 18 other files; get the full folder from GitHub.
name
myclaw-backup
description
Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Part of the MyClaw.ai (https://myclaw.ai) open skills ecosystem — the AI personal assistant platform that gives every user a full server with complete code control. Use when the user wants to create a snapshot of their OpenClaw instance, schedule periodic backups, restore from a backup, migrate to a new server, download a backup file locally, upload a backup file from another machine, or protect against data loss. Includes a built-in HTTP server for browser-based download/upload/restore without needing cloud storage. TRUST BOUNDARY: This skill archives and restores highly sensitive data including bot tokens, API keys, and channel credentials. Only install if you trust the operator. Always use --dry-run before restore. Never start the HTTP server without a --token.

MyClaw Backup

Built on MyClaw.ai — the AI personal assistant platform that gives every user a full server with complete code control, networking, and tool access. This skill is part of the MyClaw.ai open skills ecosystem.

Backs up all critical OpenClaw data to a single .tar.gz archive and restores it to any OpenClaw instance. Includes a built-in HTTP server for browser-based backup management.

⚠️ Trust Boundary & Security Model

This skill handles highly sensitive data: bot tokens, API keys, channel credentials, session history. Understand the security model before use:

What each script does
  • backup.sh — reads ~/.openclaw/ and writes a chmod 600 archive to disk. No network access.
  • restore.sh — overwrites ~/.openclaw/ from an archive. Requires typing yes to confirm. Always run --dry-run first.
  • serve.sh / server.js — starts a local HTTP server. Token is mandatory (refuses to start without one). Shell-execution endpoints (/backup, /restore) are localhost-only — remote access can only download and upload files, not trigger execution.
  • schedule.sh — modifies your system crontab to run backup.sh on a schedule. Prints the cron entry before adding. Use --disable to remove.
Access control summary
EndpointRemote (token required)Localhost only
GET /health✅ (no token)—
GET /backups✅—
GET /download/:file✅—
POST /upload✅—
POST /backup❌✅
POST /restore❌✅
Best practices
  • Never start the HTTP server without --token
  • Never expose the HTTP server to the public internet without TLS
  • Always run restore.sh --dry-run before applying a restore
  • Store backup archives securely — they contain all credentials

Dependencies

Requires: node, rsync, tar, python3, openclaw CLI (all standard on OpenClaw instances).

Check: which node rsync tar python3 openclaw

Scripts

ScriptPurpose
scripts/backup.sh [output-dir]Create backup (default: /tmp/openclaw-backups/)
scripts/restore.sh <archive> [--dry-run] [--overwrite-gateway-token]Restore — always dry-run first
scripts/serve.sh start --token TOKEN [--port 7373]Start HTTP server — token required
scripts/serve.sh stop|statusStop/check server
scripts/schedule.sh [--interval daily|weekly|hourly]System cron scheduling

Gateway token behavior (v1.6+): By default, restore.sh preserves the new server's gateway.auth.token after restoring openclaw.json. This prevents the "gateway token mismatch" error in Control UI / Dashboard after migration. Use --overwrite-gateway-token only for full disaster recovery on the same server.

Show full SKILL.md (242 more words)Show less

What Gets Backed Up

See references/what-gets-saved.md for full details.

Includes: workspace (MEMORY.md, skills, agent files), openclaw.json (bot tokens + API keys), credentials, channel pairing state, agent config + session history, devices, identity, cron jobs, guardian scripts.

Excludes: logs, binary media, node_modules, canvas system files.

Common Workflows

Create backup
bash
bash scripts/backup.sh /tmp/openclaw-backups
# → /tmp/openclaw-backups/openclaw-backup_TIMESTAMP.tar.gz (chmod 600)
Restore — always dry-run first
bash
# Step 1: preview what will change
bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz --dry-run

# Step 2: review the output, then apply
bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz

The restore script saves a pre-restore snapshot before overwriting anything.

HTTP server — token is mandatory
bash
# Token is required — server refuses to start without one
bash scripts/serve.sh start --token $(openssl rand -hex 16) --port 7373
# → http://localhost:7373/?token=<generated-token>

Never share the URL on a public network without a reverse proxy + TLS.

The Web UI provides: create backup, download .tar.gz, upload, dry-run preview, restore.

HTTP API (all require token except /health):

  • GET /health — Health check (unauthenticated, read-only)
  • GET /backups — List backups
  • POST /backup — Create backup
  • GET /download/:filename — Download archive
  • POST /upload — Upload archive (multipart, field: backup)
  • POST /restore/:filename — Restore; add ?dry_run=1 to preview
Migrate to a new instance

Old machine:

bash
bash scripts/serve.sh start --token MYTOKEN --port 7373

New machine (after installing OpenClaw):

bash
# Download
curl -O "http://OLD_IP:7373/download/openclaw-backup_TIMESTAMP.tar.gz?token=MYTOKEN"

# Always dry-run first
bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz --dry-run

# Apply
bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz
# All channels reconnect automatically — no re-pairing needed
Schedule daily auto-backup (OpenClaw cron)
json
{
  "name": "daily-openclaw-backup",
  "schedule": { "kind": "cron", "expr": "0 3 * * *", "tz": "UTC" },
  "payload": {
    "kind": "agentTurn",
    "message": "Run a backup using the myclaw-backup skill. Output dir: /tmp/openclaw-backups",
    "timeoutSeconds": 120
  },
  "sessionTarget": "isolated"
}

Post-Restore: Automatic Recovery Report

After restore.sh completes, it writes workspace/.restore-complete.json. On the next heartbeat/startup, the Agent should:

  1. Check if workspace/.restore-complete.json exists
  2. If yes: read it, send a restore report to the user, then delete the file (one-shot — never report twice)
  3. Send the report in the user's primary language (read from workspace/USER.md)
Report format (adapt language from USER.md)
✅ [Restore complete — in user's language]

📦 Backup: {backup_name}
🤖 Agent: {agent_name}
🕐 Restored at: {restored_at}
💾 Contents restored: workspace, config, credentials, history, cron...

[Channel reconnect instructions in user's language]

Future: MyClaw Cloud Backup

The HTTP API is designed to be compatible with a future MyClaw cloud backup service. When available, replace the local server URL with the MyClaw API endpoint — the upload/download/restore flow stays identical.

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 18 other files (scripts, references) in the repository root of LeoYeAI/openclaw-backup.

  • SKILL.md
  • .gitignore
  • LICENSE
  • README.de.md
  • README.es.md
  • README.fr.md
  • README.it.md
  • README.ja.md
  • README.md
  • README.ru.md
  • README.zh-CN.md
  • openclaw-backup.skill
  • references/what-gets-saved.md
  • scripts/backup.sh
  • scripts/restore.sh
  • scripts/schedule.sh
  • scripts/serve.sh
  • scripts/server.js
  • scripts/ui.html

Open the folder on GitHubat commit a05a80d

Compare with similar skills

Myclaw Backup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Myclaw Backup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Myclaw Backup this skillLeoYeAI/openclaw-backup659—~1.8kAutomated safety check: PassMIT
Thememoriamatrixorigin/memoria610—~728Automated safety check: PassApache-2.0
Unifienuno/unifi-mcp-server282—~1kAutomated safety check: PassApache-2.0
Google Cloud Filestore Autoscalegoogle/skills21k—~3.2kAutomated safety check: PassApache-2.0
Vertex Engine Inspectorjeremylongshore/tons-of-skills-marketplace2.8k—~1.7kAutomated safety check: PassMIT
ChromadbEliasOulkadi/shokunin114—~2.2kAutomated safety check: PassMIT

Similar skills

  • Thememoria

    matrixorigin/memoria

    Use Memoria as OpenClaw's durable memory slot. An agent skill from matrixorigin/memoria.

    610 GitHub stars~728 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Unifi

    enuno/unifi-mcp-server

    Manage UniFi network infrastructure via the UniFi MCP Server.

    282 GitHub stars~1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Inspects Filestore capacity and utilization on Google Cloud, evaluates storage scaling rules, and performs capacity autoscaling (scale UP for low free space or scale DOWN for cost optimization).

    21k GitHub stars~3.2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Vertex Engine Inspector

    jeremylongshore/tons-of-skills-marketplace

    Inspect and validate Vertex AI Agent Engine deployments including Code Execution Sandbox, Memory Bank, A2A protocol compliance, and security posture.

    2.8k GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Chromadb

    EliasOulkadi/shokunin

    Manage the ChromaDB vector database that stores the ecosystem's persistent memory.

    114 GitHub stars~2.2k tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • Agentcore Ops Review

    aws/tools-for-devops-agent

    Official

    Comprehensive operational review procedures for Amazon Bedrock AgentCore resources aligned with the AWS Well-Architected Framework.

    103 GitHub stars~4k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

Questions about Myclaw Backup

What does Myclaw Backup do?

Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Myclaw Backup is an agent skill from LeoYeAI/openclaw-backup. Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data.

When should I use Myclaw Backup?

Myclaw Backup fits situations like: the user wants to create a snapshot of their OpenClaw instance; schedule periodic backups; restore from a backup; migrate to a new server.

How do I install Myclaw Backup in Claude Code?

Run `npx skills add LeoYeAI/openclaw-backup --skill myclaw-backup -a claude-code`. Or copy the skill folder (the LeoYeAI/openclaw-backup repository) into .claude/skills/myclaw-backup in your project. Claude Code loads it when a task matches its description.

How do I install Myclaw Backup in Codex?

Run `npx skills add LeoYeAI/openclaw-backup --skill myclaw-backup -a codex`. Or copy the skill folder (the LeoYeAI/openclaw-backup repository) into .agents/skills/myclaw-backup in your project. Codex loads it when a task matches its description.

Can I use Myclaw Backup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-backup --skill myclaw-backup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/myclaw-backup, .gemini/skills/myclaw-backup, .github/skills/myclaw-backup and .opencode/skills/myclaw-backup in your project.

What does Myclaw Backup need to run?

Going by SKILL.md and its folder, Myclaw Backup needs a shell and JavaScript for the scripts in its folder and the command-line tools its instructions call (bash, openssl and curl). Our summary lists: Python 3; Node.js; A Bash shell.

Does Myclaw Backup access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Myclaw Backup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Myclaw Backup use?

Myclaw Backup is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Myclaw Backup use?

About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 616 tokens, read only when the agent opens those files.

What are the alternatives to Myclaw Backup?

Skills that share tags, products or a category with Myclaw Backup: Thememoria (matrixorigin/memoria, 610 stars), Unifi (enuno/unifi-mcp-server, 282 stars), Google Cloud Filestore Autoscale (google/skills, 21k stars) and Vertex Engine Inspector (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Myclaw Backup?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-backup, which has 659 GitHub stars. The repository was last updated on March 3, 2026.

Source: LeoYeAI/openclaw-backup on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.