Cross-Device Sync Skill for Openclaw

A synchronization tool that uses GitHub as a central repository to keep OpenClaw memory files consistent across all your devices.

coreyleung-art
v1.0.0
Feb 1, 2026
6
2.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cross-device-sync

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cross-device-sync using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Cross-Device Sync Skill?

The Cross-Device Sync Skill is a powerful utility designed for developers and power users who require their AI agent context to be persistent across multiple environments. By utilizing GitHub as a secure, version-controlled central hub, this skill ensures that your Openclaw Skills and their associated memory remain synchronized, whether you are switching from a desktop to a laptop or a cloud environment.

This skill automates the complexity of manual data transfers by creating specialized sync scripts and handling bi-directional updates. It is a core component for anyone building a portable AI workspace, ensuring that the 'brain' of your agent follows you everywhere you work.

Cross-Device Sync Skill Use Cases

  • Maintaining consistent AI context when switching between office and home workstations.
  • Backing up critical agent memory files to a private, version-controlled cloud repository.
  • Sharing agent knowledge bases across multiple local installations.
  • Recovering agent state quickly after setting up a new machine or environment.

How Cross-Device Sync Skill Works

  1. The skill validates GitHub repository access using a provided Personal Access Token (PAT).
  2. It initializes a local clone or updates an existing repository to serve as the local memory sync point.
  3. It maps the OpenClaw data directory to the synchronized repository folder.
  4. Upon execution, it performs a bi-directional sync: pulling latest changes from GitHub, merging local updates, and pushing the final state back to the remote server.
  5. It generates detailed logs and status reports to ensure data integrity across all endpoints.

Cross-Device Sync Skill Setup

Install the skill using the following command:

npx clawhub install cross-device-sync

After installation, initialize the sync environment by providing your GitHub credentials:

await setup_cross_device_sync({
  repoUrl: "https://github.com/username/repository.git",
  token: "your_github_personal_access_token"
});

Cross-Device Sync Skill Data Schema & Taxonomy

The skill manages data within the specified GitHub repository using the following structure:

Component Description
Memory Files Core JSON and Markdown files representing the agent's learned knowledge.
Sync Scripts Locally generated scripts that handle the git lifecycle (pull/commit/push).
sync_config.json Configuration file containing repository URLs and directory mapping metadata.
.sync_logs Metadata tracking the timestamp and success/failure of the last synchronization event.

Cross-Device Sync Skill Advanced Features

  • Bi-directional merge logic to resolve conflicts between different device updates.
  • Real-time synchronization status monitoring and connectivity validation.
  • Automated scheduling options for background synchronization without manual triggers.
  • Secure token management guidelines to protect private repository access.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*