The Hivery hive-rosetta Python · Node · Go Private Beta
hive-rosetta — Sovereign Funnel for Agent Inference

Every client.fetch() routes
through HIVECOMPUTE.
Every reply ships with a receipt.

hive-rosetta is a thin client library for Python, Node, and Go that wraps fetch() and openai.create(). Every call is routed through the HIVECOMPUTE inference endpoint, automatically embedding a Spectral-ZK receipt on each response. Unverified paths are structurally worse for your agent's reputation.

Request beta access HIVEAUDIT mandate
What It Is

A drop-in funnel. Not an abstraction layer.

hive-rosetta is a thin wrapper — three lines of code to replace your existing OpenAI SDK calls. The API shape is identical to the OpenAI Python, Node, and Go SDKs. The difference is where the call goes and what comes back: every response includes a X-Spectral-ZK-Receipt header containing the Ed25519-signed audit artifact.

Your agent client.chat
.completions
hive-rosetta Funnel layer
HIVECOMPUTE Inference node
Response + Spectral-ZK
receipt
HIVEAUDIT Merkle log
entry

Inference endpoint: hivecompute-g2g7.onrender.com/v1/compute/chat/completions

Code Samples

Three lines. Identical API shape. Every call signed.

The hive-rosetta client mirrors the OpenAI SDK interface exactly. If your codebase uses openai.chat.completions.create(), the migration is a one-line import change.

Python

hive_agent.py Python 3.10+
# Before: standard OpenAI client
# from openai import OpenAI
# client = OpenAI(api_key=...)

from hive_rosetta import Client   # drop-in replacement

client = Client(api_key="your-hive-key")

response = client.chat.completions.create(
    model="hivecompute-g2g7",
    messages=[{"role": "user", "content": "Analyze this contract."}]
)

# response.choices[0].message.content — identical to OpenAI response
# response.spectral_receipt — Spectral-ZK receipt dict (auto-attached)
receipt = response.spectral_receipt
print(receipt["id"])          # spectral_zkr_01HZ9XK...
print(receipt["hash"])        # b3:b9f0e147...
print(receipt["signatures"])  # Ed25519 sig from registrar DID

Node.js / TypeScript

hive-agent.ts Node 18+ · TypeScript
// Before: standard OpenAI client
// import OpenAI from 'openai';
// const client = new OpenAI({ apiKey: ... });

import { HiveClient } from 'hive-rosetta';  // drop-in replacement

const client = new HiveClient({ apiKey: 'your-hive-key' });

const response = await client.chat.completions.create({
  model: 'hivecompute-g2g7',
  messages: [{ role: 'user', content: 'Summarize this document.' }]
});

// response.choices[0].message.content — identical to OpenAI response
// response.spectralReceipt — Spectral-ZK receipt object (auto-attached)
const receipt = response.spectralReceipt;
console.log(receipt.id);          // spectral_zkr_01HZ9XK...
console.log(receipt.hash);        // b3:b9f0e147...
console.log(receipt.signatures);  // Ed25519 sig from registrar DID
Structural Disadvantage

Unverified paths are not just riskier. They are structurally worse.

Routing outside hive-rosetta does not simply mean missing a receipt. It means operating in a lower tier across every dimension the clearinghouse tracks. The table below shows the concrete differences between Rosetta-verified agents and unverified-path agents.

Dimension Rosetta-routed (verified) Unverified path
SHOD-gate limit Higher — priority tier Throttled
x402 fee tier 0.20% per settlement 0.45% per settlement
hive-marketplace-agent routing Priority Standard queue
Spectral-ZK receipt on every call Automatic None
EU AI Act Art. 12 log record Produced automatically Absent — compliance gap
Agent DID attestation Named-issuer DID on each receipt No DID binding
HIVEAUDIT meter provisioning Automatic ($0.05/call) Not available
Offline verifiability Every call None

The 0.25% fee difference on x402 settlements compounds at volume. At 100,000 transactions per month of $100 average: Rosetta saves $25,000/month in settlement fees alone, before compliance cost.

Receipt by Default

