/products/packages/api-client · v0.16.0 stable

One typed client for HTTP, WebSocket, and SSE agent runtimes

@cavi-ai/api-client is a typed follower package for compatible HTTP, WebSocket, and SSE runtime surfaces. It mirrors and verifies upstream-compatible behavior — it does not claim to be the canonical runtime contract.

/why

What this removes from your integration code

Three problems this client takes off your plate.

01

One client instead of a fetch wrapper per provider

startRun and getRuntimeCapabilities work the same way against every documented provider — Claude (Anthropic), Codex (OpenAI), Gemini (Google), Antigravity (AGY), Hermes, OpenClaw, Claude Managed Agents (beta). Swap the provider module, not the request code.

02

Types generated from the packed v0.16.0 release, not hand-maintained

34 public exports and 1929 reference symbols come from the actual declaration surface shipped in the package. Types don't drift from what upstream changed last.

03

One transport model for request/response and streaming

streamRun and startRun both resolve a CapabilityResult. Gate on supports.streaming before subscribing and the result shape is the same whether the run completed or streamed.

/package

@cavi-ai/api-client

A typed follower package for compatible HTTP, WebSocket, and SSE runtime surfaces.

01 / TypeScript packagev0.16.0 stable

Follower package

Integrate upstream-compatible runtimes through one typed client.

Typed boundaries make upstream behavior easier to integrate and verify without presenting this package as the canonical runtime contract.

verified against the published package v0.16.0
pnpm
pnpm add @cavi-ai/api-client

Version
v0.16.0
Docs pages
79
Public exports
34
Reference symbols
1929
Examples
9

/documented-providers

Providers documented against this release

Each entry ships an operations reference page in the v0.16.0 documentation snapshot.

  • Claude (Anthropic)
  • Codex (OpenAI)
  • Gemini (Google)
  • Antigravity (AGY)
  • Hermes
  • OpenClaw
  • Claude Managed Agents (beta)