← 返回 Skills 市场
OpenClaw GitHub Backup
作者
wang5sheng
· GitHub ↗
· v1.0.0
· MIT-0
283
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-github-backup
功能描述
Automatically backup OpenClaw configuration to a private GitHub repository. Features API key sanitization, activity detection, and smart backup frequency (ho...
安全使用建议
This skill will copy and commit large parts of your OpenClaw home (~/.openclaw) into a GitHub repo you provide. Before installing:
- Inspect the scripts yourself. The sanitization only replaces JSON fields like "apiKey" and will miss other tokens or secrets in other files or nested directories (the skill explicitly includes credentials/ and various config folders).
- Do not point this at an existing important repo unless you understand and accept that the installer does a force push on initial backup (it can overwrite remote history).
- Be aware the installer modifies global git user.name/email and may generate SSH keys and add GitHub to known_hosts. If you prefer not to change global settings, adapt the scripts to use a local repo (git -C or repo-level config) before running.
- The installer removes any '.git' directories under the OpenClaw tree to avoid nested repos; this can irreversibly remove Git metadata for other projects in that tree. Back up those .git folders first or edit the script to be less aggressive.
- Consider tightening what is committed: add exclusions for credentials/, secrets/, *.pem, and other sensitive files; verify the repo contents after the first push.
- Prefer creating a repository dedicated to backups with minimal collaborator access or use a deploy key with limited permissions.
If you are unsure, test in an isolated environment (copy ~/.openclaw to a sandbox) and run the installer there to observe behavior before running on your real data.
功能分析
Type: OpenClaw Skill
Name: openclaw-github-backup
Version: 1.0.0
The skill is a utility designed to backup OpenClaw configurations to a user-specified private GitHub repository. It includes scripts for installation (install.sh), activity monitoring (check-activity.sh), and the backup process (backup.sh). The code demonstrates security awareness by attempting to sanitize API keys in 'openclaw.json' before committing and explicitly warning users to use private repositories. While it performs high-risk operations such as pushing configuration data to a remote server, modifying global Git settings, and aggressively removing nested '.git' directories, these actions are transparently documented and directly support the stated purpose of the skill.
能力评估
Purpose & Capability
The skill's name/description match its behavior: it initializes a git repo and pushes OpenClaw files to a private GitHub repo. However, the declared 'API Key Sanitization' is narrowly implemented (only replaces occurrences matching "\"apiKey\": \"...\"") while the backup explicitly includes a credentials/ directory and other config folders that likely contain secrets—so the sanitization claim is incomplete relative to the breadth of data being backed up.
Instruction Scope
Runtime scripts read and copy entire ~/.openclaw, add everything to git, and push to the remote. They also remove embedded .git directories under the backup path (find . -name ".git" -exec rm -rf {} +), which may delete other repositories' metadata inside the workspace. The installer modifies global git config and may generate SSH keys and add GitHub to known_hosts. Those actions go beyond simple 'backup' and are potentially destructive or surprising.
Install Mechanism
No remote downloads or obscure install sources; this is an instruction-only skill that copies local script files into ~/.openclaw and runs them. That reduces supply-chain risk, but the scripts will be executed on the host so their behavior matters.
Credentials
The skill requests no explicit environment variables or secrets, but it backs up credential-related directories and configuration files that likely contain secrets. It also changes global git user.name/user.email. Backing up 'credentials/' and other service configs without robust sanitization is disproportionate to the stated 'API Key Sanitization' promise.
Persistence & Privilege
The skill writes executable scripts to ~/.openclaw, updates global git config, may create SSH keys and modifies ~/.ssh/known_hosts, and removes nested .git directories under the OpenClaw directory. While not using always:true, these file-system and global-config changes give it significant persistence and the ability to affect other repos/workspaces.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-github-backup - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-github-backup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Auto backup OpenClaw to GitHub with smart frequency
元数据
常见问题
OpenClaw GitHub Backup 是什么?
Automatically backup OpenClaw configuration to a private GitHub repository. Features API key sanitization, activity detection, and smart backup frequency (ho... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 283 次。
如何安装 OpenClaw GitHub Backup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-github-backup」即可一键安装,无需额外配置。
OpenClaw GitHub Backup 是免费的吗?
是的,OpenClaw GitHub Backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw GitHub Backup 支持哪些平台?
OpenClaw GitHub Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw GitHub Backup?
由 wang5sheng(@wang5sheng)开发并维护,当前版本 v1.0.0。
推荐 Skills