---
product: "AG Studio"
title: "Installing a Licence Key"
description: "A licence key is validated and configured in the application."
framework: react
version: "3.0.0"
related:
    - title: "Installation"
      url: "https://www.ag-grid.com/studio/archive/3.0.0/react/installation/"
    - title: "React Best Practices"
      url: "https://www.ag-grid.com/studio/archive/3.0.0/react/react-best-practices/"
llms: "https://www.ag-grid.com/studio/archive/3.0.0/llms.txt"
---

# Installing a Licence Key

A licence key is validated and configured in the application.

> **Note**
>
> You can test AG Studio locally without a licence. To test in production, access support, and remove the watermark and console warnings, [Request a Trial Licence](https://www.ag-grid.com/studio/archive/3.0.0/license-pricing/?tab=trial).

## Validate Your Licence

[Validate your licence key](https://www.ag-grid.com/studio/archive/3.0.0/react/licence-install/) using the tool on this page.

### Configure Your Application

The snippets below assume AI features are not used. To see the snippets with AI features enabled, use the tool on [this page](https://www.ag-grid.com/studio/archive/3.0.0/react/licence-install/).

### Add Your Dependencies

Copy the following dependencies into your `package.json`:

```jsx
dependencies: {
    "ag-studio-react": "3.0.0",
    "ag-studio": "3.0.0"
}
```

Or install using npm:

```bash
npm install ag-studio-react ag-studio
```

### Set Up Your Application

An example of how to set up your AG Studio Enterprise Licence Key:

```jsx
import { AgStudio, AgStudioProvider } from "ag-studio-react";

function App() {
    return (
        <AgStudioProvider licenseKey="YOUR_LICENCE_KEY">
            <AgStudio /* ... props */ />
        </AgStudioProvider>
    );
}

// For older versions use the LicenseManager and ModuleRegistry directly

// import { AgStudioLicenseManager } from "ag-studio";
// AgStudioLicenseManager.setLicenseKey("YOUR_LICENCE_KEY");
```
