Integration · language
Cypherz for TypeScript
Cypherz is built in TypeScript — the official SDK at `@cypherz/sdk` is the reference implementation. Drop-in wrappers for OpenAI, generic proxy for everything else, full type safety, and tiny bundle footprint.
01
Zero runtime dependencies
Pure `fetch` — works in Node 18+, Bun, Deno, Edge Runtime, and Cloudflare Workers.
02
Full type safety
Tokenization round-trip is typed end-to-end.
03
Re-exports the OpenAI shape
`@cypherz/sdk/openai` mirrors the OpenAI SDK so your code doesn't move.
Install + use
npm install @cypherz/sdk
// then:
import { Cypherz } from "@cypherz/sdk";
const c = new Cypherz({ apiKey: process.env.CYPHERZ_KEY });
const { text } = await c.tokenize({
text: "Email john@acme.com",
});Common questions
Frequently asked.
Is Cypherz officially supported by TypeScript?
Cypherz is built as a transparent proxy compatible with TypeScript's public API. We don't require their endorsement and they don't gate us — your existing API key works through Cypherz.
Will my latency get worse?
Tokenization adds 5-30ms per request depending on payload size. The actual LLM call is the dominant cost (hundreds of ms), so the user-perceived difference is negligible. Run Cypherz in the same region as your AI provider for lowest hop overhead.
Does streaming work?
Yes — Cypherz proxies streaming responses and restores tokens chunk-by-chunk on the way back. Works with SSE and standard chunked transfer.
Can I use my own TypeScript key?
Yes — paste your key when you create a project; Cypherz encrypts it under the per-project vault key. You can also use managed mode where Cypherz provisions and bills the upstream key.
Get started
Add Cypherz to your TypeScript integration in 60 seconds.
Sign up, create a project, copy your API key. The first request is tokenized in under sixty seconds.
More integrations
Use Cypherz with OpenAI
Drop-in PII tokenization for the OpenAI API and SDK. Cypherz wraps `chat.complet…
Use Cypherz with Anthropic Claude
Tokenize PII before it reaches Claude. Cypherz proxies the Anthropic API transpa…
Use Cypherz with Google Gemini
Send sanitized payloads to Gemini Pro and Gemini Flash. Cypherz proxies the Goog…
Use Cypherz with LangChain
Plug Cypherz into LangChain so every chain, agent, and tool call gets PII-protec…
Use Cypherz with Vercel AI SDK
Wrap the Vercel AI SDK's `streamText` and `generateText` with Cypherz so your Ne…
Use Cypherz with Python
Use Cypherz from any Python AI workload. Works with the OpenAI Python SDK, Anthr…