Build your AI layer
with a clear path.
Start with one server-side request. Add streaming, tools, durable sessions, and production controls only when your product needs them.
bun add @zhivex-ai/sdk @zhivex-ai/openaicreate provider modelgenerate, stream, or run an agentnormalized result + usage + stepsTwo SDKs. One adoption model.
Keep application logic portable and opt into provider-native features deliberately.
See what changed before you upgrade.
Curated impact, affected packages, migration guidance, and links to the complete source changelogs.
Focused entrypoints, capability profiles, and runtime hardening
TypeScript 1.7 makes package boundaries explicit, gives the SDK ownership of the release-managed model catalog, adds richer Beta provider contracts, and hardens shared runtime behavior.
Read release notes →v0.18.2Meta agents, safer tools, and restored publication
Python 0.18.2 publishes the complete 0.18 line with Beta Meta Model API support, stronger typed agent controls, richer evaluations, and a repaired PyPI release path.
Read release notes →Go directly to the job at hand.
Each guide starts from the public SDK contract and calls out the boundary your application still owns.
Generation & tools
Use the portable primitives for streaming text, validated objects, messages, and local tools.
↗Agents & sessions
Build a tool-using agent, add durable multi-turn sessions, and introduce approval boundaries.
↗Next.js & React
Keep the provider and Runner on the server, then stream normalized UI events to a browser-safe chat client.
↗FastAPI
Put authentication, request validation, provider calls, errors, and streaming behind a backend API.
↗Workflows
Orchestrate known business processes with sequential, parallel, loop, durable, and approval-aware execution.
↗RAG & embeddings
Build tenant-safe retrieval with portable embeddings and an application-owned vector store.
↗Observability & evals
Export privacy-aware traces, replay saved state, measure regressions, and enforce CI quality gates.
↗Production
Put identity, durable state, approvals, observability, and provider policy around the SDK runtime.
↗Add the native surface deliberately.
Each page separates stable portable contracts from beta, experimental, and provider-owned behavior.
Gateway
Add server-side routing, retries, capability filters, and bounded fallbacks without changing the application response contract.
↗MCP & hosted tools
Choose between portable local tools, SDK-managed MCP tools, and provider-native hosted execution without blurring trust boundaries.
↗Multimodal
Handle files, vision, embeddings, audio, generated media, and realtime sessions with explicit provider and data boundaries.
↗Subagents
Use model-directed child agents when delegation is dynamic, while bounding tools, budgets, approvals, state, and tenant scope.
↗CLI & protocols
Use the Stable local TypeScript CLI and the Beta Python CLI and protocol adapters.
↗API reference
Search the public TypeScript and Python symbols classified by the SDK stability manifests.
↗The SDK runs inside your application policy.
Zhivex normalizes model and agent behavior. Your server remains responsible for identity, tenancy, credentials, tools, durable storage, billing, and retention.
Review the production guide →These guides are distilled from the public contracts, runnable examples, and production notes in both SDK repositories.