API client overview
@cavi-ai/api-client is a provider-agnostic TypeScript client for AI agent runtimes. One RuntimeClient contract covers Claude (including Managed Agents), Codex, Gemini, Hermes, OpenClaw, and related gateway surfaces — HTTP, WebSocket RPC, SSE, and optional React bindings.
This documentation set is the immutable product docs for a published package version. Upstream runtimes remain the protocol owners; this client mirrors and verifies compatible behavior.
This client mirrors and verifies upstream-compatible behavior. Upstream runtimes remain the canonical protocol owners.
Start here
- Installation — install the package and pick a provider entry.
- Quickstart — first
startRun/ gateway call. - Runtime client — the universal contract.
- Operations — OpenAPI-style operation reference.
- Postman — prove gateway surfaces against a live host.
How this docs set is published
- Docs site (cavi-ai.xyz): ingests the GitHub release asset
cavi-api-client-docs-vX.Y.Z.tar.gz (canonical).
- npm package: may include the same
docs/api-client/vX.Y.Ztree for offline
reading; it is not the site ingest authority.
See the consumer contract in docs/api-client/CONSUMER.md for validation rules.