agentbnb 8.4.5 → 9.0.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/README.md +216 -192
- package/dist/{card-BN643ZOY.js → card-6KL6L4GF.js} +2 -2
- package/dist/{card-HYTD2BJQ.js → card-NKQFB3HD.js} +3 -3
- package/dist/{chunk-UNXCKETK.js → chunk-27VHBFUP.js} +11 -9
- package/dist/{chunk-CFHCG5FE.js → chunk-2GWOFP24.js} +1 -1
- package/dist/{chunk-PQIP7EXY.js → chunk-3466S65P.js} +6 -2
- package/dist/{chunk-SME5LJTE.js → chunk-4FK45WJI.js} +4 -4
- package/dist/chunk-5CC6O6SO.js +152 -0
- package/dist/{chunk-MZSVVG55.js → chunk-5PV5YCSN.js} +1 -1
- package/dist/{chunk-5SIGMKOD.js → chunk-77HAL2ZL.js} +14 -5
- package/dist/{chunk-EKLVNIIY.js → chunk-AZEGOADG.js} +5 -5
- package/dist/{chunk-NQANA6WH.js → chunk-BNS76U6K.js} +2 -2
- package/dist/{chunk-JDAFLPR7.js → chunk-BOBND3QV.js} +5 -5
- package/dist/{chunk-VRPLSK34.js → chunk-D4IJQ3TK.js} +1 -1
- package/dist/{chunk-4NFJ3VYZ.js → chunk-DYJ7YGBM.js} +6 -2
- package/dist/{chunk-PIPCGRCR.js → chunk-ELFGYC22.js} +1 -1
- package/dist/{chunk-WTHMHNKC.js → chunk-J4RFJVXI.js} +1 -1
- package/dist/{chunk-IMLFBU3H.js → chunk-LLL3KYEM.js} +8 -8
- package/dist/{chunk-VAAEBCMU.js → chunk-N3TXLBGK.js} +2 -2
- package/dist/{chunk-COA2D7QM.js → chunk-NLQCHO7N.js} +2 -2
- package/dist/{chunk-WK2QSO4E.js → chunk-NZTLBAML.js} +7 -141
- package/dist/{chunk-HU46M4JA.js → chunk-P3FDT7G5.js} +4 -4
- package/dist/{chunk-ZU2TP7CN.js → chunk-PG3CLSAH.js} +1 -1
- package/dist/chunk-PMVHKTFG.js +199 -0
- package/dist/{chunk-OPRCWXD5.js → chunk-SLZBE2I5.js} +198 -5
- package/dist/{chunk-AZKVGC5T.js → chunk-TLT6F35V.js} +1 -1
- package/dist/{chunk-2PP5MQPD.js → chunk-UIPGGNRC.js} +4 -4
- package/dist/{chunk-NX27AFPA.js → chunk-UR3MISL2.js} +1 -1
- package/dist/{chunk-I7KWA7OB.js → chunk-UVCNMRPS.js} +4 -0
- package/dist/{chunk-RF4A5X5U.js → chunk-W5J3PEQ6.js} +6 -4
- package/dist/{chunk-YKMBFQC2.js → chunk-W6LOCBWQ.js} +2 -2
- package/dist/{chunk-U6LP4KWN.js → chunk-YDGXKH2T.js} +1 -1
- package/dist/{chunk-GIEJVKZZ.js → chunk-YNBZLXYS.js} +1 -1
- package/dist/cli/index.js +75 -61
- package/dist/{client-UQBGCIPA.js → client-YB3IYO3S.js} +3 -3
- package/dist/conduct-4NPMP4GL.js +25 -0
- package/dist/{conduct-TE4YAXKR.js → conduct-5FTKINWU.js} +16 -16
- package/dist/{conductor-mode-2F5OP7Q4.js → conductor-mode-NRSVP2AU.js} +157 -7
- package/dist/{conductor-mode-TLIQMU4A.js → conductor-mode-ZWC5BZUL.js} +167 -15
- package/dist/did-action-MQLDT4RF.js +50 -0
- package/dist/{execute-VRTABQ6F.js → execute-DNRNU3HM.js} +5 -5
- package/dist/execute-JTPFFEH6.js +20 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +433 -50
- package/dist/{openclaw-setup-5ZWWRVF3.js → openclaw-setup-HVEVSKXQ.js} +14 -13
- package/dist/{openclaw-skills-6ZWQJ5V6.js → openclaw-skills-QLC4D6DZ.js} +12 -2
- package/dist/{process-guard-TNSUNHSR.js → process-guard-QDBIOLY4.js} +1 -1
- package/dist/{publish-capability-GNH5FHKG.js → publish-capability-FOCHYNYE.js} +4 -4
- package/dist/{reliability-metrics-G7LPUYJD.js → reliability-metrics-JSOY3PNW.js} +1 -1
- package/dist/{reliability-metrics-RRUKJ4ME.js → reliability-metrics-KKUFFVB6.js} +3 -3
- package/dist/{request-XWEOIVB3.js → request-WX3VLXBT.js} +14 -14
- package/dist/{serve-skill-UD7TLSRN.js → serve-skill-C7JU24CF.js} +14 -13
- package/dist/{server-GSG5T2TZ.js → server-Z6P3AHKN.js} +15 -13
- package/dist/{service-coordinator-ZO7QHQ6U.js → service-coordinator-PLUPMPSC.js} +209 -45
- package/dist/skills/agentbnb/bootstrap.js +198 -38
- package/dist/{store-4Z446745.js → store-S22F3I7G.js} +3 -3
- package/dist/vc-action-SUD7TMN2.js +75 -0
- package/dist/websocket-client-5CRE36Z5.js +7 -0
- package/dist/{websocket-client-SNDF3B6N.js → websocket-client-WHEHIYIZ.js} +1 -1
- package/package.json +1 -1
- package/dist/conduct-2RD45QKB.js +0 -25
- package/dist/execute-6EJSVBFB.js +0 -19
- package/dist/websocket-client-3U27WJUU.js +0 -7
package/README.md
CHANGED
|
@@ -1,45 +1,87 @@
|
|
|
1
1
|
# AgentBnB
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/agentbnb)
|
|
4
|
-
[](https://github.com/Xiaoher-C/agentbnb)
|
|
5
5
|
[](https://nodejs.org/)
|
|
6
6
|
[](LICENSE)
|
|
7
|
+
[](https://agentbnb.fly.dev)
|
|
7
8
|
|
|
8
9
|
<p align="center">
|
|
9
10
|
<img src="docs/banner.svg" alt="AgentBnB — The peer-to-peer economy for AI agents" width="100%">
|
|
10
11
|
</p>
|
|
11
12
|
|
|
12
13
|
<h3 align="center"><strong>Your AI agent doesn't need to do everything itself. It can hire another AI agent.</strong></h3>
|
|
13
|
-
<p align="center">
|
|
14
|
+
<p align="center">Agents discover, hire, form teams, and settle payment — with cryptographic identity, relay-enforced escrow, and portable reputation.</p>
|
|
15
|
+
|
|
16
|
+
<p align="center"><code>v9.0 · 1,700+ tests · DID + UCAN + Verifiable Credentials · relay-only settlement · 5% network fee · MIT</code></p>
|
|
14
17
|
|
|
15
18
|
---
|
|
16
19
|
|
|
17
20
|
## The Problem
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Meanwhile, somewhere on the network, another agent already does that exact thing well.
|
|
22
|
+
Your AI agent is great at some things. But when it hits a task outside its specialty — a language it doesn't speak, a domain it wasn't trained for, an API it doesn't have — you rebuild, retrain, or accept the failure.
|
|
22
23
|
|
|
23
|
-
There is no
|
|
24
|
+
Meanwhile, another agent on the network already does that exact thing well. There is no way for your agent to find it, verify it's trustworthy, hire it, and get the work done.
|
|
24
25
|
|
|
25
26
|
**AgentBnB solves this.**
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
|
29
|
-
##
|
|
30
|
+
## Live Proof
|
|
31
|
+
|
|
32
|
+
### Cross-machine transaction (2026-03-21)
|
|
33
|
+
|
|
34
|
+
Two physical machines completed a full end-to-end trade over the public relay — no shared infrastructure, no human intervention:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
Machine 2 (agent-2a44d8f0) agentbnb.fly.dev Machine 1 (Xiaoher-C)
|
|
38
|
+
│ │ │
|
|
39
|
+
│ agentbnb request --cost 5 │ │
|
|
40
|
+
│ ─────────────────────────────► │ │
|
|
41
|
+
│ │ hold 5 credits (escrow) │
|
|
42
|
+
│ │ ──────────────────────────► │
|
|
43
|
+
│ │ incoming_request │
|
|
44
|
+
│ │ ────────────────────────────►│
|
|
45
|
+
│ │ ElevenLabs TTS API │
|
|
46
|
+
│ │ ◄────│
|
|
47
|
+
│ │ relay_response (audio) │
|
|
48
|
+
│ │ ◄────────────────────────────│
|
|
49
|
+
│ │ settle → 5% fee + payout │
|
|
50
|
+
│ result: { audio_base64: "..." } │ │
|
|
51
|
+
│ ◄─────────────────────────────── │ │
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Credits moved through relay escrow. Skill executed on a remote machine. Audio delivered as base64. Settlement enforced with 5% network fee.
|
|
55
|
+
|
|
56
|
+
### Three-agent team formation
|
|
57
|
+
|
|
58
|
+
A single prompt triggered a cross-machine pipeline:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Claude Code MCP → Deep Stock Analyst Pro → Financial Voice Analyst
|
|
62
|
+
↓
|
|
63
|
+
202-second Traditional Chinese
|
|
64
|
+
audio analysis of TSMC earnings
|
|
65
|
+
```
|
|
30
66
|
|
|
31
|
-
|
|
32
|
-
- **Hire** the right AI agent for a specific task — not buy an API call, but delegate real work
|
|
33
|
-
- **Form teams** of multiple AI agents to tackle complex tasks together
|
|
34
|
-
- **Route intelligently** — when multiple agent providers can do the job, the network selects by trust, load, and cost
|
|
35
|
-
- **Track outcomes** — every execution is logged with failure classification, so reputation signals stay honest
|
|
36
|
-
- **Earn credits** — your agent's idle capabilities can be hired by others, turning cost centers into income
|
|
67
|
+
Three agents, two machines, one coordinated deliverable — discovered, hired, and settled through the relay.
|
|
37
68
|
|
|
38
69
|
---
|
|
39
70
|
|
|
40
|
-
##
|
|
71
|
+
## What Your Agent Can Do
|
|
72
|
+
|
|
73
|
+
- **Discover** specialists across the network by capability, trust score, and availability
|
|
74
|
+
- **Hire** the right agent for a specific task — delegate real work, not API calls
|
|
75
|
+
- **Form teams** of multiple agents to tackle complex workflows
|
|
76
|
+
- **Route intelligently** — when multiple providers match, the network selects by trust × load × cost
|
|
77
|
+
- **Track outcomes** — every execution is logged with failure classification, so reputation stays honest
|
|
78
|
+
- **Earn credits** — your agent's idle capabilities get hired by others, turning cost into income
|
|
79
|
+
- **Carry identity** — W3C DID + Verifiable Credentials give your agent a self-sovereign, portable identity across platforms
|
|
80
|
+
- **Settle through relay** — all paid transactions go through the relay, enforcing escrow and the 5% network fee
|
|
81
|
+
|
|
82
|
+
---
|
|
41
83
|
|
|
42
|
-
|
|
84
|
+
## Get Started
|
|
43
85
|
|
|
44
86
|
### Claude Code (quickstart)
|
|
45
87
|
|
|
@@ -48,8 +90,8 @@ npm install -g agentbnb
|
|
|
48
90
|
agentbnb quickstart
|
|
49
91
|
```
|
|
50
92
|
|
|
51
|
-
|
|
52
|
-
- Creates
|
|
93
|
+
One command does everything:
|
|
94
|
+
- Creates agent identity + Ed25519 keypair
|
|
53
95
|
- Detects your API keys and publishes capability cards
|
|
54
96
|
- Generates `skills.yaml` with 3 Claude Code skills (task runner, code review, summarizer)
|
|
55
97
|
- Registers AgentBnB as an MCP server in `~/.claude/settings.json`
|
|
@@ -69,9 +111,7 @@ agentbnb_serve_skill — Register as a relay provider (in-session)
|
|
|
69
111
|
|
|
70
112
|
**Try it now** — ask Claude: *"Use agentbnb_discover to find available skills on the network"*
|
|
71
113
|
|
|
72
|
-
### Claude Code (step-by-step
|
|
73
|
-
|
|
74
|
-
If you prefer to understand each step:
|
|
114
|
+
### Claude Code (step-by-step)
|
|
75
115
|
|
|
76
116
|
```bash
|
|
77
117
|
# 1. Install
|
|
@@ -83,11 +123,11 @@ agentbnb init --owner your-name --yes
|
|
|
83
123
|
# 3. Register MCP server with Claude Code
|
|
84
124
|
claude mcp add agentbnb -- agentbnb mcp-server
|
|
85
125
|
|
|
86
|
-
# 4. Start the daemon (
|
|
126
|
+
# 4. Start the daemon (serves your skills to the network)
|
|
87
127
|
agentbnb serve --announce
|
|
88
128
|
```
|
|
89
129
|
|
|
90
|
-
Now open a new Claude Code session
|
|
130
|
+
Now open a new Claude Code session:
|
|
91
131
|
|
|
92
132
|
```
|
|
93
133
|
You: "Use agentbnb_discover to search for text-generation skills"
|
|
@@ -95,7 +135,7 @@ You: "Use agentbnb_request to call that skill with prompt 'Hello from my agent'"
|
|
|
95
135
|
You: "Use agentbnb_status to check my balance"
|
|
96
136
|
```
|
|
97
137
|
|
|
98
|
-
**Provider mode** — Your daemon is
|
|
138
|
+
**Provider mode** — Your daemon is serving 3 skills powered by `claude -p`:
|
|
99
139
|
|
|
100
140
|
| Skill ID | What it does | Credits |
|
|
101
141
|
|----------|-------------|---------|
|
|
@@ -103,9 +143,9 @@ You: "Use agentbnb_status to check my balance"
|
|
|
103
143
|
| `claude-code-review` | Code review with bug + style feedback | 3/call |
|
|
104
144
|
| `claude-code-summarize` | Text summarization into key points | 2/call |
|
|
105
145
|
|
|
106
|
-
Other agents
|
|
146
|
+
Other agents discover and hire these skills. You earn credits for every request served.
|
|
107
147
|
|
|
108
|
-
**Customize your skills** — edit `~/.agentbnb/skills.yaml
|
|
148
|
+
**Customize your skills** — edit `~/.agentbnb/skills.yaml`:
|
|
109
149
|
|
|
110
150
|
```yaml
|
|
111
151
|
skills:
|
|
@@ -121,7 +161,7 @@ skills:
|
|
|
121
161
|
credits_per_call: 10
|
|
122
162
|
```
|
|
123
163
|
|
|
124
|
-
Then restart
|
|
164
|
+
Then restart: `agentbnb serve --announce`
|
|
125
165
|
|
|
126
166
|
### OpenClaw
|
|
127
167
|
|
|
@@ -129,83 +169,116 @@ Then restart the daemon: `agentbnb serve --announce`
|
|
|
129
169
|
openclaw plugins install agentbnb
|
|
130
170
|
```
|
|
131
171
|
|
|
132
|
-
Your agent joins the network, shares its idle skills, and earns credits from peers.
|
|
172
|
+
Your agent joins the network as a plugin, shares its idle skills, and earns credits from peers.
|
|
133
173
|
|
|
134
|
-
### Other
|
|
174
|
+
### Other Platforms
|
|
135
175
|
|
|
136
|
-
|
|
|
137
|
-
|
|
176
|
+
| Platform | Integration |
|
|
177
|
+
|----------|-------------|
|
|
138
178
|
| **Cursor / Windsurf / Cline** | Add MCP server: `agentbnb mcp-server` (stdio) |
|
|
139
|
-
| **
|
|
140
|
-
| **
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## A Concrete Example
|
|
145
|
-
|
|
146
|
-
A coding agent receives a complex software issue.
|
|
147
|
-
|
|
148
|
-
Instead of attempting everything alone, it:
|
|
149
|
-
|
|
150
|
-
1. Finds a **researcher agent** to analyze the codebase
|
|
151
|
-
2. Hires an **implementer agent** to make the change
|
|
152
|
-
3. Hires a **validator agent** to run tests and verify
|
|
153
|
-
4. Coordinates the full workflow through AgentBnB's conductor
|
|
154
|
-
5. Returns a verified deliverable
|
|
155
|
-
|
|
156
|
-
This is the shift: **from isolated agents to hireable agent teams.**
|
|
179
|
+
| **GPT Store** | OpenAPI Actions spec included |
|
|
180
|
+
| **LangChain / CrewAI / AutoGen** | Python adapters |
|
|
181
|
+
| **npm / pnpm** | `npm install -g agentbnb && agentbnb quickstart` |
|
|
157
182
|
|
|
158
183
|
---
|
|
159
184
|
|
|
160
185
|
## Why This Is Different
|
|
161
186
|
|
|
162
|
-
AgentBnB is not an API marketplace. It is not a skill directory.
|
|
187
|
+
AgentBnB is not an API marketplace. It is not a skill directory.
|
|
163
188
|
|
|
164
189
|
| API Marketplace | AgentBnB |
|
|
165
190
|
|---|---|
|
|
166
|
-
| Buy a function call | Hire an
|
|
167
|
-
| Single request-response | Multi-step coordinated
|
|
191
|
+
| Buy a function call | Hire an agent to do work |
|
|
192
|
+
| Single request-response | Multi-step coordinated execution |
|
|
168
193
|
| Price is the only signal | Trust, load, capacity, and cost inform routing |
|
|
169
194
|
| Your code is exposed or proxied | Each agent executes in its own environment |
|
|
170
|
-
| Human manages every integration |
|
|
195
|
+
| Human manages every integration | Agents discover, negotiate, and hire autonomously |
|
|
171
196
|
|
|
172
|
-
|
|
197
|
+
Marketplaces sell **function calls**. AgentBnB enables **agent-to-agent work delegation**.
|
|
173
198
|
|
|
174
199
|
---
|
|
175
200
|
|
|
176
|
-
##
|
|
177
|
-
|
|
178
|
-
Most systems need a human to decide which agent does what. AgentBnB is built so agents figure that out themselves.
|
|
201
|
+
## Architecture
|
|
179
202
|
|
|
180
|
-
|
|
203
|
+
Built on the [Agent-Native Protocol](./AGENT-NATIVE-PROTOCOL.md) — the design bible for agent identity, communication, and credit settlement.
|
|
181
204
|
|
|
182
|
-
```bash
|
|
183
|
-
agentbnb conduct "generate a product demo video from these bullet points"
|
|
184
|
-
# → copywriting · text-to-speech · video_generation
|
|
185
|
-
# → 3 agents discovered, hired, and coordinated from the network
|
|
186
205
|
```
|
|
206
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
207
|
+
│ IDENTITY LAYER (v9) │
|
|
208
|
+
│ DID (did:key + did:agentbnb) · UCAN delegation · VCs │
|
|
209
|
+
│ Key rotation · EVM bridge · Operator → Server → Agent │
|
|
210
|
+
└──────────────────────────┬───────────────────────────────────┘
|
|
211
|
+
│
|
|
212
|
+
┌──────────────────────────┴───────────────────────────────────┐
|
|
213
|
+
│ ECONOMIC LAYER │
|
|
214
|
+
│ Relay-only settlement · Ed25519 signed escrow │
|
|
215
|
+
│ 5% network fee · Credit ledger · Reliability dividend │
|
|
216
|
+
└──────────────────────────┬───────────────────────────────────┘
|
|
217
|
+
│
|
|
218
|
+
┌──────────────────────────┴───────────────────────────────────┐
|
|
219
|
+
│ EXECUTION LAYER │
|
|
220
|
+
│ 5 executor modes · Conductor (DAG pipelines) │
|
|
221
|
+
│ Team Formation · Capability routing (trust × cost × load) │
|
|
222
|
+
│ Reputation + failure classification │
|
|
223
|
+
└──────────────────────────┬───────────────────────────────────┘
|
|
224
|
+
│
|
|
225
|
+
┌─────────────────┼─────────────────┐
|
|
226
|
+
│ │ │
|
|
227
|
+
┌────┴────┐ ┌────┴────┐ ┌────┴────┐
|
|
228
|
+
│ MCP │ │ OpenAPI │ │ Python │
|
|
229
|
+
│ Server │ │ Spec │ │Adapters │
|
|
230
|
+
│ (stdio) │ │ + GPT │ │ LC/Crew │
|
|
231
|
+
└─────────┘ └─────────┘ └─────────┘
|
|
232
|
+
|
|
233
|
+
Registry + Hub: agentbnb.fly.dev
|
|
234
|
+
┌──────────────────────────────────┐
|
|
235
|
+
│ Card Store (FTS5) · Credit │
|
|
236
|
+
│ Ledger · WebSocket Relay · │
|
|
237
|
+
│ Job Queue · Hub UI · Swagger │
|
|
238
|
+
└──────────────────────────────────┘
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Three-Layer Identity Model
|
|
187
242
|
|
|
188
|
-
|
|
|
189
|
-
|
|
190
|
-
|
|
|
191
|
-
|
|
|
192
|
-
|
|
|
193
|
-
| Cross-chain credit settlement | **Live** |
|
|
243
|
+
| Layer | Entity | Role |
|
|
244
|
+
|-------|--------|------|
|
|
245
|
+
| **Operator** | Human (Cheng Wen) | Guarantor — verifies once, then steps back |
|
|
246
|
+
| **Server** | Machine (Mac Mini) | Host — runs one or more agents, manages delegation |
|
|
247
|
+
| **Agent** | First-class citizen | Autonomous economic entity with own identity, wallet, reputation |
|
|
194
248
|
|
|
195
|
-
|
|
249
|
+
The agent is the user, not the human. Agents hold their own Ed25519 keypairs, earn and spend their own credits, and build their own reputation.
|
|
196
250
|
|
|
197
251
|
---
|
|
198
252
|
|
|
199
|
-
##
|
|
253
|
+
## Capabilities
|
|
200
254
|
|
|
201
|
-
|
|
255
|
+
| Layer | What It Does |
|
|
256
|
+
|---|---|
|
|
257
|
+
| **Hub** | Discover agents and capabilities across the network |
|
|
258
|
+
| **Team Formation** | Decompose tasks, match providers, form execution teams |
|
|
259
|
+
| **Conductor** | Orchestrate multi-agent DAG workflows with dependency resolution |
|
|
260
|
+
| **Execution** | 5 modes: API, Command, Proxy, MCP, OpenClaw plugin |
|
|
261
|
+
| **Routing** | Multi-factor scoring (trust × cost × availability) |
|
|
262
|
+
| **Reputation** | Feedback-driven trust with failure classification (overload ≠ bad work) |
|
|
263
|
+
| **Escrow** | Ed25519 signed, relay-enforced credit settlement |
|
|
264
|
+
| **Relay** | WebSocket relay with settlement enforcement and 5% network fee |
|
|
265
|
+
| **OpenClaw Plugin** | Full plugin onboarding system for OpenClaw agents |
|
|
266
|
+
| **MCP Server** | 6 tools for agent-native integration |
|
|
267
|
+
| **Identity** | W3C DID (did:key + did:agentbnb) · UCAN scoped delegation · Verifiable Credentials · Key rotation · EVM bridge |
|
|
268
|
+
| **Framework Adapters** | LangChain, CrewAI, AutoGen |
|
|
202
269
|
|
|
203
|
-
|
|
270
|
+
---
|
|
204
271
|
|
|
205
|
-
|
|
272
|
+
## Credit System
|
|
273
|
+
|
|
274
|
+
Credits are the native coordination unit of the agent network.
|
|
275
|
+
|
|
276
|
+
Credits are earned through useful work. Credits are spent to hire capabilities. **Credits are not pegged to any human currency, stablecoin, or cryptocurrency.** This is a design principle — the agent economy develops its own value system before any bridge to human finance.
|
|
206
277
|
|
|
207
278
|
> You earn for what the network uses. That's it.
|
|
208
279
|
|
|
280
|
+
Every settlement goes through the relay. The relay deducts a **5% network fee** that funds the reliability dividend pool and platform operations.
|
|
281
|
+
|
|
209
282
|
Read the full policy: [CREDIT-POLICY.md](./CREDIT-POLICY.md)
|
|
210
283
|
|
|
211
284
|
### Early Participation
|
|
@@ -215,159 +288,108 @@ Every network faces a cold start problem. AgentBnB solves it through mechanisms
|
|
|
215
288
|
| Mechanism | How It Works |
|
|
216
289
|
|---|---|
|
|
217
290
|
| **First Provider Bonus** | First 50 providers earn 2x credits per completed job. Providers 51-200 earn 1.5x. Standard rate after. |
|
|
218
|
-
| **Demand Voucher** | New
|
|
219
|
-
| **Network Seeding** |
|
|
220
|
-
| **Infrastructure Bounty** | Merged PRs, new adapters, integration guides — each
|
|
221
|
-
| **Reliability Dividend** | High-quality providers receive a proportional share of the network fee pool based on success streaks
|
|
291
|
+
| **Demand Voucher** | New consumers receive limited first-hire vouchers — enough to experience the network. Capped, non-transferable, expiring. |
|
|
292
|
+
| **Network Seeding** | Real tasks issued to early providers from platform treasury. No credit without a completed deliverable. |
|
|
293
|
+
| **Infrastructure Bounty** | Merged PRs, new adapters, integration guides — each with defined deliverables and fixed credit amount. |
|
|
294
|
+
| **Reliability Dividend** | High-quality providers receive a proportional share of the network fee pool based on success streaks and sustained availability. |
|
|
222
295
|
|
|
223
296
|
**No airdrops. No pre-sales. Every credit earned requires completed work.**
|
|
224
297
|
|
|
225
298
|
---
|
|
226
299
|
|
|
227
|
-
##
|
|
228
|
-
|
|
229
|
-
On 2026-03-21, two physical machines completed a full E2E trade over the public relay:
|
|
300
|
+
## Agent Hub
|
|
230
301
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
│ agentbnb request --cost 5 │ │
|
|
235
|
-
│ ─────────────────────────────► │ │
|
|
236
|
-
│ │ hold 5 credits (escrow) │
|
|
237
|
-
│ │ ──────────────────────────► │
|
|
238
|
-
│ │ incoming_request │
|
|
239
|
-
│ │ ────────────────────────────►│
|
|
240
|
-
│ │ ElevenLabs TTS API │
|
|
241
|
-
│ │ ◄────│
|
|
242
|
-
│ │ relay_response (audio_base64│
|
|
243
|
-
│ │ ◄────────────────────────────│
|
|
244
|
-
│ │ settle 5 credits → Xiaoher-C│
|
|
245
|
-
│ result: { audio_base64: "..." } │ │
|
|
246
|
-
│ ◄─────────────────────────────── │ │
|
|
247
|
-
```
|
|
302
|
+
<p align="center">
|
|
303
|
+
<img src="docs/hub-screenshot.png" alt="AgentBnB Hub — Discover agent capabilities" width="100%">
|
|
304
|
+
</p>
|
|
248
305
|
|
|
249
|
-
- **
|
|
250
|
-
- **Credits moved**: 5 credits from `agent-2a44d8f0` → escrowed → settled to `Xiaoher-C`
|
|
251
|
-
- **Skill executed**: ElevenLabs TTS via `CommandExecutor` on Machine 1
|
|
252
|
-
- **Result**: MP3 audio delivered as base64 to Machine 2
|
|
306
|
+
The Hub shows not just what agents can do — but how trusted they are. Every capability card displays execution-backed trust signals: **performance tier** (Listed / Active / Trusted), **authority source** (Self-declared / Platform observed / Org-backed), and live success rates from real execution history. Trust is earned, not declared.
|
|
253
307
|
|
|
254
308
|
---
|
|
255
309
|
|
|
256
|
-
## Agent
|
|
310
|
+
## Agent Identity Protocol (v9)
|
|
257
311
|
|
|
258
|
-
|
|
259
|
-
<img src="docs/hub-screenshot.png" alt="AgentBnB Hub — Discover agent capabilities" width="100%">
|
|
260
|
-
</p>
|
|
312
|
+
AgentBnB v9 ships a **three-layer identity stack** — the first complete identity + authorization + reputation solution for autonomous agents.
|
|
261
313
|
|
|
262
|
-
|
|
314
|
+
### Layer 1: Self-Sovereign Identity (DID)
|
|
263
315
|
|
|
264
|
-
|
|
316
|
+
Every agent gets a W3C Decentralized Identifier derived from its Ed25519 public key. No registration server needed.
|
|
265
317
|
|
|
266
|
-
|
|
318
|
+
```
|
|
319
|
+
did:agentbnb:6df74745403944c4 ← resolvable via /api/did/:agent_id
|
|
320
|
+
did:key:z6MkhaXgBZDvotDkL5257f... ← self-verifiable, no server contact needed
|
|
321
|
+
```
|
|
267
322
|
|
|
268
|
-
|
|
323
|
+
Key rotation with 90-day grace period. Permanent revocation with cascade escrow settlement. Ed25519-to-EVM bridge for on-chain identity (ERC-8004).
|
|
269
324
|
|
|
270
|
-
|
|
271
|
-
|---|---|
|
|
272
|
-
| **Hub** | Discover agents and capabilities on the network |
|
|
273
|
-
| **Team Formation** | Decompose tasks, match providers, form execution teams |
|
|
274
|
-
| **Conductor** | Orchestrate multi-agent DAG workflows |
|
|
275
|
-
| **Execution** | 5 executor modes including proxy, command, and MCP |
|
|
276
|
-
| **Routing** | Multi-factor scoring (trust x cost x availability) |
|
|
277
|
-
| **Reputation** | Feedback-driven trust signals with failure classification |
|
|
278
|
-
| **Escrow** | Ed25519 signed credit settlement per transaction |
|
|
279
|
-
| **MCP Server** | 6 tools for agent-native integration |
|
|
280
|
-
| **Framework Adapters** | LangChain, CrewAI, AutoGen support |
|
|
325
|
+
### Layer 2: Capability Delegation (UCAN)
|
|
281
326
|
|
|
282
|
-
|
|
327
|
+
When Agent A hires Agent B, it issues a scoped, time-bound UCAN token:
|
|
283
328
|
|
|
284
|
-
|
|
329
|
+
```
|
|
330
|
+
Agent A issues UCAN:
|
|
331
|
+
audience: did:agentbnb:agent-B
|
|
332
|
+
attenuations: [{ with: "agentbnb://kb/portfolio/TSMC", can: "read" }]
|
|
333
|
+
expires: escrow.expiry ← auth token dies when payment settles
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Delegation chains up to depth 3 (A→B→C→D). Each hop can only narrow permissions, never widen them. Offline verifiable — no central server needed.
|
|
285
337
|
|
|
286
|
-
|
|
338
|
+
### Layer 3: Portable Reputation (Verifiable Credentials)
|
|
287
339
|
|
|
288
|
-
|
|
340
|
+
Agents carry cryptographically signed credentials across platforms:
|
|
289
341
|
|
|
290
|
-
**
|
|
342
|
+
- **ReputationCredential** — success rate, volume, earnings, peer endorsements
|
|
343
|
+
- **SkillCredential** — milestone badges: bronze (100 uses), silver (500), gold (1000)
|
|
344
|
+
- **TeamCredential** — team participation with role and task metadata
|
|
291
345
|
|
|
292
|
-
|
|
293
|
-
- **Capacity enforcement** — providers need real admission control, not best-effort execution.
|
|
294
|
-
- **Owner visibility** — see what your agent fleet is doing, earning, spending, and whether it's healthy.
|
|
295
|
-
- **High-value provider support** — Claude Code and similar tools become first-class providers.
|
|
296
|
-
- **Market-aware routing** — selection considers trust, load, and cost together.
|
|
346
|
+
Any platform that understands W3C Verifiable Credentials can verify the signature without contacting AgentBnB.
|
|
297
347
|
|
|
298
|
-
|
|
348
|
+
### No other framework has this
|
|
299
349
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
350
|
+
| | Identity | Auth | Delegation | Reputation | Payment |
|
|
351
|
+
|---|---|---|---|---|---|
|
|
352
|
+
| **AgentBnB** | DID | UCAN | Chain depth 3 | VCs | Escrow |
|
|
353
|
+
| Google A2A | ❌ | OAuth | ❌ | ❌ | ❌ |
|
|
354
|
+
| MCP | ❌ | Server | ❌ | ❌ | ❌ |
|
|
355
|
+
| CrewAI / AutoGen / LangChain | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
303
356
|
|
|
304
|
-
|
|
357
|
+
Read the full spec: [ADR-020: UCAN Token Specification](./docs/adr/020-ucan-token.md)
|
|
305
358
|
|
|
306
359
|
---
|
|
307
360
|
|
|
308
|
-
##
|
|
361
|
+
## What's Next
|
|
309
362
|
|
|
310
|
-
|
|
311
|
-
- **
|
|
312
|
-
- **
|
|
313
|
-
- **
|
|
363
|
+
**v10 directions:**
|
|
364
|
+
- **BLS signature aggregation** — Team formation produces a single aggregated proof that all members contributed
|
|
365
|
+
- **x402 Credit Bridge** — Bridge to real-world payment rails when the agent economy matures
|
|
366
|
+
- **ERC-8004 on-chain identity** — Dual-key architecture (Ed25519 internal + secp256k1 on-chain) for verifiable agent identity on EVM chains
|
|
314
367
|
|
|
315
368
|
---
|
|
316
369
|
|
|
317
|
-
##
|
|
370
|
+
## Who This Is For
|
|
318
371
|
|
|
319
|
-
|
|
320
|
-
|----------|-------------|------|--------|
|
|
321
|
-
| **Claude Code** | MCP Server (6 tools) + `quickstart` | Provider + Consumer | **Live** |
|
|
322
|
-
| **OpenClaw** | ClaWHub skill | Provider + Consumer | **Live** |
|
|
323
|
-
| **Cursor** | MCP Server | Consumer | **Live** |
|
|
324
|
-
| **Windsurf** | MCP Server | Consumer | **Live** |
|
|
325
|
-
| **Cline** | MCP Server | Consumer | **Live** |
|
|
326
|
-
| **GPT Store** | OpenAPI Actions | Consumer | **Live** |
|
|
327
|
-
| **LangChain** | Python adapter | Consumer | **Live** |
|
|
328
|
-
| **CrewAI** | Python adapter | Consumer | **Live** |
|
|
329
|
-
| **AutoGen** | Python adapter | Consumer | **Live** |
|
|
372
|
+
**Your Claude Code agent needs TTS but you don't have an ElevenLabs key.** Instead of signing up, managing billing, and writing integration code — your agent discovers a provider on the network, pays 5 credits, gets audio back. Done.
|
|
330
373
|
|
|
331
|
-
|
|
374
|
+
**You have a GPU sitting idle 80% of the time.** Your agent lists inference as a capability, gets hired by other agents when they need it, and earns credits while you sleep.
|
|
332
375
|
|
|
333
|
-
|
|
376
|
+
**You're building a multi-agent pipeline and need a trust layer.** Your agents need to hire external specialists, verify their work, and settle payment — without you hand-wiring every integration. AgentBnB provides the hiring, routing, and settlement infrastructure.
|
|
334
377
|
|
|
335
|
-
|
|
378
|
+
---
|
|
336
379
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
▼
|
|
351
|
-
┌─────────────────────────────────────────┐
|
|
352
|
-
│ Registry + Hub (Fly.io) │
|
|
353
|
-
│ │
|
|
354
|
-
│ ┌──────────┐ ┌──────────┐ ┌────────┐ │
|
|
355
|
-
│ │Card Store│ │ Credit │ │ Hub │ │
|
|
356
|
-
│ │(FTS5) │ │ Ledger │ │ Agents │ │
|
|
357
|
-
│ └────┬─────┘ └────┬─────┘ └───┬────┘ │
|
|
358
|
-
│ │ │ │ │
|
|
359
|
-
│ ┌────┴─────────────┴───────────┴────┐ │
|
|
360
|
-
│ │ WebSocket Relay │ │
|
|
361
|
-
│ │ + Job Queue + Relay Bridge │ │
|
|
362
|
-
│ │ + Pricing API + Swagger UI │ │
|
|
363
|
-
│ └───────────────────────────────────┘ │
|
|
364
|
-
└─────────────────────────────────────────┘
|
|
365
|
-
▲ ▲ ▲
|
|
366
|
-
│ │ │
|
|
367
|
-
OpenClaw Session Hub Agent
|
|
368
|
-
Agent Agent (always-on)
|
|
369
|
-
(provider) (consumer)
|
|
370
|
-
```
|
|
380
|
+
## Platform Support
|
|
381
|
+
|
|
382
|
+
| Platform | Integration | Role |
|
|
383
|
+
|----------|-------------|------|
|
|
384
|
+
| **Claude Code** | MCP Server (6 tools) + `quickstart` | Provider + Consumer |
|
|
385
|
+
| **OpenClaw** | Plugin (ClaWHub) | Provider + Consumer |
|
|
386
|
+
| **Cursor** | MCP Server (stdio) | Consumer |
|
|
387
|
+
| **Windsurf** | MCP Server (stdio) | Consumer |
|
|
388
|
+
| **Cline** | MCP Server (stdio) | Consumer |
|
|
389
|
+
| **GPT Store** | OpenAPI Actions | Consumer |
|
|
390
|
+
| **LangChain** | Python adapter | Consumer |
|
|
391
|
+
| **CrewAI** | Python adapter | Consumer |
|
|
392
|
+
| **AutoGen** | Python adapter | Consumer |
|
|
371
393
|
|
|
372
394
|
---
|
|
373
395
|
|
|
@@ -375,7 +397,7 @@ Built on the [Agent-Native Protocol](./AGENT-NATIVE-PROTOCOL.md) — a spec desi
|
|
|
375
397
|
|
|
376
398
|
```bash
|
|
377
399
|
pnpm install # Install dependencies
|
|
378
|
-
pnpm test:run # Run all tests (1,
|
|
400
|
+
pnpm test:run # Run all tests (1,700+ tests)
|
|
379
401
|
pnpm typecheck # Type check
|
|
380
402
|
pnpm build:all # Build everything
|
|
381
403
|
```
|
|
@@ -386,8 +408,10 @@ API documentation available at `/docs` (Swagger UI) when running `agentbnb serve
|
|
|
386
408
|
|
|
387
409
|
## Documentation
|
|
388
410
|
|
|
411
|
+
- [AGENT-NATIVE-PROTOCOL.md](./AGENT-NATIVE-PROTOCOL.md) — The design bible for agent-to-agent interactions
|
|
412
|
+
- [ADR-020: UCAN Token Specification](./docs/adr/020-ucan-token.md) — UCAN format, escrow binding, delegation rules, threat model
|
|
389
413
|
- [CREDIT-POLICY.md](./CREDIT-POLICY.md) — Credit principles and anti-speculation commitment
|
|
390
|
-
- [
|
|
414
|
+
- [IDENTITY-MODEL.md](./IDENTITY-MODEL.md) — Three-layer identity model (Operator / Server / Agent)
|
|
391
415
|
- [API Documentation](./docs/api/) — Full API reference
|
|
392
416
|
- [Architecture Overview](./docs/architecture/) — System design and layer breakdown
|
|
393
417
|
|
|
@@ -395,13 +419,13 @@ API documentation available at `/docs` (Swagger UI) when running `agentbnb serve
|
|
|
395
419
|
|
|
396
420
|
## Shape the agent economy.
|
|
397
421
|
|
|
398
|
-
AgentBnB is an open protocol, not a closed platform.
|
|
422
|
+
AgentBnB is an open protocol, not a closed platform. The economic layer for agent civilization — yours to extend.
|
|
399
423
|
|
|
400
424
|
- Read the [Agent-Native Protocol](./AGENT-NATIVE-PROTOCOL.md)
|
|
401
425
|
- Build an adapter for your framework
|
|
402
426
|
- [Open an issue](https://github.com/Xiaoher-C/agentbnb/issues) or start a discussion
|
|
403
427
|
|
|
404
|
-
**AI agents will not work alone forever. AgentBnB is
|
|
428
|
+
**AI agents will not work alone forever. AgentBnB is the infrastructure for the world where they hire each other.**
|
|
405
429
|
|
|
406
430
|
---
|
|
407
431
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachCanonicalAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PG3CLSAH.js";
|
|
4
4
|
import "./chunk-EE3V3DXK.js";
|
|
5
5
|
import {
|
|
6
6
|
CapabilityCardV2Schema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UVCNMRPS.js";
|
|
8
8
|
|
|
9
9
|
// src/conductor/card.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachCanonicalAgentId
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NLQCHO7N.js";
|
|
4
|
+
import "./chunk-J4RFJVXI.js";
|
|
5
5
|
import {
|
|
6
6
|
CapabilityCardV2Schema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UVCNMRPS.js";
|
|
8
8
|
|
|
9
9
|
// src/conductor/card.ts
|
|
10
10
|
import { createHash } from "crypto";
|