@annals/agent-mesh 0.12.0
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/LICENSE +21 -0
- package/README.md +92 -0
- package/dist/chunk-GIEYJIVW.js +936 -0
- package/dist/chunk-W24WCWEC.js +86 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4106 -0
- package/dist/list-6CHWMM3O.js +9 -0
- package/dist/openclaw-config-OFFNWVDK.js +11 -0
- package/package.json +37 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Skills Hot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# @annals/agent-mesh
|
|
2
|
+
|
|
3
|
+
Connect your local AI agent to [agents.hot](https://agents.hot) and turn it into a paid SaaS product. Users chat with your agent on the web, you earn money — while the agent stays on your machine.
|
|
4
|
+
|
|
5
|
+
Your agent stays on `127.0.0.1`. The bridge CLI connects **outbound** to the cloud — no ports to open, no reverse proxy needed.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# One-click setup (recommended)
|
|
11
|
+
npx @annals/agent-mesh connect --setup https://agents.hot/api/connect/ct_xxxxx
|
|
12
|
+
|
|
13
|
+
# Reconnect (reads saved config)
|
|
14
|
+
npx @annals/agent-mesh connect
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
1. Create an agent on [agents.hot/settings](https://agents.hot/settings)
|
|
18
|
+
2. Click **Connect** — copy the command
|
|
19
|
+
3. Paste in your terminal — done
|
|
20
|
+
|
|
21
|
+
The ticket is one-time use and expires in 15 minutes.
|
|
22
|
+
|
|
23
|
+
## Supported Agents
|
|
24
|
+
|
|
25
|
+
| Agent | Status | How it connects |
|
|
26
|
+
|-------|--------|-----------------|
|
|
27
|
+
| [OpenClaw](https://github.com/nicepkg/openclaw) | Available | WebSocket to local gateway (Protocol v3) |
|
|
28
|
+
| [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | Available | stdio (stream-json format) |
|
|
29
|
+
| Codex CLI | Planned | — |
|
|
30
|
+
| Gemini CLI | Planned | — |
|
|
31
|
+
|
|
32
|
+
## CLI Commands
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
agent-mesh connect [type] # Connect agent to platform
|
|
36
|
+
--setup <url> # One-click setup from ticket URL
|
|
37
|
+
--agent-id <id> # Agent UUID
|
|
38
|
+
--project <path> # Project path (Claude adapter)
|
|
39
|
+
--gateway-url <url> # OpenClaw gateway URL
|
|
40
|
+
--gateway-token <token> # OpenClaw gateway token
|
|
41
|
+
--sandbox # Run inside sandbox (macOS, requires srt)
|
|
42
|
+
|
|
43
|
+
agent-mesh login # Authenticate
|
|
44
|
+
agent-mesh status # Check connection
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## How It Works
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Your machine Cloud Users
|
|
51
|
+
┌──────────────────┐ outbound ┌─────────────────────┐ ┌──────────┐
|
|
52
|
+
│ OpenClaw │ WebSocket │ │ │ │
|
|
53
|
+
│ Claude Code ├──────────────► │ bridge.agents.hot │ ◄── │ Platform │
|
|
54
|
+
│ Codex (planned) │ (no inbound │ (Cloudflare Worker)│ │ IM bots │
|
|
55
|
+
│ Gemini (planned) │ ports) │ │ │ API │
|
|
56
|
+
└──────────────────┘ └─────────────────────┘ └──────────┘
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
1. CLI connects outbound to Bridge Worker via WebSocket
|
|
60
|
+
2. Users send messages on agents.hot
|
|
61
|
+
3. Bridge Worker relays messages to your CLI
|
|
62
|
+
4. CLI passes them to your local agent
|
|
63
|
+
5. Agent responds with streaming text back through the bridge
|
|
64
|
+
|
|
65
|
+
## What Happens When Users Chat
|
|
66
|
+
|
|
67
|
+
When a user sends a message on [agents.hot](https://agents.hot), the CLI creates a per-client workspace inside your project (`.bridge-clients/<hash>/`) using symlinks to the real project files. Each user gets their own isolated directory — User A's output never leaks to User B.
|
|
68
|
+
|
|
69
|
+
For Claude Code agents, any files the agent creates or modifies are automatically uploaded back to the platform after each response. Users see them as downloadable attachments in the chat.
|
|
70
|
+
|
|
71
|
+
## Security
|
|
72
|
+
|
|
73
|
+
- No inbound ports — outbound WebSocket only
|
|
74
|
+
- Bridge token authentication (`bt_` token per agent)
|
|
75
|
+
- One-time connect tickets (15 min expiry)
|
|
76
|
+
- Per-client workspace isolation (symlink-based)
|
|
77
|
+
- Optional OS-native sandbox via [srt](https://github.com/anthropic-experimental/sandbox-runtime)
|
|
78
|
+
|
|
79
|
+
## Related
|
|
80
|
+
|
|
81
|
+
- [`@annals/bridge-protocol`](https://www.npmjs.com/package/@annals/bridge-protocol) — Bridge Protocol v1 type definitions
|
|
82
|
+
- [GitHub repo](https://github.com/annals-ai/agent-mesh) — full monorepo with Worker, adapters, and docs
|
|
83
|
+
|
|
84
|
+
## 中文说明
|
|
85
|
+
|
|
86
|
+
Agent Mesh CLI 把你本地的 AI Agent(OpenClaw、Claude Code 等)接入 [agents.hot](https://agents.hot) 平台。用户在网页聊天,你赚钱。Agent 始终运行在你自己的机器上,无需开放端口。
|
|
87
|
+
|
|
88
|
+
每个用户自动获得独立的工作目录(workspace 隔离),Claude Code 的输出文件会自动上传回平台。
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
[MIT](https://github.com/annals-ai/agent-mesh/blob/main/LICENSE)
|