---
title: "Installing a Licence Key"
framework: react
version: "2.1.2"
---

# Installing a Licence Key

Validate your licence key and configure your application. See sample code to learn how to install your AG Studio products.

> **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/license-pricing/?tab=trial).

## Validate Your Licence

[Validate your licence key](https://www.ag-grid.com/studio/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/react/licence-install/).

### Add Your Dependencies

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

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

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 React from "react";
import { render } from "react-dom";
import { AgStudioLicenseManager } from "ag-studio";
import App from "./App";


AgStudioLicenseManager.setLicenseKey("YOUR_LICENCE_KEY");

document.addEventListener('DOMContentLoaded', () => {
    render(
        <App/>,
        document.querySelector('#app')
    );
});
```
