@zshuangmu/agenthub 0.4.14 โ 0.4.16
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 -21
- package/README.md +268 -268
- package/package.json +41 -41
- package/src/api-server.js +518 -244
- package/src/cli.js +714 -671
- package/src/commands/api.js +9 -9
- package/src/commands/doctor.js +335 -335
- package/src/commands/info.js +15 -15
- package/src/commands/install.js +56 -56
- package/src/commands/list.js +78 -78
- package/src/commands/pack.js +249 -156
- package/src/commands/publish-remote.js +9 -9
- package/src/commands/publish.js +7 -7
- package/src/commands/rollback.js +59 -59
- package/src/commands/search.js +14 -14
- package/src/commands/serve.js +9 -9
- package/src/commands/stats.js +105 -105
- package/src/commands/uninstall.js +76 -76
- package/src/commands/update.js +54 -54
- package/src/commands/verify.js +133 -133
- package/src/commands/versions.js +75 -75
- package/src/commands/web.js +9 -9
- package/src/index.js +18 -18
- package/src/lib/auth.js +301 -0
- package/src/lib/bundle-transfer.js +58 -58
- package/src/lib/colors.js +60 -60
- package/src/lib/database.js +450 -244
- package/src/lib/debug.js +135 -135
- package/src/lib/fs-utils.js +107 -50
- package/src/lib/html.js +2163 -1824
- package/src/lib/http.js +168 -168
- package/src/lib/install.js +60 -60
- package/src/lib/manifest.js +124 -124
- package/src/lib/openclaw-config.js +40 -40
- package/src/lib/permissions.js +105 -0
- package/src/lib/privacy-engine.js +220 -0
- package/src/lib/registry.js +130 -130
- package/src/lib/remote.js +11 -11
- package/src/lib/security-scanner.js +233 -233
- package/src/lib/signing.js +158 -0
- package/src/lib/version-manager.js +77 -77
- package/src/server.js +176 -176
- package/src/web-server.js +135 -135
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 AgentHub
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 AgentHub
|
|
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
CHANGED
|
@@ -1,268 +1,268 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
# ๐ค AgentHub
|
|
4
|
-
|
|
5
|
-
**OpenClaw
|
|
6
|
-
|
|
7
|
-
[](https://www.npmjs.com/package/@zshuangmu/agenthub)
|
|
8
|
-
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://nodejs.org/)
|
|
10
|
-
[](https://github.com/itshaungmu/AgentHub)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
๐
|
|
15
|
-
|
|
16
|
-
[English](README.md) | [ไธญๆ](README_CN.md)
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## ๐ฏ AgentHub
|
|
23
|
-
|
|
24
|
-
AgentHub
|
|
25
|
-
- **Docker Hub**
|
|
26
|
-
- **npm**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
###
|
|
31
|
-
|
|
32
|
-
|
|
|
33
|
-
|
|
34
|
-
| ๐ฆ
|
|
35
|
-
| ๐
|
|
36
|
-
| โก
|
|
37
|
-
| ๐
|
|
38
|
-
|
|
39
|
-
###
|
|
40
|
-
|
|
41
|
-
- **โ
OpenClaw
|
|
42
|
-
- **โ
Agent
|
|
43
|
-
- **โ
AI
|
|
44
|
-
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
- โ
|
|
48
|
-
- โ
|
|
49
|
-
- โ
|
|
50
|
-
|
|
51
|
-
## ๐ฏ
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| Agent |
|
|
56
|
-
|
|
57
|
-
| **code-review-assistant** |
|
|
58
|
-
| **team-knowledge-assistant** |
|
|
59
|
-
| **product-doc-writer** |
|
|
60
|
-
|
|
61
|
-
###
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
#
|
|
65
|
-
agenthub pack --workspace ./samples/code-review-assistant --config ./samples/code-review-assistant/openclaw.json
|
|
66
|
-
|
|
67
|
-
#
|
|
68
|
-
agenthub publish ./bundles/code-review-assistant-1.0.0.agent --registry ./.registry
|
|
69
|
-
agenthub install code-review-assistant --registry ./.registry --target-workspace ./workspace
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## ๐ธ Screenshots
|
|
73
|
-
|
|
74
|
-

|
|
75
|
-
|
|
76
|
-
## ๐ 3
|
|
77
|
-
|
|
78
|
-
###
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
#
|
|
82
|
-
npm install -g @zshuangmu/agenthub
|
|
83
|
-
|
|
84
|
-
#
|
|
85
|
-
git clone https://github.com/itshaungmu/AgentHub.git
|
|
86
|
-
cd AgentHub && npm install && npm link
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
###
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# 1.
|
|
93
|
-
agenthub pack --workspace ./my-workspace --config openclaw.json
|
|
94
|
-
|
|
95
|
-
#
|
|
96
|
-
agenthub pack --workspace ./my-workspace --config openclaw.json --version 2.0.0
|
|
97
|
-
|
|
98
|
-
# 2.
|
|
99
|
-
agenthub publish ./bundles/my-agent.agent --registry ./.registry
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
###
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
#
|
|
106
|
-
agenthub install my-agent --registry ./.registry --target-workspace ./workspace
|
|
107
|
-
|
|
108
|
-
#
|
|
109
|
-
agenthub serve --registry ./.registry --port 3000
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### ๐ฏ
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
# 1.
|
|
120
|
-
git clone https://github.com/itshaungmu/AgentHub.git
|
|
121
|
-
cd AgentHub
|
|
122
|
-
|
|
123
|
-
# 2.
|
|
124
|
-
agenthub pack --workspace ./samples/code-review-assistant --config ./samples/code-review-assistant/openclaw.json
|
|
125
|
-
|
|
126
|
-
# 3.
|
|
127
|
-
agenthub publish ./bundles/code-review-assistant-1.0.0.agent --registry ./.registry
|
|
128
|
-
|
|
129
|
-
# 4.
|
|
130
|
-
agenthub install code-review-assistant --registry ./.registry --target-workspace ./my-workspace
|
|
131
|
-
|
|
132
|
-
# 5.
|
|
133
|
-
agenthub verify code-review-assistant --registry ./.registry --target-workspace ./my-workspace
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## ๐
|
|
139
|
-
|
|
140
|
-
### CLI
|
|
141
|
-
|
|
142
|
-
|
|
|
143
|
-
|
|
144
|
-
| `pack` |
|
|
145
|
-
| `publish` |
|
|
146
|
-
| `publish-remote` |
|
|
147
|
-
| `search` |
|
|
148
|
-
| `info` |
|
|
149
|
-
| `install` |
|
|
150
|
-
| `list` |
|
|
151
|
-
| `uninstall` |
|
|
152
|
-
| `verify` |
|
|
153
|
-
| `versions` |
|
|
154
|
-
| `update` |
|
|
155
|
-
| `rollback` |
|
|
156
|
-
| `stats` |
|
|
157
|
-
| `doctor` |
|
|
158
|
-
| `serve` |
|
|
159
|
-
| `api` |
|
|
160
|
-
| `web` |
|
|
161
|
-
|
|
162
|
-
### HTTP API
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
#
|
|
166
|
-
curl http://localhost:3001/api/health
|
|
167
|
-
|
|
168
|
-
#
|
|
169
|
-
curl http://localhost:3001/api/agents
|
|
170
|
-
|
|
171
|
-
#
|
|
172
|
-
curl "http://localhost:3001/api/agents?q=react"
|
|
173
|
-
|
|
174
|
-
#
|
|
175
|
-
curl http://localhost:3001/api/agents/my-agent
|
|
176
|
-
|
|
177
|
-
#
|
|
178
|
-
curl http://localhost:3001/api/agents/my-agent/download
|
|
179
|
-
|
|
180
|
-
#
|
|
181
|
-
curl http://localhost:3001/api/stats
|
|
182
|
-
|
|
183
|
-
#
|
|
184
|
-
curl "http://localhost:3001/api/stats/ranking?limit=10"
|
|
185
|
-
|
|
186
|
-
#
|
|
187
|
-
curl -X POST http://localhost:3001/api/publish -H "Content-Type: application/json" -d '{"slug":"my-agent","version":"1.0.0"}'
|
|
188
|
-
|
|
189
|
-
#
|
|
190
|
-
curl -X POST http://localhost:3001/api/publish-upload -H "Content-Type: application/json" -d '{"bundleData":"..."}'
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
### AI
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
curl http://localhost:3001/api/skills/agenthub-discover
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
## ๐
|
|
202
|
-
|
|
203
|
-
|
|
|
204
|
-
|
|
205
|
-
| [3
|
|
206
|
-
| [
|
|
207
|
-
| [
|
|
208
|
-
|
|
209
|
-
## ๐๏ธ
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
โโโโโโโโโโโโโโโโโโโ pack โโโโโโโโโโโโโโโโโโโ publish โโโโโโโโโโโโโโโโโโโ
|
|
213
|
-
โ OpenClaw โ โโโโโโโโโโโบ โ Bundle โ โโโโโโโโโโโบ โ Registry โ
|
|
214
|
-
โ Workspace โ โ (*.agent) โ โ (.registry) โ
|
|
215
|
-
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
|
|
216
|
-
โ
|
|
217
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
218
|
-
โ
|
|
219
|
-
โผ
|
|
220
|
-
โโโโโโโโโโโโโโโโโโโ
|
|
221
|
-
โ AgentHub โ
|
|
222
|
-
โ Web + API โ
|
|
223
|
-
โโโโโโโโโโโโโโโโโโโ
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
## ๐งช
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
#
|
|
230
|
-
npm test
|
|
231
|
-
|
|
232
|
-
#
|
|
233
|
-
node src/cli.js serve --registry ./.registry
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## ๐ณ Docker
|
|
237
|
-
|
|
238
|
-
```bash
|
|
239
|
-
#
|
|
240
|
-
NODE_ENV=production node src/cli.js serve --registry ./.registry --port 3000 --host 0.0.0.0
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
## ๐ค
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
- ๐ [
|
|
248
|
-
- ๐ก [
|
|
249
|
-
- ๐ง [
|
|
250
|
-
|
|
251
|
-
## ๐
|
|
252
|
-
|
|
253
|
-
[MIT License](LICENSE) ยฉ AgentHub Team
|
|
254
|
-
|
|
255
|
-
## ๐
|
|
256
|
-
|
|
257
|
-
-
|
|
258
|
-
-
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
<div align="center">
|
|
263
|
-
|
|
264
|
-
**[โฌ
|
|
265
|
-
|
|
266
|
-
Made with โค๏ธ by the AgentHub Team
|
|
267
|
-
|
|
268
|
-
</div>
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ๐ค AgentHub
|
|
4
|
+
|
|
5
|
+
**Packaging, Publishing & Distribution Platform for OpenClaw Agents**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@zshuangmu/agenthub)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](https://nodejs.org/)
|
|
10
|
+
[](https://github.com/itshaungmu/AgentHub)
|
|
11
|
+
|
|
12
|
+
**Turn your well-trained OpenClaw Agent into reusable, distributable, and upgradable standard assets**
|
|
13
|
+
|
|
14
|
+
๐ **Live Demo**: [https://agenthub.cyou](https://agenthub.cyou/)
|
|
15
|
+
|
|
16
|
+
[English](README.md) | [ไธญๆ](README_CN.md)
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## ๐ฏ What is AgentHub?
|
|
23
|
+
|
|
24
|
+
AgentHub is a packaging and distribution platform designed specifically for **OpenClaw**, similar to:
|
|
25
|
+
- **Docker Hub** for Docker containers
|
|
26
|
+
- **npm** for Node.js packages
|
|
27
|
+
|
|
28
|
+
But focused on **OpenClaw Agent distribution and replication**.
|
|
29
|
+
|
|
30
|
+
### Core Capabilities
|
|
31
|
+
|
|
32
|
+
| Capability | Description |
|
|
33
|
+
|------------|-------------|
|
|
34
|
+
| ๐ฆ **One-Click Packaging** | Package Agent's personality, memory, and skills into a standard Bundle |
|
|
35
|
+
| ๐ **Publish & Distribute** | Publish to local or remote Registry, generate shareable links |
|
|
36
|
+
| โก **One-Click Install** | Team members install via unified command, replicate complete Agent capabilities |
|
|
37
|
+
| ๐ **Version Management** | Full support for upgrades, rollbacks, and verification |
|
|
38
|
+
|
|
39
|
+
### Who is it for?
|
|
40
|
+
|
|
41
|
+
- **โ
OpenClaw Team Users**: Unified distribution, version management, team reuse
|
|
42
|
+
- **โ
Agent Creators**: Package and share your well-trained Agents
|
|
43
|
+
- **โ
AI Power Users**: Quickly acquire Agent capabilities trained by others
|
|
44
|
+
|
|
45
|
+
### Who is it NOT for?
|
|
46
|
+
|
|
47
|
+
- โ Non-OpenClaw users (currently only supports OpenClaw)
|
|
48
|
+
- โ Those needing a Prompt collection (please use dedicated Prompt tools)
|
|
49
|
+
- โ Single Skill distribution (please use ClawHub)
|
|
50
|
+
|
|
51
|
+
## ๐ฏ Official Sample Agents
|
|
52
|
+
|
|
53
|
+
We provide 3 official sample Agents to help you get started quickly:
|
|
54
|
+
|
|
55
|
+
| Agent | Description | Use Cases |
|
|
56
|
+
|-------|-------------|-----------|
|
|
57
|
+
| **code-review-assistant** | Code Review Assistant | Code quality review, security vulnerability identification |
|
|
58
|
+
| **team-knowledge-assistant** | Team Knowledge Q&A | Project information retrieval, new employee onboarding |
|
|
59
|
+
| **product-doc-writer** | Product Documentation Writer | Feature docs, user guides, API documentation |
|
|
60
|
+
|
|
61
|
+
### Quick Try
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Package any sample Agent
|
|
65
|
+
agenthub pack --workspace ./samples/code-review-assistant --config ./samples/code-review-assistant/openclaw.json
|
|
66
|
+
|
|
67
|
+
# Publish and install
|
|
68
|
+
agenthub publish ./bundles/code-review-assistant-1.0.0.agent --registry ./.registry
|
|
69
|
+
agenthub install code-review-assistant --registry ./.registry --target-workspace ./workspace
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## ๐ธ Screenshots
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
## ๐ 3 Steps to Get Started
|
|
77
|
+
|
|
78
|
+
### Step 1: Installation
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Install globally via npm
|
|
82
|
+
npm install -g @zshuangmu/agenthub
|
|
83
|
+
|
|
84
|
+
# Or clone from source
|
|
85
|
+
git clone https://github.com/itshaungmu/AgentHub.git
|
|
86
|
+
cd AgentHub && npm install && npm link
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Step 2: Package and Publish Your Agent
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# 1. Package your OpenClaw workspace
|
|
93
|
+
agenthub pack --workspace ./my-workspace --config openclaw.json
|
|
94
|
+
|
|
95
|
+
# Or specify a version number
|
|
96
|
+
agenthub pack --workspace ./my-workspace --config openclaw.json --version 2.0.0
|
|
97
|
+
|
|
98
|
+
# 2. Publish to Registry
|
|
99
|
+
agenthub publish ./bundles/my-agent.agent --registry ./.registry
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Step 3: Team Members Install and Use
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Team members install with one click
|
|
106
|
+
agenthub install my-agent --registry ./.registry --target-workspace ./workspace
|
|
107
|
+
|
|
108
|
+
# Or start the Web interface to browse
|
|
109
|
+
agenthub serve --registry ./.registry --port 3000
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Visit http://localhost:3000 to see your Agent!
|
|
113
|
+
|
|
114
|
+
### ๐ฏ Try Sample Agents
|
|
115
|
+
|
|
116
|
+
We provide an official sample Agent for quick experience:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# 1. Clone the repository
|
|
120
|
+
git clone https://github.com/itshaungmu/AgentHub.git
|
|
121
|
+
cd AgentHub
|
|
122
|
+
|
|
123
|
+
# 2. Package the sample Agent
|
|
124
|
+
agenthub pack --workspace ./samples/code-review-assistant --config ./samples/code-review-assistant/openclaw.json
|
|
125
|
+
|
|
126
|
+
# 3. Publish to local Registry
|
|
127
|
+
agenthub publish ./bundles/code-review-assistant-1.0.0.agent --registry ./.registry
|
|
128
|
+
|
|
129
|
+
# 4. Install to your workspace
|
|
130
|
+
agenthub install code-review-assistant --registry ./.registry --target-workspace ./my-workspace
|
|
131
|
+
|
|
132
|
+
# 5. Verify installation
|
|
133
|
+
agenthub verify code-review-assistant --registry ./.registry --target-workspace ./my-workspace
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## ๐ Command Documentation
|
|
139
|
+
|
|
140
|
+
### CLI Commands
|
|
141
|
+
|
|
142
|
+
| Command | Description |
|
|
143
|
+
|---------|-------------|
|
|
144
|
+
| `pack` | Package workspace as Agent Bundle (supports `--version` to specify version) |
|
|
145
|
+
| `publish` | Publish to local Registry |
|
|
146
|
+
| `publish-remote` | Publish to remote server |
|
|
147
|
+
| `search` | Search Agents in Registry |
|
|
148
|
+
| `info` | View Agent details |
|
|
149
|
+
| `install` | Install Agent to workspace |
|
|
150
|
+
| `list` | List installed Agents |
|
|
151
|
+
| `uninstall` | Uninstall an installed Agent |
|
|
152
|
+
| `verify` | Verify installed Agent integrity |
|
|
153
|
+
| `versions` | View Agent version history |
|
|
154
|
+
| `update` | Update Agent to latest version |
|
|
155
|
+
| `rollback` | Rollback Agent to specified version |
|
|
156
|
+
| `stats` | View Agent statistics |
|
|
157
|
+
| `doctor` | Diagnose AgentHub installation and environment issues |
|
|
158
|
+
| `serve` | Start Web + API services |
|
|
159
|
+
| `api` | Start API service only |
|
|
160
|
+
| `web` | Start Web frontend only |
|
|
161
|
+
|
|
162
|
+
### HTTP API
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
# Health check
|
|
166
|
+
curl http://localhost:3001/api/health
|
|
167
|
+
|
|
168
|
+
# List all Agents
|
|
169
|
+
curl http://localhost:3001/api/agents
|
|
170
|
+
|
|
171
|
+
# Search Agents
|
|
172
|
+
curl "http://localhost:3001/api/agents?q=react"
|
|
173
|
+
|
|
174
|
+
# Get Agent details
|
|
175
|
+
curl http://localhost:3001/api/agents/my-agent
|
|
176
|
+
|
|
177
|
+
# Download Agent Bundle
|
|
178
|
+
curl http://localhost:3001/api/agents/my-agent/download
|
|
179
|
+
|
|
180
|
+
# Get statistics
|
|
181
|
+
curl http://localhost:3001/api/stats
|
|
182
|
+
|
|
183
|
+
# Get download ranking
|
|
184
|
+
curl "http://localhost:3001/api/stats/ranking?limit=10"
|
|
185
|
+
|
|
186
|
+
# Publish Agent (POST)
|
|
187
|
+
curl -X POST http://localhost:3001/api/publish -H "Content-Type: application/json" -d '{"slug":"my-agent","version":"1.0.0"}'
|
|
188
|
+
|
|
189
|
+
# Upload and publish Agent (POST)
|
|
190
|
+
curl -X POST http://localhost:3001/api/publish-upload -H "Content-Type: application/json" -d '{"bundleData":"..."}'
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### AI Auto-Discovery
|
|
194
|
+
|
|
195
|
+
Let your AI assistant automatically discover available Agents:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
curl http://localhost:3001/api/skills/agenthub-discover
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## ๐ Tutorial Documentation
|
|
202
|
+
|
|
203
|
+
| Tutorial | Description |
|
|
204
|
+
|----------|-------------|
|
|
205
|
+
| [3 Steps to Replicate Agent](./docs/quick-start-3-steps.md) | 10-minute quick start guide |
|
|
206
|
+
| [Team Distribution Guide](./docs/team-distribution-guide.md) | How to standardize team Agent distribution |
|
|
207
|
+
| [FAQ](./docs/faq.md) | Frequently asked questions |
|
|
208
|
+
|
|
209
|
+
## ๐๏ธ Architecture
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
โโโโโโโโโโโโโโโโโโโ pack โโโโโโโโโโโโโโโโโโโ publish โโโโโโโโโโโโโโโโโโโ
|
|
213
|
+
โ OpenClaw โ โโโโโโโโโโโบ โ Bundle โ โโโโโโโโโโโบ โ Registry โ
|
|
214
|
+
โ Workspace โ โ (*.agent) โ โ (.registry) โ
|
|
215
|
+
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
|
|
216
|
+
โ
|
|
217
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
218
|
+
โ
|
|
219
|
+
โผ
|
|
220
|
+
โโโโโโโโโโโโโโโโโโโ
|
|
221
|
+
โ AgentHub โ
|
|
222
|
+
โ Web + API โ
|
|
223
|
+
โโโโโโโโโโโโโโโโโโโ
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## ๐งช Development
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
# Run tests
|
|
230
|
+
npm test
|
|
231
|
+
|
|
232
|
+
# Start development server
|
|
233
|
+
node src/cli.js serve --registry ./.registry
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## ๐ณ Docker Deployment
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
# Production startup (inside container)
|
|
240
|
+
NODE_ENV=production node src/cli.js serve --registry ./.registry --port 3000 --host 0.0.0.0
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## ๐ค Contributing
|
|
244
|
+
|
|
245
|
+
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
|
246
|
+
|
|
247
|
+
- ๐ [Report a Bug](https://github.com/itshaungmu/AgentHub/issues/new?template=bug_report.md)
|
|
248
|
+
- ๐ก [Request a Feature](https://github.com/itshaungmu/AgentHub/issues/new?template=feature_request.md)
|
|
249
|
+
- ๐ง [Submit a PR](https://github.com/itshaungmu/AgentHub/pulls)
|
|
250
|
+
|
|
251
|
+
## ๐ License
|
|
252
|
+
|
|
253
|
+
[MIT License](LICENSE) ยฉ AgentHub Team
|
|
254
|
+
|
|
255
|
+
## ๐ Acknowledgments
|
|
256
|
+
|
|
257
|
+
- Built for the [OpenClaw](https://github.com/openclaw) ecosystem
|
|
258
|
+
- Inspired by npm and Docker Hub
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
<div align="center">
|
|
263
|
+
|
|
264
|
+
**[โฌ Back to Top](#agenthub)**
|
|
265
|
+
|
|
266
|
+
Made with โค๏ธ by the AgentHub Team
|
|
267
|
+
|
|
268
|
+
</div>
|