What is CloakAPI
CloakAPI swaps the personal data it detects for stand-ins on your device, before your AI request is sent. The CloakAPI gateway relays the call to the model provider you choose and signs a receipt for completed responses. Detection can miss things: see Known limitations.
How it works
- Your device tokenizes. A CloakAPI client (browser chat, the desktop app, the
browser extension, the local proxy or a CloakAPI SDK)
replaces the values its detectors match, such as names, emails, IDs and
addresses, with deterministic stand-ins before the request leaves your
device. With a client in front, the provider sees a stand-in such as
mark.allen@brightwave.comrather thanjane.doe@acme.com. How privacy works shows the forms a stand-in can take. - The gateway relays. The inference route checks a client declaration, a MAC
over the submitted bytes and the declared engine identity. It does not scan
the body, so it cannot tell whether tokenization ran or whether every
identifier was replaced. A stock OpenAI or Anthropic SDK pointed at
https://api.cloakapi.iois refused, because it sends no proof headers. A request that carries the proof is relayed as submitted: the gateway does not tokenize it, so your code must tokenize and review the content itself. The gateway routes requests using account defaults and supported provider failover, with per-tenant quotas and per-request rate limiting. Saved provider-routing rules are not currently applied to requests. - The gateway signs. Completed responses are signed with an
ecdsa-p256-sha256envelope chained to the previous response. You or an auditor can check a receipt later using only the public JWKS athttps://api.cloakapi.io/api/.well-known/cloakapi-receipt-pubkeys.jwks. See Verify a receipt, and What we sign for the calls that get no receipt.
Ways to use CloakAPI
- API quickstart: send a request from your code with a CloakAPI SDK. Hello world has the same first request in six languages.
- Local proxy: keep your OpenAI client and change its
base_urlto the proxy on your machine, which tokenizes what it detects before the request leaves. - Browser chat: a chat window at app.cloakapi.io that tokenizes what it detects in your prompts, in the browser, before relaying them to Claude, GPT, Gemini, Grok or DeepSeek. No code and no install.
- Browser extension: tokenizes what it detects as you type
on
chatgpt.com,claude.ai,gemini.google.comandgrok.com. Install it from the Chrome Web Store, or load the zip from Downloads. - Desktop app: version 1.2.8 for Windows and Linux. There is no macOS build. Versions before 1.2.8 must be reinstalled from the downloads page. Versions through 1.2.6 stay withdrawn.
Every way uses a CloakAPI account and API key and is billed by usage, in US dollars. What each one does when its on-device name model is missing is in Detection coverage.
Architecture
CloakAPI runs as a Laravel-based gateway (api.cloakapi.io) backed by
PostgreSQL and Redis, with a customer self-serve portal (app.cloakapi.io), a
marketing site (cloakapi.io) and an OIDC identity layer. Receipts follow a
public protocol spec at signedreceipts.org
(OpenReceipt v3) and can be checked in the browser at
app.cloakapi.io/receipt-verifier.
Compliance
- HIPAA: there is a structural argument that the client-side ways do not create a business associate relationship. Evaluate it with your own counsel; this is not legal advice. A template BAA is available on request from legal@cloakapi.io, who also countersign it. The HIPAA guide describes the full flow. You still need to perform your own HIPAA covered-entity gap analysis.
- Gateway hosting: the gateway is operated on Hetzner in Nuremberg, Germany. CloakAPI forwards requests to the AI provider you choose, and that provider may process request data outside the EU. Other provider connections can be configured through BYOC.
- GDPR: data minimization by design. The gateway does not persist customer
payloads by default. Response buffering (
X-CloakAPI-Buffer) is off by default. When an operator enables it, the gateway stores the provider response encrypted for the configured retention period (24 hours by default), and a successful retrieval deletes it. AnIdempotency-Keyon model relay requests retains a SHA-256 idempotency digest derived from the request and a completion marker; after a successful completion, a same-key, same-body retry returns 409 and does not replay the response. Some other successful API operations may be cached for replay for up to 24 hours. An optional semantic response cache is off by default.