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
| Grade | Label | Who sees what |
|---|---|---|
| Private | Sealed to the model's enclave | Sealed 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 retention | Sealed to XE's relay enclave; zero-retention provider | Sealed 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
| Provider | Sealed to | Who can read it |
|---|---|---|
| An attested model provider | The model's attested key | Only the model's TEE. The provider's gateway forwards ciphertext |
| A provider's attested router | The attested gateway's key | The gateway's TEE, which sends the plaintext to an attested model over a verified TLS session, and the model's TEE |
| An attested model instance | The instance's key | Only 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 modetee. - First live call on XE Sim Interop (2026-10-18): request
b416cbe3…, settlecf88fac7…, 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: trueandprovider.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
- Your wallet derives an encryption key. It never uses its signing key for this.
- 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.
- The client seals the prompt to the attested key and sends it as the inline input of a
service_request. - The provider opens it inside its enclave, calls the model, seals the answer to your key, and signs a receipt.
- XE's nodes check the result against the attestation, and the settle records it.
- 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:
| Format | Provider | What the node checks |
|---|---|---|
| 3 | An attested model provider | The model's signature over model:sha256(sealed request):sha256(sealed answer), with the attested key named in the envelope |
| 4 | A provider's attested router | The 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):
{"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_sha256is the hash of what was sent andresponse_sha256the hash of what came back;policy.zdris true.
Any failure is an error. There's no fallback.
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.
| Tool | What |
|---|---|
xe_e2ee_keys | The agent wallet's encryption keys |
xe_e2ee_seal | Seal 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_open | Verify 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
gradefield, checked against the attestation type. - A minimum grade in an agent's grant, enforced by every node, replacing the local
XE_MIN_GRADEcheck. - 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.