Private AI

Inference through XE where the prompt is sealed on your device. The Private and Zero retention grades, what each party sees, and the receipts that prove it.

A request to a model through XE can be sealed on your device before it leaves. XE carries the ciphertext, a provider in an attested machine opens it, and the answer comes back sealed to your key. You choose a grade, and a request that can't get that grade fails. It never falls back to a lower one.

XE's relays and the providers behind them run on XE's own provider accounts and serve XE's own apps. A contract, app or agent that is not XE's uses its own provider account through the XE Key Service.

Private AI, end to end · A private chat that shows its proof

#Grades

GradeLabelWho sees what
PrivateSealed to the model's enclaveSealed on your device to an attested model enclave. Only that enclave can read it: not XE, not the relay, not the provider's staff.
Zero retentionSealed to XE's relay enclave; zero-retention providerSealed on your device to XE's attested relay. XE and the relay can't see it; the model router and the model provider see it and keep nothing under their zero-retention terms.

Private ranks above Zero retention. A minimum grade means that grade or a higher one.

#Private, by how the provider is built

ProviderSealed toWho can read it
An attested model providerThe model's attested keyOnly the model's TEE. The provider's gateway forwards ciphertext
A provider's attested routerThe attested gateway's keyThe gateway's TEE, which sends the plaintext to an attested model over a verified TLS session, and the model's TEE
An attested model instanceThe instance's keyOnly the attested instance

Each kind has had a paid test run through XE Sim Interop; the showcase replays them.

#Zero retention

Zero retention runs on testnet as test infrastructure: XE's relay runs in an Intel TDX machine under dstack and calls an OpenAI-compatible model router with zero data retention required on every call.

  • Service: XE's zero-retention relay, version 6, id 4d52b33453f612faebf3e014e4f45d0f3d975b3c7b4c6f5eb432478da853c14c, verification mode tee.
  • First live call on XE Sim Interop (2026-10-18): request b416cbe3…, settle cf88fac7…, answered through the router's zero-retention routing by a zero-retention model provider.

How the relay keeps it:

  • The plaintext exists only in the relay's memory, for one call to the router. The relay writes nothing that holds it, and logs only request ids, sizes and status codes.
  • Every call sets provider.zdr: true and provider.data_collection: "deny". The relay builds the request body itself from an allow-list, so a requester can't override them.
  • It refuses a model with no zero-retention endpoint, checks after the call that the provider that answered is on the router's zero-retention list, and refuses to sign a receipt otherwise.
  • Its keys come from dstack's KMS for its measured code. The operator never holds them. Changing the code changes the measurement, which nodes and clients then refuse.

#The flow

  1. Your wallet derives an encryption key. It never uses its signing key for this.
  2. The client reads the provider's or the relay's attestation from XE. Every node verified that attestation in consensus: the TDX quote, the measured code and the key it binds.
  3. The client seals the prompt to the attested key and sends it as the inline input of a service_request.
  4. The provider opens it inside its enclave, calls the model, seals the answer to your key, and signs a receipt.
  5. XE's nodes check the result against the attestation, and the settle records it.
  6. Your client checks the receipt, then opens the answer.

#Receipts

Every answer carries a receipt your client checks before it trusts the answer.

Private. XE's nodes verify the receipt in consensus, under the attest feature:

FormatProviderWhat the node checks
3An attested model providerThe model's signature over model:sha256(sealed request):sha256(sealed answer), with the attested key named in the envelope
4A provider's attested routerThe gateway's receipt: the request hash it received equals the plaintext hash the requester committed to, and the answer hash equals the output's

Zero retention. The relay's enclave key signs a JSON receipt (xe-zdr-receipt, version 1):

json
{"v":1,"kind":"xe-zdr-receipt","grade":"zero_retention", "relay":{"account":"…","key_id":"…","measurement":"<compose hash>","attestation":"<provider_attest block>"}, "request_sha256":"<the XE input hash>","response_sha256":"<sha256 of the sealed answer>", "model":"<requested>","served_model":"<as the router reported>", "upstream":{"router":"<router>","base":"<the router's API>","provider":"<model provider>",             "generation_id":"gen-…","key_fingerprint":"…","key_label":"xe-zdr-relay","tls_spki_sha256":"…"}, "policy":{"zdr":true,"data_collection":"deny","zdr_list":true}, "usage":{"prompt_tokens":10,"completion_tokens":2,"cost_usd":"…"}, "time":1792000000,"latency_ms":812,"tls_proof":null}

The client accepts an answer only if:

  • the signature verifies under the relay's attested key;
  • the receipt's grade is at least the one requested;
  • the relay's key id and measurement match its live attestation, and the measurement is in the service's allowed set;
  • request_sha256 is the hash of what was sent and response_sha256 the hash of what came back;
  • policy.zdr is true.

Any failure is an error. There's no fallback.

typescript
import { buildZdr, verifyZdr, relayRecordFrom, GRADE_ZERO_RETENTION } from "@xe-network/protocol/zdr"; // the relay's live attestation, checked against the service's allowed measurementsconst relay = relayRecordFrom(attestations, service.manifest, Date.now());const envelope = buildZdr("mistralai/mistral-nemo", "Capital of France? One word.", 64, relay, walletKeys);// … send `envelope` as the inline input of a service_request to the zero-retention service …const { receipt, answer } = verifyZdr(relay, envelope, output, walletKeys.x25519, GRADE_ZERO_RETENTION);

The zero-retention client is @xe-network/protocol/zdr, on the xe-kit branch zdr/client.

#Agents

The MCP's local host seals and opens for agents. The agent's encryption keys are derived from its wallet, never from its signing key.

ToolWhat
xe_e2ee_keysThe agent wallet's encryption keys
xe_e2ee_sealSeal a prompt to an XE-verified attested key, for xe_service_request. With grade: "zero_retention" it reads the relay's attestation and checks it against the service. XE's own relays answer XE's agents only: another agent seals to its owner's grant on the Key Service
xe_e2ee_openVerify the receipt, then open the answer

Minimum grade. The owner sets XE_MIN_GRADE (private, zero_retention or standard) and the MCP refuses any request below it, with nothing sent. Until the next release this is enforced locally by the MCP: an agent holding the raw key could bypass it.

#Next release

  • Nodes verify zero-retention receipts themselves (receipt format 6): the signature, the grade, and that the request hash is the input hash. Results and settles then show the grade.
  • Service manifests carry a grade field, checked against the attestation type.
  • A minimum grade in an agent's grant, enforced by every node, replacing the local XE_MIN_GRADE check.
  • Pay per message (coming, being built): a request holds the maximum cost, the exact cost is charged from the signed usage, and the rest is returned automatically.