> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parlayx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install the ParlayX TypeScript SDK

`@parlayx/sdk` is the official TypeScript client for the ParlayX API. It provides
typed request and response models generated from the API contract, a small
client wrapper over the REST endpoints, typed errors, and cursor-following
pagination helpers.

## Install

```sh theme={null}
npm install @parlayx/sdk
```

The package ships both ESM and CommonJS builds with bundled type declarations,
and runs anywhere there is a global `fetch` (Node.js 18+, modern browsers, edge
runtimes).

The WebSocket streaming client is included in this same package at the
`@parlayx/sdk/stream` subpath — there's no separate install. See the streaming
[Introduction](/sdk/stream/introduction).

## Source

The SDK is published on [npm](https://www.npmjs.com/package/@parlayx/sdk). The
bundled OpenAPI document is available at `@parlayx/sdk/openapi/v1.json`.
