> ## Documentation Index
> Fetch the complete documentation index at: https://litprotocol-feature-jss-124-docs-update-docs-to-include-htt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Lit Client Setup

> Configure the Lit Protocol client for the Lit JS SDK

<Tip>
  See SDK Reference for more details on the Lit Client. [Lit Client Reference](/sdk/sdk-reference/lit-client/functions/createLitClient)
</Tip>

## Overview

The Lit Client is the core interface for interacting with the Lit Protocol network.

<Steps>
  <Step title="Install the SDK">
    Run the following command to install the SDK:

    <CodeGroup>
      ```bash npm theme={null}
      npm i @lit-protocol/lit-client @lit-protocol/networks
      ```

      ```bash yarn theme={null}
      yarn add @lit-protocol/lit-client @lit-protocol/networks
      ```

      ```bash pnpm theme={null}
      pnpm add @lit-protocol/lit-client @lit-protocol/networks
      ```

      ```bash bun theme={null}
      bun add @lit-protocol/lit-client @lit-protocol/networks
      ```
    </CodeGroup>
  </Step>

  <Step title="Network Configuration & Client Creation">
    Choose the appropriate network based on your development stage and requirements, then create your Lit Client instance.

    Choose the appropriate network based on your development stage and requirements, then create your Lit Client instance.

    <CodeGroup>
      ```typescript dev theme={null}
      import { nagaDev } from "@lit-protocol/networks";
      import { createLitClient } from "@lit-protocol/lit-client";

      const litClient = await createLitClient({
        network: nagaDev,
      });
      ```

      ```typescript test theme={null}
      // ❗️ Currently in development. Coming soon...
      import { nagaTest } from "@lit-protocol/networks";
      import { createLitClient } from "@lit-protocol/lit-client";

      const litClient = await createLitClient({
        network: nagaTest,
      });
      ```

      ```typescript production theme={null}
      // ❗️ Currently in development. Coming soon...
      import { nagaProduction } from "@lit-protocol/networks";
      import { createLitClient } from "@lit-protocol/lit-client";

      const litClient = await createLitClient({
        network: nagaProduction,
      });
      ```
    </CodeGroup>
  </Step>
</Steps>

## Network Comparison

Select the appropriate network environment based on your development stage and requirements. Each network offers different characteristics for testing and production use cases.

| Network        | Type          | Key Persistence  | Payment Required | Use Case               | Status        |
| -------------- | ------------- | ---------------- | ---------------- | ---------------------- | ------------- |
| **Dev**        | Centralised   | ❌ Temporary      | ❌ Free           | Development & Testing  | ✅ Available   |
| **Test**       | Decentralised | ⚠️ No guarantees | ✅ Required       | Pre-production Testing | ❌ Coming Soon |
| **Production** | Decentralised | ✅ Persistent     | ✅ Required       | Live Applications      | ❌ Coming Soon |
