跳到正文
TakoAPI
返回技能列表

claw-sync

由 arakichanxd 提供

Self-Hosted & Automation
2.6k下载量由 clawskills.sh 提供
5星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Secure sync for OpenClaw memory and workspace.

描述

该技能的功能

Syncs OpenClaw memory files and custom skills to a remote Git repository. Each sync creates a versioned backup that can be restored by name or as the latest version. Sensitive files like API keys and .env are excluded automatically.

Unlike manual file copies or generic backup tools, it handles OpenClaw-specific files automatically while excluding secrets from the repository.

何时使用

  • Backing up agent memory before a major project change
  • Restoring a previous workspace state after accidental file loss
  • Syncing custom skills across multiple machines
  • Previewing what would be pushed before committing a sync
  • Listing all backup versions to find a specific restore point

示例工作流

输入

User runs: /sync

智能体
  1. 1

    Reads memory and skill files from the OpenClaw workspace

  2. 2

    Excludes files containing secrets (openclaw.json, .env)

  3. 3

    Pushes eligible files to the configured GitHub repository

  4. 4

    Tags the push with a versioned timestamp for future restore

输出

Files pushed to remote repo with a new versioned backup created

前置要求

  • GitHub account and a repository to store backups
  • GitHub personal access token with repo write access
  • ~/.openclaw/.backup.env file with BACKUP_REPO and BACKUP_TOKEN set

安装

clawhub install arakichanxd/claw-sync

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接