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

# Installation

> [card] [Open Source SDK](https://github.com/Chainlit/literalai-typescript)
>
> Check out the open-source Github Repo

### Introduction

In addition to the TypeScript SDK documentation, all [Guides](https://docs.literalai.com/guides/) showcase code examples in TypeScript.

> [!NOTE]
>
> Check the Literal AI TypeScript Client on [NPM](https://www.npmjs.com/package/@literalai/client) for the documentation.

```shell theme={null}
npm i @literalai/client@latest
```

## Instantiation

```ts theme={null}
import { LiteralClient } from "@literalai/client";

const literalAiClient = new LiteralClient({apiKey: process.env["LITERAL_API_KEY"]});
```

#### Disable Thread and Step Ingestion APIs

When instantiating the client, you have the option to disable the Thread and Step ingestion APIs that comes with the SDK, like `thread.step()`. This can be useful when you want to disable this without changing the code.

```ts theme={null}
import { LiteralClient } from "@literalai/client";

const literalAiClient = new LiteralClient({
  apiKey: process.env["LITERAL_API_KEY"],
  disabled: true
  });
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.