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

# Prerequisites

Before you begin using AI Guard, ensure you have the following prerequisites in place.

## OneTrust Requirements

| Requirement                    | Description                                                                                                                                               |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AI Governance Subscription** | An active OneTrust AI Governance subscription is required                                                                                                 |
| **OneTrust API Key**           | An API key with **Data Discovery** scope for SDK authorization. See [Create an API Key](https://developer.onetrust.com/onetrust/docs/ai-guard-create-api-key)                                      |
| **Light Worker Node**          | A deployed OneTrust Light Worker Node that hosts the AI Guard classification service. See [Deploy the Light Worker Node](https://developer.onetrust.com/onetrust/docs/ai-guard-deploy-worker-node) |

## Development Environment

| Requirement        | Details                                                                                    |
| ------------------ | ------------------------------------------------------------------------------------------ |
| **Python**         | Version 3.13 or higher                                                                     |
| **pip**            | Python package manager (included with Python 3.13+)                                        |
| **Network Access** | Your application must be able to reach the AI Guard service endpoint (default port `4443`) |

## SDK Dependencies

The AI Guard SDK automatically installs the following dependencies:

| Package         | Minimum Version | Purpose                           |
| --------------- | --------------- | --------------------------------- |
| `cryptography`  | 43.0.0          | TLS certificate pinning           |
| `python-dotenv` | 1.0.0           | Environment variable management   |
| `requests`      | 2.25.0          | HTTP client for API communication |

## Information You Will Need

Before integrating the SDK, gather the following from your OneTrust administrator:

* **AI Guard Service URL** — The hostname or IP address and port of your AI Guard classification service (e.g., `https://ai-guard.example.com:4443`)
* **API Key (Bearer Token)** — Your OneTrust API key with Data Discovery scope
* **Certificate Pin (optional)** — If TLS certificate pinning is used, the base64-encoded SHA-256 hash of the server certificate's public key
* **Classification Profile UUID (optional)** — If using a specific classification profile rather than the default

> 📘 TLS Certificate Pinning
>
> If your AI Guard service uses self-signed or internally-signed TLS certificates, your administrator will provide a certificate pin (`pin_sha256`) for secure communication. See [TLS & Certificate Pinning](https://developer.onetrust.com/onetrust/docs/ai-guard-tls-certificate-pinning) for details.

## Verify Your Environment

Run the following to confirm your Python version meets the minimum requirement:

```bash
python --version
# Python 3.13.x or higher required
```

Verify `pip` is available:

```bash
pip --version
```

## What's Next?

Once you have the prerequisites in place:

1. [Create an API Key](https://developer.onetrust.com/onetrust/docs/ai-guard-create-api-key) — Generate credentials for SDK authorization
2. [Deploy the Light Worker Node](https://developer.onetrust.com/onetrust/docs/ai-guard-deploy-worker-node) — Set up the classification service
3. [Install the SDK](https://developer.onetrust.com/onetrust/docs/ai-guard-install-sdk) — Download and install the Python SDK