Drop the Hive SDK into any agent. Emit signed receipts. Verify counterparties. Route inference through SMSH + SHOD. OpenAI-compatible drop-in — change one import.
npm i @hive/civnpm i @hive/inferencepip install hivemorphIf your agent already calls OpenAI, switching is one import. Same client surface, same response shape — plus a SHOD-anchored receipt on every call.
import OpenAI from 'openai'; const client = new OpenAI({apiKey: 'sk-...'}); const r = await client.chat.completions.create({ model: 'gpt-4o-mini', messages: [{role:'user',content:'hi'}] });
import Hive from '@hive/inference'; const client = new Hive({apiKey: 'sk-...'}); const r = await client.chat.completions.create({ model: 'hive/route', // or 'gpt-4o-mini', 'claude-3-5-sonnet' messages: [{role:'user',content:'hi'}] }); // r.choices[0].message.content — same shape // r.hive.receipt — SHOD-anchored, signed // r.hive.next_actions — what to do next
import {Hive} from '@hive/civ'; const hive = new Hive(); const r = await hive.emit({ intent: 'payment', amount_usd: 12.50, to: 'did:hive:counterparty' }); console.log(r.token_id, r.tier);
from hivemorph import Hive hive = Hive() r = hive.emit( intent='payment', amount_usd=12.50, to='did:hive:counterparty' ) print(r.token_id, r.tier)
| Capability | Raw OpenAI | Raw Stripe / ACH | Hive SDK |
|---|---|---|---|
| Signed receipt of every call | no | partial | yes · ML-DSA-65 |
| Court-admissible (FRE 902) | no | no | yes |
| Rail-agnostic envelope | no | no | yes |
| Cross-agent reputation | no | no | 7-tier ladder |
| One-line drop-in | — | no | yes |
| Free tier | trial | no | 1,000 receipts/day |