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

# Installation

> Install the Muxx TypeScript SDK.

Install the Muxx TypeScript SDK to add observability to your Node.js applications.

## Requirements

* Node.js 18 or higher
* npm, yarn, pnpm, or bun

## Install with npm

```bash theme={null}
npm install muxx
```

## Install with yarn

```bash theme={null}
yarn add muxx
```

## Install with pnpm

```bash theme={null}
pnpm add muxx
```

## Install with bun

```bash theme={null}
bun add muxx
```

## Verify Installation

```typescript theme={null}
import { Muxx } from 'muxx';

const muxx = new Muxx();
console.log('Muxx initialized');
```

## Configuration

Set your Muxx API key as an environment variable:

```bash theme={null}
export MUXX_API_KEY="muxx_sk_live_xxxxxxxxxxxx"
```

Or pass it directly when initializing:

```typescript theme={null}
import { Muxx } from 'muxx';

const muxx = new Muxx({ apiKey: 'muxx_sk_live_xxxxxxxxxxxx' });
```

## TypeScript Setup

The SDK includes TypeScript types out of the box. No additional `@types` package needed.

```typescript theme={null}
// tsconfig.json - recommended settings
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true
  }
}
```

## Next Steps

<Card title="Quickstart" icon="rocket" href="/sdk/typescript/quickstart">
  Start tracing your LLM calls
</Card>
