OpenXNetworkDocs

Confidential AI with NEAR

In partnership withNEAR

Nexy Cloud Max runs inference on NEAR AI Cloud, in partnership with NEAR. Each request is processed inside a hardware trusted execution environment that spans both the CPU (Intel TDX) and the GPU (NVIDIA Confidential Computing), and each result can be tied back to that hardware with a cryptographic attestation. This page explains the moving parts. For the plain-English version, see Confidential compute with NEAR.

Architecture

The building blocks

PartWhat it doesWhy it matters
Intel TDX (Trust Domain Extensions)Runs a whole virtual machine as a trust domain. Its memory is encrypted with keys held by the CPU, and the hypervisor and host can't read or change it.The inference server, the model weights in RAM and your decrypted prompt live here.
NVIDIA Confidential ComputingPuts the GPU in confidential mode. GPU memory is isolated from the host, and traffic between the CPU trust domain and the GPU is encrypted through bounce buffers over PCIe.The model actually computes on the GPU, so the GPU has to be inside the boundary too.
Confidential VM (CVM)The TDX virtual machine with the GPU passed through, running the model server in a container.One sealed unit from network socket to GPU core.
Private inference gatewayRoutes requests to model enclaves. Runs in its own TDX confidential VM with its own Intel attestation.Even routing happens inside attested hardware.
AttestationSigned hardware evidence: an Intel TDX quote and an NVIDIA GPU attestation report.Lets anyone confirm what hardware and software handled a request.
Enclave signing keyA key pair created inside the enclave. Its address goes into the attestation; its private key never leaves.Signs every request and response, so results can't be forged outside.

A request, step by step

  1. Ask for proof first Before sending anything sensitive, the client requests an attestation report with a fresh random nonce. The report carries the Intel TDX quote, the NVIDIA GPU evidence and the enclave's signing address.
  2. Check the hardware The client (or a verifier it trusts) validates the TDX quote with Intel, and the GPU evidence with NVIDIA. This proves the request will land on genuine, correctly configured confidential hardware.
  3. Check the software The measurements include the exact software stack loaded in the trust domain. Before deployment, NEAR AI also checks the container image hash, so the code that runs is the code that was audited.
  4. Check the binding The report's report_data must contain the signing address and your nonce. That ties this exact key to this exact hardware, right now, and stops replayed old reports. With TLS binding on, it also holds the hash of the TLS certificate, proving the HTTPS connection ends inside the enclave.
  5. Send the request The prompt travels over TLS to the gateway (itself in a TDX confidential VM) and on to the model enclave. Between CPU and GPU it moves through encrypted buffers.
  6. Run the model The model runs on the GPU in confidential mode. Plaintext exists only inside the CPU trust domain and the GPU, never in host-visible memory.
  7. Sign the result The enclave signs the request and the response with its private key, which was generated inside and never leaves.
  8. Verify the reply The client checks the signature against the attested signing address. If anything was swapped or tampered with, the check fails.

What gets measured

  • Intel TDX quote: MRTD (the initial image of the trust domain) and the runtime measurement registers RTMR0–3 (firmware, kernel, command line and the application layer), plus a 64-byte report_data field chosen by the enclave.
  • NVIDIA GPU evidence: the GPU's identity certificate chain and measurements of its firmware and driver, verified through NVIDIA's Remote Attestation Service (NRAS).
  • Container image: NEAR AI checks the image hash before deployment, so the model server is a known build.
  • Independent token: NEAR AI Cloud can return an Intel Trust Authority token: a JWT signed by Intel after it appraises the TDX quote against Intel's reference values. NEAR also publishes the raw evidence.

Binding the key to the hardware

The heart of the scheme is the report_data field inside the hardware quote. NEAR AI fills it like this:

// default
report_data = signing_address || nonce

// with include_tls_fingerprint=true
report_data = SHA256(signing_address || tls_cert_fingerprint) || nonce

Because the CPU signs the quote, nobody can put a different key or an old nonce in there without the signature breaking. Once the quote checks out, every message signed by that key is known to come from that enclave.

Verifying it yourself

An illustrative outline of what a client does. Names are simplified; NEAR AI's verification guide and open-source verifier have the exact endpoints and fields.

nonce  = random_hex(32)
report = GET /attestation/report?model=<model>&nonce=nonce

assert intel.verify(report.intel_quote)           // TDX quote, or the Intel Trust Authority JWT
assert nvidia.verify(report.nvidia_payload)       // GPU evidence via NRAS
assert report_data(report.intel_quote) ==
       pad(report.signing_address) + nonce        // key + freshness

reply  = POST /v1/chat/completions { ... }        // OpenAI-compatible
sig    = GET /signature/<reply.id>
assert recover(sig.text, sig.signature) == report.signing_address
Tip. Calling a model's direct completions endpoint means you only need to verify the model enclave. Going through the gateway, verify the gateway's Intel attestation too.

Threat model

Who or whatCan they see your prompt?Notes
The cloud provider or data centreNoSees encrypted memory, encrypted PCIe traffic and TLS.
Host OS and hypervisorNoTDX keeps them out of the trust domain's memory and registers.
NEAR AI and OwnX staffNoOperators sit outside the attested boundary. NEAR's tooling is open source and auditable.
A modified model serverDetectedChanges show up in the measurements, and verification fails.
Your own deviceYes, before encryptionConfidential compute protects data in the cloud, not a compromised laptop.
Physical and side-channel attacksReduced, not zeroTEEs raise the bar a lot, but no hardware is perfect. Vendors patch and re-certify; attestation reflects the patch level.

Performance

Confidential mode costs some speed, mostly from encrypting data as it moves between CPU and GPU. Independent benchmarks of H100 GPUs under Intel TDX show it is practical for production inference, with overhead that depends on the model and batch size. Large models that spend most of their time computing on the GPU feel it least.

How it fits OpenX

  • Today: Nexy Cloud Max (coming soon) sends inference to NEAR AI Cloud. Nexy on your own computer doesn't need it, because nothing leaves your device.
  • Payments: plans are paid by card through Stripe at launch, with tGPU payments arriving with the tGPU wallet.
  • Q2 2027: Verifiable AI results builds on the same idea: compute that comes with proof of where and how it ran.

Sources and tools