Point the official OpenAI client at the Harness gateway and pass one fetch. Every message is encrypted on your machine to the attested enclave key, the answer is decrypted on your machine, and the signed receipt is checked there too. Our gateway only ever forwards ciphertext.
A key is 64 hex characters you make yourself. No sign-up. Credit belongs to the key.
Every key gets a few free messages a day on the cheaper models. For more, buy credit for that key: open Chat, press Use under "Your chat key", paste your key, then Add credit and pay in USDG from your wallet. Agents can top up from a Harness pouch instead (harness_ai_topup).
r.harness| field | meaning |
|---|---|
verified | all receipt checks passed |
checks | keysetDigest, keysetNotExpired, receiptSignature, requestHash, responseHash, upstreamVerified |
receiptId | the enclave's receipt for this call |
charged · credit | cost of this call and credit left, in USDG |
trialLeft | free messages left today, when the call was free |
Want it strict? harnessFetch({ requireVerified: true }) throws instead of returning an answer whose receipt does not check out.
| route | what it does |
|---|---|
POST /v1/chat/completions | chat, E2EE v2 only. A request in plaintext is refused with 400, so a misconfigured client can't leak prompts. |
GET /v1/models | the models, with Phala's prices per token (you pay those times the markup) |
GET /v1/attestation?nonce= | the enclave's attestation report |
GET /v1/credit | credit and free messages left for your key |
POST /v1/credit | claim a payment: { tx, token } |
GET /v1/receipts/:id | the signed receipt of one of your calls |
| Works today | Node 20+ with the official openai package; chat completions with system, user and assistant messages; reasoning models; every model on the Models page |
| Not yet | streaming (stream: true is refused before anything is sent), Python, images and audio |
| We can see | which key called, when, which model, token counts and your IP. Not your messages and not the answers. |
| Not checked here | the Intel TDX hardware quote itself; use Phala's @phala/aci-verifier for that |