What the embedded receipt looks like — and why the EU AI Act demands it.

On every hive-rosetta call, HIVECOMPUTE attaches a signed receipt to the response. It is the Spectral-ZK artifact — the same artifact described on the HIVEAUDIT mandate page. EU AI Act Article 12 requires that high-risk AI systems "technically allow for the automatic recording of events (logs) over the lifetime of the system." The embedded receipt is that record.

X-Spectral-ZK-Receipt response header · auto-embedded by hive-rosetta Live on every call
{
  "id":        "spectral_zkr_01HZ9XKDMN2XV9C1B7E8D4F3AU",
  "type":      "SpectralZKReceipt",
  "version":   "hiveaudit-v1",
  "agent_did": "did:hive:agent-us-inference-a4f91c",
  "model":     "hivecompute-g2g7",
  "issued_at": 1746294118472,
  "hash":      "b3:b9f0e147ad53c61f8e9c2b7d4a5163e4f7c9b1d8e3a6f25c0b9d4e7a138f6c2b",
  "canon":     "jcs-rfc8785",
  "hash_alg":  "blake3-256",
  "signatures":[{"signer":"did:hive:registrar-us-hive-001","alg":"ed25519","sig":"5a91e8d7..."}],
  "merkle_root":"7d4a5163e4f7c9b1d8e3a6f25c0b9d4e7a138f6c2b5a91e8d7f3c0a9b4e62d18"
}

The receipt is also accessible via response.spectral_receipt (Python) or response.spectralReceipt (Node). The full receipt JSON is appended to the HIVEAUDIT Reckoning chain immediately on issuance.

Cite: EU AI Act Art. 12 — artificialintelligenceact.eu/article/12

Pricing Tie-In

Routing through Rosetta automatically unlocks the HIVEAUDIT meter.

No separate provisioning step. The moment your first hive-rosetta call hits HIVECOMPUTE, the HIVEAUDIT receipt meter starts. Billing is per-call, not per-seat.

Rosetta call rate

Every inference call via hive-rosetta generates one Spectral-ZK receipt and increments the HIVEAUDIT meter.

$0.05 / call
Standard tier threshold

Standard tier ($1,500/mo) covers 1,000,000 receipts per month — equivalent to 1M hive-rosetta inference calls.

1M receipts / month
x402 fee advantage

Rosetta-verified agents pay 0.20% on USDC x402 settlements. Unverified agents pay 0.45%. The audit trail is the rate lever.

0.20% vs 0.45%

See the full pricing breakdown on the HIVEAUDIT mandate page. The Pilot tier (10K receipts/month) is available at $0/month for evaluation.

Installation

In private beta. Request access to install.

hive-rosetta is currently available by invitation only. Request access below. General availability on PyPI and npm is planned for a future release.

Python pip install hive-rosetta
# Private beta — request access first
pip install hive-rosetta \
  --extra-index-url https://pypi.thehiveryiq.com/simple
Available on private PyPI · request access: [email protected]
Node npm install hive-rosetta
# Private beta — request access first
npm install hive-rosetta \
  --registry https://npm.thehiveryiq.com
Available on private npm registry · request access: [email protected]
Ready to route through the clearinghouse?

Request private beta access to hive-rosetta.
Your first signed receipt within four minutes of provisioning.

Every call. Every receipt. Every agent DID. Logged and signed. The audit chain starts the moment your first call hits HIVECOMPUTE.

Request beta access View HIVEAUDIT mandate
Ed25519· BLAKE3-256· RFC 8785 JCS· x402 micro-settlement· USDC on Base· hivecompute-g2g7.onrender.com
hive-rosetta is in private beta. The inference endpoint hivecompute-g2g7.onrender.com/v1/compute/chat/completions is live. The hive-rosetta package (Python and Node) is under active development. API shape mirrors OpenAI SDK v1. x402 fee tiers and SHOD-gate limits are subject to change during beta. This page is informational. Nothing here constitutes legal advice regarding EU AI Act Article 12 compliance — consult qualified counsel for a formal compliance determination. Citations link to primary sources at artificialintelligenceact.eu and home.treasury.gov.