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

# SDK Installation

> Install ZKScore SDKs for your preferred language and framework

## JavaScript SDK

### NPM Installation

```bash theme={null}
npm install @zkscore/sdk
```

### Yarn Installation

```bash theme={null}
yarn add @zkscore/sdk
```

### PNPM Installation

```bash theme={null}
pnpm add @zkscore/sdk
```

### CDN Installation

```html theme={null}
<script src="https://unpkg.com/@zkscore/sdk@latest/dist/index.js"></script>
```

## React SDK

### NPM Installation

```bash theme={null}
npm install @zkscore/react-sdk
```

### Yarn Installation

```bash theme={null}
yarn add @zkscore/react-sdk
```

### PNPM Installation

```bash theme={null}
pnpm add @zkscore/react-sdk
```

## Python SDK

### PIP Installation

```bash theme={null}
pip install zkscore-sdk
```

### Poetry Installation

```bash theme={null}
poetry add zkscore-sdk
```

### Conda Installation

```bash theme={null}
conda install -c conda-forge zkscore-sdk
```

## TypeScript Support

All SDKs include full TypeScript definitions:

```typescript theme={null}
import { ZKScoreClient } from '@zkscore/sdk';

const client = new ZKScoreClient({
  apiKey: process.env.ZKSCORE_API_KEY
});
```

## Environment Setup

### Environment Variables

Create a `.env` file:

```bash theme={null}
ZKSCORE_API_KEY=your_api_key_here
ZKSCORE_ENVIRONMENT=mainnet
```

### Configuration

<CodeGroup>
  ```javascript JavaScript theme={null}
  import { ZKScoreClient } from '@zkscore/sdk';

  const client = new ZKScoreClient({
    apiKey: process.env.ZKSCORE_API_KEY,
    environment: 'mainnet', // or 'testnet'
    timeout: 10000,
    retries: 3
  });
  ```

  ```python Python theme={null}
  from zkscore import ZKScoreClient

  client = ZKScoreClient(
      api_key=os.getenv('ZKSCORE_API_KEY'),
      environment='mainnet',  # or 'testnet'
      timeout=10,
      retries=3
  )
  ```
</CodeGroup>

## Verification

Test your installation:

<CodeGroup>
  ```javascript JavaScript theme={null}
  import { ZKScoreClient } from '@zkscore/sdk';

  const client = new ZKScoreClient({
    apiKey: 'your_api_key'
  });

  async function testConnection() {
    try {
      const score = await client.getScore('alice.zks');
      console.log('SDK working!', score);
    } catch (error) {
      console.error('SDK error:', error);
    }
  }
  ```

  ```python Python theme={null}
  from zkscore import ZKScoreClient

  client = ZKScoreClient(api_key='your_api_key')

  async def test_connection():
      try:
          score = await client.get_score('alice.zks')
          print('SDK working!', score)
      except Exception as e:
          print('SDK error:', e)
  ```
</CodeGroup>

## Related Documentation

* [SDK Introduction](/sdk/introduction)
* [JavaScript SDK](/sdk/javascript/getting-started)
* [React SDK](/sdk/react/getting-started)
