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

### Add Your Dependencies

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

```ts
dependencies: {
    "ag-studio-angular": "2.1.2",
    "ag-studio": "2.1.2"
}
```

Or install using npm:

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

### Set Up Your Application

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

```ts
import { AgStudio } from "ag-studio-angular";
import { AgStudioLicenseManager } from "ag-studio";


AgStudioLicenseManager.setLicenseKey("YOUR_LICENCE_KEY");

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [AgStudio],
  template:
  `<ag-studio
      [data]="data"
    />`,
})
export class AppComponent {
 /* Class implementation */
}
```
