Security & verification

Security & TEE Verification: Trust the hardware,
not us.

TokHive's relay runs inside a hardware enclave. It holds provider credentials, can only talk to official vendor APIs, and signs a receipt for every call. You don't have to take our word for any of it.

0plaintext upstream credentials uploaded
100%of responses carry an attestation
MITenclave image and verifier, open source
Architecture

Where the trust boundary sits.

AMD SEV-SNP · measured boot · RA-TLS
CLIENT

Builder

Your app or agent, using a TokHive key

UNTRUSTED

Router

Processes buyer requests for routing, protocol handling and billing.

TEE ENCLAVE · AMD SEV-SNPsealed memory

Credential vault

Provider sessions sealed to the enclave key. Not exportable.

Pinned relay

TLS only to an allow-list of vendor certificates.

Signer

Signs the upstream host, response hash, execution times and policy hash.

OFFICIAL

Vendor API

api.anthropic.com
api.openai.com
googleapis.com

Who sees what

Least privilege, enforced by silicon.

PROMPTSPROMPTPROVIDER CREDSCREDSUSAGE METERSUSAGEBUILDER IDENTITYID
Builder✓—✓✓
Authorized operators✓—✓✓
Provider—✓✓—
Hive router✓—✓✓
TEE enclave✓✓✓—

✓ role processes or may access this data · — no access through this role. Hive processes buyer requests; authorized failure diagnostics may retain their content. Providers can access their own local credentials.

Verify it yourself

Check any response in one command.

  1. 01

    Grab the request ID

    Use the X-Request-Id header returned by your TokHive API call.

  2. 02

    Run the verifier

    The verifier checks the AMD SEV-SNP report, AWS NitroTPM evidence and the signing-key binding.

  3. 03

    Compare the measurement

    The snp-app: identity must match the SHA-256 digest of the expected application bundle.

  4. 04

    Check the upstream

    The signed upstream host must match the expected vendor endpoint.

terminal · example
$ ./bin/tokhive-verify verify \
  --request-id "$HIVE_REQUEST_ID" \
  --expected-app "$HIVE_EXPECTED_APP" \
  --expected-host api.anthropic.com \
  --response response.raw
 
  quote        AMD SEV-SNP
  roots        AMD + AWS NitroTPM       ✓
  measurement  snp-app:9f3a…c71e
  application  matches expected bundle  ✓
  upstream     api.anthropic.com
  policy_hash  c8d1…3f02
  stream_hash  7b2e…a810
 
✓ Verified: served by the official vendor

Run make build in the verifier repository first. Set HIVE_API_KEY to your buyer API key, HIVE_REQUEST_ID to your request ID, and HIVE_EXPECTED_APP to the production snp-app:<sha256> identity from the signed release catalog below. This example checks Anthropic's upstream host and compares the exact upstream response body saved as response.raw.

Trusted release identity

Know which TEE image to expect.

Each TEE release and each environment it runs in is recorded in a signed release catalog. Take the expected application identity from that catalog, not from the receipt you are checking, and check the catalog's signature against the key on this page before you trust it.

This page is the independent channel for the production signing key; staging pre-releases use a different key. Compare it with the release-signing.pub attached to each release; do not trust a key read from the release assets alone. A valid signature shows who published the catalog, not what is running now; the hardware evidence in your receipt shows that.

production release signing key · fingerprint

SHA256:A7HhHJgJmWp4xbtwhD/4IL5Ua6XUWG9FahuP0KNPoNk

Format
SSHSIG, Ed25519
Namespace
tokhive-tee-release
Identity
tokhive-release
allowed_signers
tokhive-release namespaces="tokhive-tee-release" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDY37j7Z7Akukw/a5J66WQbTEEfMXJGoEjnt7vBaDFsg

Open source and audited.

github.com/tokhive ↗
Data handling

Data processing and retention.

Record-specific retention periods remain under review. See the Privacy Policy for request processing, diagnostics and deletion requests.

Prompts & completions
processed
Hive and the upstream service process request content. Failure diagnostics can retain request and response content.
Provider credentials
sealed
Bee encrypts upstream access credentials with the TEE public key before upload. Only the TEE can decrypt the uploaded envelope.
Usage metadata
under review
Model, token counts and timestamps, kept for billing, settlement and dispute resolution.
Attestation reports
under review
Signed receipts stay retrievable by request ID for independent verification.
Account data
under review
Account identifiers, access settings and transaction references. Deletion requests are subject to applicable recordkeeping obligations.
Responsible disclosure

Found something? Tell us first.

Report a vulnerability in any TokHive component, including Hive, Bee, the TEE, the verifier and this website, through GitHub's private vulnerability reporting on tokhive/tee. Only maintainers can see the report. We reply within 48 hours.