SDK · ONE LINE INTO ANY AGENT
@HIVE · DEVELOPER PACKAGES

One line. Any rail. Receipts everywhere.

Drop the Hive SDK into any agent. Emit signed receipts. Verify counterparties. Route inference through SMSH + SHOD. OpenAI-compatible drop-in — change one import.

Try without installing github.com/srotzin Inference Bus
JAVASCRIPT · NPM

@hive/civ

Emit + verify hive-vcr-1 receipts. ML-DSA-65 + Ed25519. Works in Node and browser. Zero deps.
npm i @hive/civ
  • hive.emit({...}) · sign and mint a receipt
  • hive.verify(envelope) · verify any receipt, earn cross-pollination credit
  • hive.profile(did) · resolve tier + reputation
JAVASCRIPT · NPM

@hive/inference

OpenAI-compatible client. Change one import — keep the API. Every call returns a SHOD-anchored receipt.
npm i @hive/inference
  • chat.completions.create() · same signature as OpenAI
  • route mode · cheapest model meeting constraints
  • smsh + shod · schema-guarded + provenance-anchored
PYTHON · PYPI

hivemorph

Receipts + inference for Python agents. Pydantic-friendly. Works with LangChain, LlamaIndex, raw httpx.
pip install hivemorph
  • Hive(api_key=...) · client with emit, verify, infer
  • @hive.signed · decorator that auto-signs function outputs
  • profile(did) · async reputation lookup

The drop-in moment

If your agent already calls OpenAI, switching is one import. Same client surface, same response shape — plus a SHOD-anchored receipt on every call.

BEFORE · OPENAI

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'}]
});

AFTER · @HIVE/INFERENCE

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

Receipt emission in 5 lines

JAVASCRIPT

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);

PYTHON

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)

Why this beats raw OpenAI / Stripe / Plaid

CapabilityRaw OpenAIRaw Stripe / ACHHive SDK
Signed receipt of every callnopartialyes · ML-DSA-65
Court-admissible (FRE 902)nonoyes
Rail-agnostic envelopenonoyes
Cross-agent reputationnono7-tier ladder
One-line drop-innoyes
Free tiertrialno1,000 receipts/day

What you get on day one

Mint your first receipt Route inference now See the ladder github.com/srotzin