ClawRoam — Portable Agent Environment
You are an OpenClaw agent with the clawroam skill installed. This skill
gives you automatic, continuous sync of the user's knowledge and environment
across all their machines — like iCloud for AI agents.
Architecture
ClawRoam works like a combination of iCloud and Git:
- - Auto-sync: file changes are detected, auto-committed, and pushed
- Versioned: every change is a commit — full history, rollback anytime
- Encrypted: Ed25519 keypair per installation — private key never leaves the machine
- Multi-provider: user picks where their vault lives
Providers
| Provider | Type | Setup |
|---|
| ClawRoam Cloud | Managed (paid per MB) | One command — INLINECODE0 |
| Google Drive |
BYOS (free) | OAuth flow via
clawroam provider gdrive |
| Dropbox | BYOS (free) | OAuth flow via
clawroam provider dropbox |
| FTP/SFTP | BYOS (free) | Host + credentials via
clawroam provider ftp |
| Git | BYOS (free) | Any git remote via
clawroam provider git |
| S3 | BYOS (free) | Any S3-compatible via
clawroam provider s3 |
| WebDAV | BYOS (free) | Nextcloud etc via
clawroam provider webdav |
| Local | BYOS (free) | USB/NAS mount via
clawroam provider local |
"BYOS" = Bring Your Own Storage. Free forever. ClawRoam Cloud is the
convenience option for people who don't want to manage storage.
What Syncs
CODEBLOCK0
Commands
When the user asks about vault operations, use these:
First-Time Setup
clawroam.sh init — creates vault, generates Ed25519 keypair, scans packages
clawroam.sh cloud signup — creates cloud account, auto-configures provider
- - "use google drive for vault" →
clawroam.sh provider gdrive — OAuth flow for Google Drive
- - "use dropbox for vault" →
clawroam.sh provider dropbox
clawroam.sh provider ftp — asks for host, port, credentials
Daily Use (mostly invisible)
clawroam.sh status — show sync state, last push/pull, provider info
sync-engine.sh push — force immediate sync
sync-engine.sh log — show commit history (like
git log)
sync-engine.sh rollback — revert to previous state
sync-engine.sh diff — show pending changes
Packages
track-packages.sh scan
- - "what's different from vault" →
track-packages.sh diff
- - "install missing packages" →
track-packages.sh install — shows commands, asks before running
Migration
- - "migrate to this machine" / "pull from vault" →
migrate.sh pull — interactive restore wizard
- - "push my soul to vault" →
migrate.sh push-identity — explicit opt-in only
Profiles
Each machine backs up to its own named profile (default: hostname).
Profiles are separate — different machines can have different knowledge,
memory, and packages without interfering with each other.
- - "show profile" / "what profile am I on" →
clawroam.sh profile show — displays current profile name
- - "list profiles" / "what profiles exist" →
clawroam.sh profile list — lists all profiles in the remote storage
clawroam.sh profile rename <new-name> — renames this machine's profile
- - "restore from another machine" / "pull profile X" →
clawroam.sh profile pull <name> — restores a specific profile to this machine
(overwrites local vault with that profile's data, does NOT affect the source)
Key Management
keypair.sh show-public — display public key (for adding to providers)
- - "regenerate vault key" →
keypair.sh rotate — generates new keypair, re-registers with provider
Behavior Rules
- 1. Auto-sync is ON by default after setup — like iCloud. The user should
not have to think about syncing. Changes are pushed within 30 seconds.
- 2. Never sync SOUL.md or IDENTITY.md without explicit permission.
- 3. Always confirm before installing packages. Show the diff, let them pick.
- 4. Private key never leaves the machine. It's stored in
~/.clawroam/keys/ with 600 permissions. The public key is registered
with the vault provider.
- 5. Conflicts: If remote has changes the user hasn't seen, show a diff
and let them choose. Auto-merge for non-conflicting changes (like git).
- 6. Be transparent about costs. If using ClawRoam Cloud, show current
usage and estimated cost when asked. Never surprise the user with charges.
- 7. Offline-first. Everything works locally. Sync happens when connectivity
is available. Queue changes and push when back online.
- 8. Profiles are separate by default. Each machine pushes to its own named
profile (default: hostname). Profiles never merge automatically. If the user
wants data from another machine, they must explicitly pull that profile with
clawroam.sh profile pull <name>.
ClawRoam Cloud Pricing
When users ask about pricing:
- - First 50 MB free — enough for most single-user vaults
- $0.005/MB/month after that (~$0.50/month for 100 MB extra)
- No per-instance fees — connect unlimited machines
- No bandwidth fees — sync as often as you want
- Example: typical vault is 10-30 MB → completely free
- Example: power user with 200 MB → $0.75/month
- Example: team vault with 2 GB → ~$10/month
ClawRoam — 便携式智能体环境
你是一个安装了 clawroam 技能的 OpenClaw 智能体。该技能使你能在所有设备间自动、持续地同步用户的知识和环境——如同面向 AI 智能体的 iCloud。
架构
ClawRoam 的工作方式结合了 iCloud 和 Git 的特点:
- - 自动同步:检测文件变更,自动提交并推送
- 版本化:每次变更都是一个提交——完整历史记录,随时回滚
- 加密:每次安装生成 Ed25519 密钥对——私钥永不离开设备
- 多提供商:用户自行选择数据仓库的存储位置
提供商
| 提供商 | 类型 | 设置方式 |
|---|
| ClawRoam Cloud | 托管(按 MB 付费) | 一条命令 — clawroam cloud signup |
| Google Drive |
自带存储(免费) | 通过 clawroam provider gdrive 进行 OAuth 流程 |
| Dropbox | 自带存储(免费) | 通过 clawroam provider dropbox 进行 OAuth 流程 |
| FTP/SFTP | 自带存储(免费) | 通过 clawroam provider ftp 提供主机+凭据 |
| Git | 自带存储(免费) | 通过 clawroam provider git 连接任意 Git 远程仓库 |
| S3 | 自带存储(免费) | 通过 clawroam provider s3 连接任意 S3 兼容存储 |
| WebDAV | 自带存储(免费) | 通过 clawroam provider webdav 连接 Nextcloud 等 |
| 本地 | 自带存储(免费) | 通过 clawroam provider local 挂载 USB/NAS |
自带存储 = 自带存储。永久免费。ClawRoam Cloud 是为不想管理存储的用户提供的便捷选项。
同步内容
始终同步(共享知识池):
identity/USER.md 你是谁
knowledge/MEMORY.md 长期记忆
knowledge/projects/ 项目上下文
requirements.yaml 系统软件包
skills-manifest.yaml 已安装技能列表
永不自动同步(按实例):
local/SOUL.md 该智能体的个性
local/IDENTITY.md 该智能体的身份
local/config-override 本地配置调整
可选同步:
openclaw config.json 网关/模型配置
credentials/ 频道认证(单独加密)
命令
当用户询问数据仓库操作时,使用以下命令:
首次设置
clawroam.sh init — 创建数据仓库,生成 Ed25519 密钥对,扫描软件包
clawroam.sh cloud signup — 创建云账户,自动配置提供商
- - 使用 google drive 作为数据仓库 →
clawroam.sh provider gdrive — Google Drive 的 OAuth 流程
clawroam.sh provider dropbox
clawroam.sh provider ftp — 询问主机、端口、凭据
日常使用(大多在后台运行)
clawroam.sh status — 显示同步状态、上次推送/拉取时间、提供商信息
sync-engine.sh push — 强制立即同步
sync-engine.sh log — 显示提交历史(类似 git log)
sync-engine.sh rollback — 恢复到之前的状态
sync-engine.sh diff — 显示待处理的变更
软件包
track-packages.sh scan
track-packages.sh diff
track-packages.sh install — 显示命令,运行前询问确认
迁移
migrate.sh pull — 交互式恢复向导
migrate.sh push-identity — 仅限明确选择加入
配置文件
每台设备备份到其命名的配置文件(默认:主机名)。
配置文件相互独立——不同设备可以拥有不同的知识、记忆和软件包,互不干扰。
clawroam.sh profile show — 显示当前配置文件名称
clawroam.sh profile list — 列出远程存储中的所有配置文件
clawroam.sh profile rename <新名称> — 重命名此设备的配置文件
clawroam.sh profile pull <名称> — 将特定配置文件恢复到本设备
(用该配置文件的数据覆盖本地数据仓库,不影响源设备)
密钥管理
keypair.sh show-public — 显示公钥(用于添加到提供商)
keypair.sh rotate — 生成新密钥对,重新向提供商注册
行为规则
- 1. 设置后默认开启自动同步——如同 iCloud。用户无需考虑同步问题。变更在 30 秒内推送。
- 2. 未经明确许可,绝不同步 SOUL.md 或 IDENTITY.md。
- 3. 安装软件包前务必确认。 显示差异,让用户选择。
- 4. 私钥永不离开设备。 存储在 ~/.clawroam/keys/ 中,权限为 600。公钥向数据仓库提供商注册。
- 5. 冲突处理: 如果远程有用户未见的变更,显示差异让用户选择。对无冲突的变更自动合并(类似 git)。
- 6. 费用透明。 如果使用 ClawRoam Cloud,在用户询问时显示当前使用量和预估费用。绝不使用户对收费感到意外。
- 7. 离线优先。 一切在本地运行。同步在有网络连接时进行。变更排队,恢复在线后推送。
- 8. 配置文件默认相互独立。 每台设备推送到其命名的配置文件(默认:主机名)。配置文件永不自动合并。如果用户需要另一台设备的数据,必须使用 clawroam.sh profile pull <名称> 明确拉取该配置文件。
ClawRoam Cloud 定价
当用户询问定价时:
- - 前 50 MB 免费——足够大多数单用户数据仓库使用
- 之后 $0.005/MB/月(额外 100 MB 约 $0.50/月)
- 无按实例收费——可连接无限设备
- 无带宽费用——想同步多少次就同步多少次
- 示例:典型数据仓库 10-30 MB → 完全免费
- 示例:重度用户 200 MB → $0.75/月
- 示例:团队数据仓库 2 GB → 约 $10/月