---
title: "Installing a Licence Key"
framework: javascript
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/javascript/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/javascript/licence-install/).

### Add Your Dependencies

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

```js
dependencies: {
    "ag-studio": "2.1.2"
}
```

Or install using npm:

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

### Set Up Your Application

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

```js
import { AgStudioLicenseManager, createStudio } from "ag-studio";

AgStudioLicenseManager.setLicenseKey("YOUR_LICENCE_KEY");

createStudio(<dom element>, studioProperties);
```
