How a request flows
One request, end to end. Everything below happens inside a Phala enclave whose measurement is in your receipt.
Seven steps
Encrypt to the enclave.
The WISPR SDKs and CLI encrypt the request to the enclave key. Stock OpenAI clients (curl, Cursor) connect to the gateway over TLS.
Pseudonymise.
In pasted material, names, amounts, wallets, emails, addresses, dates and secrets become typed placeholders such as [PERSON_1] and [AMOUNT_2]; a question's own words go out as written, so the model answers the question you asked. Secrets are masked everywhere. The mapping stays in enclave memory.
Split.
The task is cut into shards by class: identity, financial, medical, secrets, code, reasoning. A shard is useful alone and meaningless with the others missing.
Route with CASR.
Context Aware Split Routing allocates a model per shard. Sensitive classes go to catalogue models, never to a frontier provider. Today two catalogue models run on WISPR hardware (Phala TDX); the rest are routed to Venice, OpenRouter, Cerebras or Higgsfield. Reasoning can go to a frontier model with placeholders only, if allowed.
Catch refusals.
A shard that comes back refused is resharded to a model that answers. The receipt records it.
Rebuild.
Shard answers are merged, validated against the original task, and the identifiers are restored.
Sign.
The receipt names every model, shard class, token count, cost and the enclave measurement, signed with the enclave key. The exit region joins it once relay exits ship.
Which shards may go to a frontier provider, and how the request is planned, is yours to set per request: X-Wispr-Frontier, X-Wispr-Sensitive and X-Wispr-Plan in Controls. The whole path, drawn, is in the Introduction.
Cost of splitting
Two to four model calls for one request, so a split request costs more tokens than one direct call, and tasks that need the whole context at once can read slightly worse. Each call is listed in the receipt at the model's own rate. X-Wispr-Shard: mask keeps one call and only replaces identifiers when that is enough.
X-Wispr-Shard | What happens | Model calls |
|---|---|---|
auto | full pseudonymise and split | 2 to 4 |
mask | identifiers only, one call | 1 |
off | one model, as is | 1 |
Verify the enclave
npx wispr attest # checks the quote against the published build curl https://api.wispr.xyz/v1/attest # raw TDX quote, verify with any TDX tool
Measurements for every released enclave build are published with the source commit. The SDKs pin the current one and refuse a different one with 424 attestation_mismatch.
- Enclave
wispr-casr- Mode
tdx(Intel TDX on Phala)- Measurement
sha256:b457efe8ba8acf600a42397072eea97e21ff42220b2d8c9de7bc9fba4b8203f5- Snapshot
- from
/v1/attest, fetched 10 Nov 2026. Run the commands above for the current value.