Skip to content
Color theme
Contact UsDashboard
Contact Us
Color theme
Dashboard

Run Attestation

Run confidential enclave attestation directly with Reticle.

The Prem SDK and the Confidential Proxy verify attestation automatically. To check a confidential runtime yourself, use @premai/reticle, the same verifier they use.

You need a Prem API key. Create one in the Prem Dashboard.

1. Install Reticle

bun
bun add @premai/[email protected]
npm
npm install @premai/[email protected]
pnpm
pnpm add @premai/[email protected]

Reticle runs on Node.js, Bun, Deno, modern browsers, and mobile devices (iOS and Android via React Native).

2. Verify the runtime

import { ClientBuilder, CpuModule, GpuModule, QueryParams } from "@premai/reticle";

const apiKey = process.env.PREM_API_KEY;
const proxyUrl = process.env.PROXY_URL || "https://gateway.prem.io";

if (!apiKey) {
  throw new Error("Set the PREM_API_KEY environment variable");
}

const client = await new ClientBuilder(proxyUrl)
  .with_authorization(apiKey)
  .build();

client.set_query(new QueryParams().with("model", "deepseek-v4.1-flash-1017"));

const result = await client.attest();

const modules = result.modules();
const gpu = modules.gpu();

console.log("CPU:", CpuModule[modules.cpu()]);
console.log("GPU:", gpu === undefined ? "none" : GpuModule[gpu]);
console.log("Session ID:", result.headers().get("x-session-id"));

The builder loads and verifies signed policies and measurement references from Trustbase. client.attest() then:

  1. Generates a fresh challenge and requests a unified report for the selected model.
  2. Verifies CPU evidence and manufacturer collateral, including the challenge bound to the workload manifest.
  3. Checks supplied GPU evidence, including signatures, digest links and the nonce bound to the CPU report.
  4. Evaluates policy claims and CPU measurements against the signed release references for registered PodVM releases and workload initialization data.

request_attestation(nonce) retrieves raw evidence without performing these checks. Use attest() for a verification decision.

3. Read the result

attest() throws if a required verification or policy check fails. On success, the result exposes:

MethodReturns
modules()The verified modules: cpu() returns a CpuModule (Sev, Tdx or Azure), and gpu() returns a GpuModule (Nvidia) or undefined when the report has no GPU evidence
headers()Response headers, including x-session-id
pod_report()The workload manifest

A standalone Reticle call does not send an inference request. The Prem SDK is what forwards the session ID with protected requests.

This guide uses the standard attestation flow for the Confidential chat models. See Attestation for what a pass does and does not show.

Read the full attestation architecture and current implementation status.

Understand the threat model and confidential computing boundaries.

Inspect signed release references and attestation policies.

See how to run on-device Reticle verification in React Native.

Search guides and API reference.