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.
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.