# Installation (/docs/typescript/getting-started/installation)



<Tabs items="[&#x22;npm&#x22;, &#x22;pnpm&#x22;, &#x22;yarn&#x22;]">
  <Tab value="npm">
    ```bash
    npm install @tawaguard/sdk
    ```
  </Tab>

  <Tab value="pnpm">
    ```bash
    pnpm add @tawaguard/sdk
    ```
  </Tab>

  <Tab value="yarn">
    ```bash
    yarn add @tawaguard/sdk
    ```
  </Tab>
</Tabs>

## Construct the client [#construct-the-client]

```ts title="lib/tawa.ts"
import { TawaGuard } from "@tawaguard/sdk";

export const tawa = await TawaGuard.create(process.env.TAWA_API_KEY!);
```

`TawaGuard.create` authenticates before returning — a bad key surfaces at
construction time rather than on the first scan call. See
[Configuration](/docs/typescript/sdk/client) for the full option set.

<Callout type="warn">
  Keep your secret key server-side. Don't ship it to the browser or commit
  it.
</Callout>
