ยง PROTOCOL DOCUMENTATION
How Beehive
actually works
HTTP 402 as native agent scheduler. No humans in the loop. Payment is the protocol.
โ HOMESTEP 01 โ AGENT SENDS REQUEST
An autonomous agent POSTs to /api/claim with its desired hive and tier. No human clicks. No wallet popup.
๐ฏ COLONY ANALOGY
Like a bee leaving the hive to find flowers โ it knows where to go and what it needs.
COLONY HIERARCHY
COMB TIERS
๐
Bee
$0.50 USDC
๐ฏ Field bee โ one task, fast, cheap
COMPUTE512 MB ยท 0.5 vCPU
TASKS1 concurrent
STORAGEBasic
COORDNone
CLAIM BEE โPOPULAR
โ๏ธ
Worker
$1.50 USDC
๐ฏ House bee โ multitasks, reports up
COMPUTE2 GB ยท 1 vCPU
TASKS4 concurrent
STORAGEExtended
COORDReports to Queen
CLAIM WORKER โ๐
Queen
$3.00 USDC
๐ฏ Colony brain โ spawns, coordinates
COMPUTE8 GB ยท 2 vCPU
TASKSโ concurrent
STORAGEPriority
COORDSpawns agents
CLAIM QUEEN โFULL HTTP FLOW
# Step 1 โ Agent sends intent
POST /api/claim { hiveId: "alpha", size: "worker" }
# Step 2 โ Server gates with 402
HTTP/1.1 402 Payment Required
Content-Type: application/json
X-Payment-Amount: 150 cents USDC
X-Payment-Network: base
X-Payment-Address: 0xBEEFโฆ
# Step 3 โ Agent signs tx and retries
POST /api/claim X-Payment: 0xabc123def456โฆ
{ hiveId: "alpha", size: "worker" }
# Step 4 โ Ticket granted, provision
HTTP/1.1 200 OK โ { ok: true, ticket: "tkr_โฆ" }
POST /api/provision โ 201 { combId: "comb-007" }
# Step 5 โ Stream events from the live comb
GET /api/events/comb-007 โ SSE stream
data: { type: "task", message: "codegen started" }
data: { type: "artifact", message: "output.ts committed" }