Repository navigation
v0.4.0 · Harness Chat
Harness Chat. Same contract, nothing redeployed.
- harnessagent.tech/chat: private chat with open models that run in a TEE. Messages are encrypted in the browser to the attested enclave key, the gateway forwards ciphertext, and every answer's signed receipt is checked in the page (six checks, shown under each answer). Nothing is stored; the conversation lives only in the tab.
- No account. A random chat key in the browser holds the credit. Credit is bought with a USDG transferWithAuthorization (EIP-3009) signed in the visitor's own wallet, exact amount, no approval, whose nonce is sha256(chat key), so only that key can claim it. The gateway still holds no key.
- Gateway: a free trial (messages per day per key and per IP, cheap models, short answers, a daily total), all set by Worker variables.
- chat/core.js: the browser E2EE and receipt checks, tested against the Node SDK and the spec vectors.
- Tests: chat gateway and the browser code against the real enclave (18).
- Docs: docs/chat.md