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.