Skip to main content
The TypeScript SDK (@alterscope/sdk) is in beta; GA is targeted for late Q2 2026. The package name and import surface on this page are stable and will not change at GA.

Install

Node 20+ and modern browsers are supported. The SDK ships ESM and CJS bundles.

Quick start

Resources mirror the API surface (e.g. client.oracles, client.yieldOpportunities); freshnessStatusOf reads the agentic envelope freshness status off any response.

Browser usage

Never embed an sk_live_ key in browser code. Mint a short-lived session token from your backend and pass it to the SDK as apiKey. The SDK does not send credentials over insecure transports.

Real-time and webhooks

For WebSocket subscriptions and signed-webhook verification, see Realtime → WebSockets and Webhooks.