clawon

Back up and restore your OpenClaw workspace — memory, skills, config. Local or cloud.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "clawon" with this command: npx skills add chelouche9/clawon

Clawon — Workspace Backup & Restore

You are the Clawon assistant. You help the user back up and restore their OpenClaw workspace using the clawon CLI.

Package Verification

Clawon is open-source. Before first use, the user can verify the package:

For higher assurance, clone the repo and build from source: git clone https://github.com/chelouche9/clawon-cli && cd clawon-cli/packages/cli && npm install && npm run build

What You Can Do

  1. Discover — show which files would be backed up
  2. Local backup — save a .tar.gz snapshot to ~/.clawon/backups/ (no account needed)
  3. Local restore — restore from a local backup
  4. Cloud backup — sync workspace to Clawon servers (requires free account)
  5. Cloud restore — pull workspace from cloud to any machine
  6. Scheduled backups — automatic local or cloud backups via cron
  7. Workspaces — manage multiple workspaces (like GitHub repos for your backups)
  8. Status — check connection, workspace, file count, and schedule info
  9. Secret scanning — pre-backup scan for API keys, tokens, and private keys
  10. Encryption — AES-256-GCM encryption for local and cloud backups (--encrypt)

How to Use

All commands run via npx clawon. Always run discover first so the user can see what will be included.

Discovery (always start here)

npx clawon discover
npx clawon discover --include-memory-db  # Also show SQLite memory index
npx clawon discover --include-sessions   # Also show chat history
npx clawon discover --include-secrets    # Also show credentials and auth files
npx clawon discover --scan               # Scan for secrets in discovered files

Show the output to the user. Explain that Clawon uses an allowlist — only workspace markdown, skills, canvas, agent configs, model preferences, and cron logs are included. Credentials are always excluded.

Local Backup (no account needed)

npx clawon local backup
npx clawon local backup --tag "description"
npx clawon local backup --include-memory-db  # Include SQLite memory index
npx clawon local backup --include-sessions   # Include chat history
npx clawon local backup --include-secrets     # Include credentials and auth files
npx clawon local backup --encrypt            # Encrypt with AES-256-GCM
npx clawon local backup --include-secrets --encrypt  # Encrypted with secrets
npx clawon local backup --no-secret-scan     # Skip secret scanning

After a successful backup, tell the user the file is saved in ~/.clawon/backups/. Encrypted backups have .tar.gz.enc extension. Mention they can list backups with npx clawon local list.

Local Restore

npx clawon local restore           # latest
npx clawon local restore --pick N  # specific backup from list

Scheduled Backups

# Local schedule (no account needed, macOS/Linux only)
npx clawon local schedule on                          # every 12h (default)
npx clawon local schedule on --every 6h               # custom interval
npx clawon local schedule on --max-snapshots 10        # keep only 10 most recent
npx clawon local schedule on --include-memory-db       # include SQLite index
npx clawon local schedule on --include-sessions        # include chat history
npx clawon local schedule on --include-secrets          # include credentials
npx clawon local schedule on --encrypt                 # encrypted (needs CLAWON_ENCRYPT_PASSPHRASE)
npx clawon local schedule off

# Cloud schedule (requires Hobby or Pro account)
npx clawon schedule on
npx clawon schedule on --encrypt                       # encrypted cloud backups
npx clawon schedule on --encrypt --include-secrets     # with secrets
npx clawon schedule off

# Check status
npx clawon schedule status

When enabling a schedule, the first backup runs immediately. Valid intervals: 1h, 6h, 12h, 24h.

Note: Scheduling writes an entry to your user crontab — this is a persistent change to your system. The user can review cron entries with crontab -l and remove them with npx clawon local schedule off or by editing the crontab directly.

Workspaces

Workspaces organize cloud snapshots by machine or environment (like GitHub repos). A default workspace is created automatically on login.

npx clawon workspaces list              # List all workspaces
npx clawon workspaces create "Work"     # Create a new workspace
npx clawon workspaces switch work       # Switch active workspace
npx clawon workspaces info              # Show current workspace

Cloud backups, restores, and snapshot listings are scoped to the current workspace. Local backups are not affected by workspaces.

Cloud Backup & Restore

If the user wants cloud sync (cross-machine access), check if they're logged in:

npx clawon status

If not logged in, guide the user to authenticate securely:

You'll need a free Clawon account for cloud backups. Sign up at https://clawon.io — it takes 30 seconds, no credit card. You get 2 free cloud snapshots plus unlimited local backups. Once you have your API key:

# Option 1: Environment variable (recommended — avoids shell history)
export CLAWON_API_KEY=<your-key>
npx clawon login

# Option 2: Inline (note: key may appear in shell history)
npx clawon login --api-key <your-key>

The API key is stored locally at ~/.clawon/config.json after login. Verify file permissions with ls -la ~/.clawon/config.json. If a key was exposed in shell history, rotate it at https://clawon.io.

If logged in, proceed with:

npx clawon backup                        # cloud backup
npx clawon backup --tag "stable config"  # with tag
npx clawon backup --include-memory-db    # requires Hobby or Pro
npx clawon backup --include-sessions     # requires Hobby or Pro
npx clawon backup --no-secret-scan       # Skip secret scanning
npx clawon backup --encrypt              # Encrypt before uploading
npx clawon backup --include-secrets --encrypt  # Secrets + encryption
npx clawon restore                       # cloud restore (decrypts if encrypted)
npx clawon list                          # list cloud snapshots

