Build on Zero. Your AI, in any app.
The official SDK for Zero — our metered, tenant-isolated AI. Add chat, a private knowledge base, and a custom persona to any server, browser, or mobile app. Zero dependencies, typed, one install.
npm i @zindexzero/sdkor in the browser: https://esm.sh/@zindexzero/sdk
Sign up
Create an account and submit your project at /start.
Get your keys
Once approved, issue secret + publishable keys from your portal.
Install & build
npm i @zindexzero/sdk and drop Zero into your app.
A few lines, anywhere
The same typed client on the server, in the browser, and in React Native — it auto-routes by the key you give it.
Server (Node / TypeScript)
Hold a secret key on your backend for the full surface — chat plus your private knowledge base.
import { Ziz } from "@zindexzero/sdk";
const ziz = new Ziz({ apiKey: process.env.ZIZ_KEY! }); // ziz_live_…
const { text } = await ziz.chat("Summarize this contract");
await ziz.docs.add({ text: "Internal policy…", title: "Policy" });Browser / Mobile (no secret)
Untrusted apps never hold a secret. Call the ZiZ-hosted proxy — we hold the key; your app sends nothing sensitive.
import { ZizHosted } from "@zindexzero/sdk";
// browser: your registered Origin is the gate
const zh = new ZizHosted({ client: "acme" });
const { text } = await zh.chat("Help me with my account");React / React Native
A tiny hook that manages chat state — messages, send, status — for any Zero client.
import { useZero } from "@zindexzero/sdk/react";
const { messages, send, status } = useZero(client);
// render messages; call send(text) on submitEverything in one client
Chat
One call to the Zero brain. Cheap by default; escalates to larger models only on the hard turns.
Private knowledge base
Upload your own documents; answers draw only from your tenant's content — credential-isolated, never shared.
No-secret browser & mobile
Publishable keys or the hosted proxy mean a secret key never ships inside an app bundle.
Custom persona
Give your assistant a role and voice per key — fenced so it can never break isolation or speak for us.
Self-serve control plane
Sign in to manage keys, caps, usage, and features programmatically — no dashboard required.
Verify your isolation
Run npx @zindexzero/sdk proof to watch one tenant's key fail to read another's data — isolation you can prove in a command, not just trust.
Zero dependencies
Pure ESM over fetch. Works in Node and browsers, types included, on npm and every ESM CDN.
The full guide lives in the README
Auth, attachments, the hosted proxy, the control plane, and the complete API reference — all in the package README on npm. Install is one command; a key takes a minute.