Encrypted Mode: End-to-End Encrypted AI Chat With TEE Models

Encrypted mode is end-to-end encrypted AI chat. Your device encrypts the conversation to a key that exists only inside a hardware enclave (a TEE, or trusted execution environment), and the model runs inside that enclave too. Obscurify.ai’s server carries the ciphertext and never sees your prompt or the answer. Before anything is sent, your device checks the enclave’s attestation; after every reply, it checks a signed receipt. It works in the web chat, in the Android app and through the API, on 18 models.

What problem it solves

When you use an AI chat, your text is readable in at least two places: at the company you chat with, and at the machine that runs the model. A TEE model closes the second gap. The model runs in a confidential-computing enclave, where the processor and GPU encrypt the memory it works in, so the people who operate that machine can’t read your prompt even with full access to it.

That still leaves us. On an ordinary TEE request, our server decrypts your HTTPS connection, reads the text and sends it on to the enclave. We don’t log it, but you have to take our word for that. Encrypted mode takes us out of the list of places your text can be read.

How it works

TEE models on Obscurify.ai answer through an attested gateway run by RedPill and Phala, which runs inside its own Intel TDX enclave. With Encrypted mode on, each message goes like this:

  1. Your device picks a random nonce and asks the gateway for its attestation report, bound to that nonce. It checks that the report is a genuine Intel TDX quote, that the gateway’s measured code is an approved release, and that the report ties the gateway’s keys to your nonce. If any check fails, nothing is sent.
  2. Your device makes a fresh key pair and encrypts every message in the conversation to the gateway’s attested key: your messages, the system prompt and earlier answers (secp256k1 key exchange, HKDF-SHA256, AES-256-GCM).
  3. Our server swaps our model name for the gateway’s and passes the request on byte for byte. It refuses any request where a message holds anything besides a role and encrypted text, so nothing can travel alongside in plain text by mistake.
  4. The answer streams back encrypted to your device’s key, and your device decrypts it piece by piece.
  5. When the answer is done, your device fetches the gateway’s signed receipt and runs eight checks on it, listed in the TEE tutorial. One of them compares a hash of the conversation the enclave decrypted with what you encrypted, so we couldn’t have added, dropped or changed a message on the way.

The verifier is open source: github.com/Obscurify-ai/tee-verify. The web chat runs it as WebAssembly in your browser, and the Android app builds it in.

Which models

All 18 TEE models take Encrypted mode, 20 ids counting the thinking variants. They include GLM 5.3, GLM 5.3 Flash, Kimi K3.1 Pro, DeepSeek V4.1 Flash 1017, Qwen3.8 27B, Gemma 4 31B, GPT-OSS 120B and Llama 3.3 70B, plus three uncensored ones: DeepSeek V4.1 Flash 1017 Uncensored, Qwen3.8 27B Uncensored and Gemma 4 26B A4B Uncensored. Every one carries the zero retention tag.

The live list is at obscurify.ai/v1/models, where each of these models has "e2ee": true. Prices and plans are on the models page and pricing.

Claude, GPT and Gemini chat models aren’t on the list. Their makers run them on their own servers, and there’s no enclave to encrypt to.

Turn it on

In the web chat or the Android app, sign in and tap E2EE in the quick controls. The model picker then lists only TEE models. Each answer gets a mark when its checks finish: Encrypted when they all passed, or Check failed with the one that didn’t. Tap the mark to see each check and the receipt id. If the attestation can’t be verified before sending, you see Not encrypted and nothing goes out.

You can leave the page while an answer is being written. It keeps going, and your browser can still decrypt it when you come back.

From the API, the simplest route is the verifier’s command-line tool:

cargo install --git https://github.com/Obscurify-ai/tee-verify --features cli
obscurify-tee-verify chat --api-key sk-obs1_AbCd... --model tee/glm-5.3 --prompt "Hello"

It fetches and checks the attestation, encrypts, sends, decrypts and checks the receipt. To do the same from your own code, the TEE tutorial has the full protocol and a short Python example. A plain request to a tee/ model without the encryption headers still runs in the enclave, but it isn’t end-to-end encrypted.

What our server still sees

Encrypted mode hides the words of a chat, and leaves the facts around it visible. Our server still sees:

  • your account, because Encrypted mode uses your account key
  • which model you picked and when you chat
  • how long each message and answer is
  • the token counts, which the gateway reports in plain text so billing works

The receipt also carries a hash of the conversation the enclave decrypted, and we can see that hash. Someone who guessed a very short chat word for word could confirm the guess against it. The whole conversation is hashed together, so this only matters for trivial chats.

Your account is an anonymous random code with no email, phone or name behind it, so what we can tie these facts to is that code.

Limits

  • Encrypted mode runs on your account key, not on private sessions. Your other chats are paid with blind-signed vouchers, so we can’t tell which account they belong to. Encrypted chats are tied to your account. If unlinkability matters more to you than hiding the text from us, use a normal chat.
  • Text only. You can’t attach images or documents.
  • No tools, web search or Code Mode. We can’t read the text, so we can’t run anything it asks for.
  • The whole conversation is sent with every message. We can’t hold or summarize a chat we can’t read, so long chats send more data each turn, and a chat can’t go past the model’s context limit.
  • The enclave hardware is trusted. Encrypted mode protects against us and against the people running the machines, but it relies on Intel TDX working as designed and on Intel’s signing keys.
  • The verifier trusts the gateway’s own check of the GPU machine that runs the model. It doesn’t appraise that machine’s GPU evidence itself. The tee-verify README lists what it doesn’t prove.

Frequently asked questions

Is Encrypted mode the same as zero data retention?

No. Zero data retention is a promise from the model’s host that it keeps nothing after answering. Encrypted mode means we can’t read the text in the first place, and the enclave’s hardware keeps its operator from reading it. TEE models have both.

Can Obscurify.ai read my encrypted chats?

No. Our server only ever handles the ciphertext. The key that decrypts your messages exists only inside the enclave, and the key for the answers exists only on your device. We do see your account, the model, timing, message sizes and token counts.

Does Encrypted mode work in the Android app?

Yes. Tap E2EE in the quick controls, as in the web chat. The app runs the same attestation and receipt checks on the phone.

Why can’t I use tools or web search in Encrypted mode?

Our server runs tools and web search, and it would have to read your text to do that. Encrypted requests that include tools or web search are refused instead of sent.

What happens if a check fails?

If the attestation fails before sending, the message isn’t sent and you see Not encrypted. If the receipt check fails after an answer, the answer is marked Check failed and names the check, so you can see what went wrong. Nothing falls back to an unencrypted request.

How is this different from private sessions?

Private sessions hide which account a chat belongs to, but our server can read the text on its way to the model. Encrypted mode hides the text, but the chat is tied to your account. Today you choose one or the other for each chat. How private sessions work is in Unlinkable Inference: Private Sessions in Obscurify.