omni-sync-cloud
它能做什么
这项技能展示如何让 OmniRoute 设置与云存储和云端工作节点保持同步。适合想要远程访问或在云端保留一份配置副本的管理员。
适用场景
- ✓当用户想把 OmniRoute 设置同步到云存储的时候。
- ✓当用户想登录云端工作节点或更新其凭证的时候。
- ✓当用户想通过云端处理模型请求的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-sync-cloud/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我的 OmniRoute 设置同步到云端,并确认云端工作节点可以登录。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出用于与云端工作节点进行身份验证、更新其凭证、通过它解析模型请求以及读取云端模型别名的调用,全部使用 bearer 令牌。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Synchronise OmniRoute configuration, provider connections, and settings to/from cloud storage. Manage cloud worker authentication and remote backup targets.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
POST /api/cloud/auth
Authenticate with cloud worker
Authenticates with the OmniRoute cloud worker for remote access.
curl -X POST http://localhost:20128/api/cloud/auth \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
PUT /api/cloud/credentials/update
Update cloud worker credentials
curl -X PUT http://localhost:20128/api/cloud/credentials/update \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/cloud/model/resolve
Resolve model via cloud
Resolves a model request through the cloud worker.
curl -X POST http://localhost:20128/api/cloud/model/resolve \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/cloud/models/alias
Get cloud model aliases
curl http://localhost:20128/api/cloud/models/alias \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PUT /api/cloud/models/alias
Update cloud model alias
curl -X PUT http://localhost:20128/api/cloud/models/alias \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/sync/cloud
Sync with cloud
curl -X POST http://localhost:20128/api/sync/cloud \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/sync/initialize
Initialize cloud sync
curl -X POST http://localhost:20128/api/sync/initialize \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/sync/bundle
GET sync › bundle
curl http://localhost:20128/api/sync/bundle \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/sync/tokens
GET sync › tokens
curl http://localhost:20128/api/sync/tokens \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/sync/tokens
POST sync › tokens
curl -X POST http://localhost:20128/api/sync/tokens \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/sync/tokens/{id}
DELETE sync › tokens › <id>
curl -X DELETE http://localhost:20128/api/sync/tokens/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
常见问题
同步的是什么内容?
这项技能说明,配置、提供商连接和设置可以在本地与云存储之间双向同步。
云同步需要登录吗?
需要。请求需要 bearer 令牌,而云端工作节点的登录是单独的一步。
我能设置远程备份目标吗?
这项技能说明它可以管理远程备份目标。
详情
作者的原始描述
Synchronise OmniRoute configuration, provider connections, and settings to/from cloud storage. Manage cloud worker authentication and remote backup targets.
热度
- GitHub 星标
- 84k
- 排名
- #1436
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …