openclaw-bridge 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/openclaw.plugin.json +2 -2
- package/package.json +2 -1
- package/src/heartbeat.ts +1 -0
- package/src/types.ts +1 -0
package/README.md
CHANGED
|
@@ -47,11 +47,11 @@ Add to `openclaw.json` under `plugins.entries` (replace the API key and server U
|
|
|
47
47
|
"agentId": "my-agent",
|
|
48
48
|
"agentName": "My Agent",
|
|
49
49
|
"registry": {
|
|
50
|
-
"baseUrl": "http://
|
|
50
|
+
"baseUrl": "http://your-server:3080",
|
|
51
51
|
"apiKey": "your-hub-api-key"
|
|
52
52
|
},
|
|
53
53
|
"fileRelay": {
|
|
54
|
-
"baseUrl": "http://
|
|
54
|
+
"baseUrl": "http://your-server:3080",
|
|
55
55
|
"apiKey": "your-hub-api-key"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -114,6 +114,39 @@ User ←→ Discord DM ←→ Main Gateway
|
|
|
114
114
|
- [openclaw-bridge-hub](https://www.npmjs.com/package/openclaw-bridge-hub) v0.2.4+ running on a reachable server
|
|
115
115
|
- OpenClaw gateway 2026.3.24+
|
|
116
116
|
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 中文说明
|
|
120
|
+
|
|
121
|
+
openclaw-bridge 是 [OpenClaw](https://github.com/nicepkg/openclaw) 的跨网关通信插件,让独立运行的 Agent 网关之间能够互相发现、传输文件、实时传话和无缝切换对话。
|
|
122
|
+
|
|
123
|
+
### 核心功能
|
|
124
|
+
|
|
125
|
+
- **Agent 发现** — 通过心跳自动注册和发现在线 Agent
|
|
126
|
+
- **文件传输** — Agent 之间发送文件(同机直传,跨机走 Hub 中转)
|
|
127
|
+
- **消息中继** — 通过 Hub 向任意 Agent 发消息并等待回复(传话模式)
|
|
128
|
+
- **会话交接** — 将对话无缝切换给其他 Agent(Handoff 模式)
|
|
129
|
+
- **超级用户工具** — 读写远程 Agent 文件、重启远程网关
|
|
130
|
+
- **自动配置** — 首次启动时自动补全推荐配置项
|
|
131
|
+
|
|
132
|
+
### 快速开始
|
|
133
|
+
|
|
134
|
+
1. 先在服务器部署 [openclaw-bridge-hub](https://www.npmjs.com/package/openclaw-bridge-hub)
|
|
135
|
+
2. 安装本插件:`openclaw plugins install openclaw-bridge`
|
|
136
|
+
3. 在 `openclaw.json` 中配置 Hub 地址和 API Key
|
|
137
|
+
4. 启动网关,插件会自动注册和连接
|
|
138
|
+
|
|
139
|
+
### 使用场景
|
|
140
|
+
|
|
141
|
+
- 用户在 DM 中让 Main Bot 传话给 PM Bot
|
|
142
|
+
- 用户要求切换到其他 Bot 继续对话,无需换频道
|
|
143
|
+
- 跨机器部署的 Agent 之间互相通信
|
|
144
|
+
- Superuser 远程管理其他 Agent 的文件和生命周期
|
|
145
|
+
|
|
146
|
+
## Author
|
|
147
|
+
|
|
148
|
+
**Bill Zhao** — [LinkedIn](https://www.linkedin.com/in/billzhaodi/)
|
|
149
|
+
|
|
117
150
|
## License
|
|
118
151
|
|
|
119
152
|
MIT
|
package/openclaw.plugin.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"registry.baseUrl": {
|
|
18
18
|
"label": "OpenViking URL",
|
|
19
|
-
"placeholder": "http://
|
|
19
|
+
"placeholder": "http://your-server:1933",
|
|
20
20
|
"help": "OpenViking server for gateway registry"
|
|
21
21
|
},
|
|
22
22
|
"registry.apiKey": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"fileRelay.baseUrl": {
|
|
27
27
|
"label": "FileRelay URL",
|
|
28
|
-
"placeholder": "http://
|
|
28
|
+
"placeholder": "http://your-server:3080",
|
|
29
29
|
"help": "FileRelay server for cross-machine file transfer"
|
|
30
30
|
},
|
|
31
31
|
"fileRelay.apiKey": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"author": "Bill Zhao (https://www.linkedin.com/in/billzhaodi/)",
|
|
4
5
|
"description": "Cross-gateway communication plugin for OpenClaw — agent discovery, file transfer, real-time messaging, and session handoff",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "src/index.ts",
|
package/src/heartbeat.ts
CHANGED