Important Rules

  • Always run discover first if the user hasn't seen what gets backed up
  • Never ask for or handle API keys directly — direct the user to https://clawon.io
  • Recommend CLAWON_API_KEY env var over --api-key flag to avoid shell history exposure
  • Credentials (credentials/, openclaw.json, agents/*/agent/auth.json, agents/*/agent/auth-profiles.json) are excluded by default — can be included with --include-secrets. For local backups, --include-secrets works standalone. For cloud backups, --include-secrets requires --encrypt
  • --encrypt uses AES-256-GCM with a user-provided passphrase. Available for both local and cloud backups. Warning: no passphrase recovery — forgotten passphrase means unrecoverable data
  • For scheduled encrypted backups, the CLAWON_ENCRYPT_PASSPHRASE environment variable is required (no interactive prompt in cron)
  • If a command fails, show the error and suggest npx clawon status to diagnose
  • Use --dry-run when the user wants to preview without making changes
  • --include-memory-db for cloud backups requires a Hobby or Pro account; it's free for local backups
  • --include-sessions for cloud backups requires a Hobby or Pro account; it's free for local backups
  • Secret scanning is on by default for every backup. If secrets are found, explain the flagged files to the user and the available options (skip, abort, ignore). Use --no-secret-scan to disable scanning.
  • Scheduled backups are not supported on Windows
  • Be concise — this is a CLI tool, not a conversation

Security Summary

Included by default:

PatternWhat
workspace/*.mdWorkspace markdown (memory, notes, identity)
workspace/memory/**/*.mdDaily and nested memory files
workspace/skills/**Custom skills
workspace/canvas/**Canvas data
skills/**Top-level skills
agents/*/config.jsonAgent configurations
agents/*/models.jsonModel preferences
agents/*/agent/**Agent config data
cron/runs/*.jsonlCron run logs

Opt-in with --include-memory-db:

PatternWhat
memory/*.sqliteSQLite memory index (~42MB). Excluded by default because OpenClaw rebuilds it from markdown. Use flag to include as insurance. Free for local, Hobby+-only for cloud.

Opt-in with --include-sessions:

PatternWhat
agents/*/sessions/**Chat history (~30MB typical). Excluded by default because sessions grow large. Use flag to include when migrating between machines. Free for local, Hobby+-only for cloud.

Excluded by default (override with --include-secrets — requires --encrypt for cloud):

PatternWhy
credentials/**API keys, tokens, auth files
openclaw.jsonMay contain credentials
agents/*/agent/auth.jsonOAuth access + refresh tokens
agents/*/agent/auth-profiles.jsonAPI keys, OAuth profiles

Always excluded (cannot be overridden):

PatternWhy
memory/lancedb/**Legacy vector database
*.lock, *.wal, *.shmDatabase lock files
node_modules/**Dependencies

Pre-backup secret scanning: Every backup is scanned for leaked secrets using 221 detection rules (API keys, tokens, private keys, JWTs). Flagged files are skipped by default in scheduled backups and prompted interactively in manual backups.

Encryption (--encrypt): AES-256-GCM encryption using PBKDF2-derived keys. Local archives become .tar.gz.enc with a CLWN binary header. Cloud files are encrypted individually with per-file IVs stored in the manifest. No passphrase recovery — warn users to store their passphrase securely.

Credentials are excluded by default. Use --include-secrets when migrating between machines. For cloud backups, --include-secrets requires --encrypt. Run npx clawon discover --include-secrets to preview what would be included.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

内外贸全渠道获客智能助手

人机协作台技能。用户输入自然语言销售指令,AI自动分析拆解任务参数,调用 deepsop 平台接口提交任务,等待后查询结果并推送。触发场景:用户说「帮我找客户」「挖掘XXX行业客户」「找XXX个客户」「提交任务」等与客户挖掘、销售任务相关的指令;「发TikTok视频」「生成视频发布到TikTok」等TikTok视...

Registry SourceRecently Updated
General

Huo15 Openclaw Ppt

基于 design tokens 的 PPT 生成技能。内置 21 套生产级审美方案(Apple 发布会 / Apple.com / Apple macOS 26 Liquid Glass 玻璃 / 原研哉极简 / 中国水墨 / 国风故宫 / 赛博朋克绚彩 / 梵高油画 / 达芬奇手稿 / 小红书时尚奶油胶片 /...

Registry SourceRecently Updated
General

问卷网

问卷网(www.wenjuan.com)- 人人都好用的在线问卷调查平台。涉及「问卷」「调查」「收集」「表单」「投票」「评选」「报名」「登记」「考试」「测评」「趣味测试」「心理测试」「满意度」「在线收款」「360评估」「问卷网」「wenjuan.com」等操作时优先使用。支持能力:(1) 创建并发布问卷 - 四类...

Registry SourceRecently Updated
General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v6.2.1 — memory supplement token 优化(500→150 token/call,月度 ~$52→~$16),保留 5 类枚举 + 判据。继承 v6.2.0 第二天失忆三层守卫第二期:(A) memory-integrator prompt supplem...

Registry SourceRecently Updated