---
title: "Installing Your Licence Key"
enterprise: true
framework: react
version: "36.1.0"
---

# Installing Your Licence Key

Validate your licence key and configure your application. See sample code and example projects to learn how to install your AG Grid Enterprise products.

## Request a Trial Licence

> **Note**
>
> You can test AG Grid Enterprise locally without a licence. To test in production, access support and remove the watermark & console warnings, [request a trial licence](https://www.ag-grid.com/react-data-grid/community-vs-enterprise/#request-a-30-day-enterprise-bundle-trial-licence).

## Validate Your Licence

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

### Configure Your Application

The snippets below are for AG Grid Enterprise without Integrated Charts. [Use the tool on this page](https://www.ag-grid.com/react-data-grid/license-install/) to include Integrated Charts.

### Add Your Dependencies

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

```json
dependencies: {
    "ag-grid-react": "36.1.0",
    "ag-grid-enterprise": "36.1.0"
}
```

Or install using npm:

```bash
npm install ag-grid-react ag-grid-enterprise
```

### Set Up Your Application

An example of how to set up your AG Grid Enterprise License Key:

```jsx
import { AllEnterpriseModule } from "ag-grid-enterprise";
import { AgGridProvider, AgGridReact } from "ag-grid-react";

const modules = [AllEnterpriseModule];

function App() {
    return (
        <AgGridProvider modules={modules} licenseKey="YOUR_LICENSE_KEY">
            <AgGridReact /* ... props */ />
        </AgGridProvider>
    );
}

// For versions <35.1 use the LicenseManager and ModuleRegistry directly

// import { LicenseManager, ModuleRegistry } from "ag-grid-enterprise";
// ModuleRegistry.registerModules([AllEnterpriseModule]);
// LicenseManager.setLicenseKey("YOUR_LICENSE_KEY");
```

> **Note**
>
> To minimise bundle size, only register the modules you want to use. See the [Selecting Modules](https://www.ag-grid.com/react-data-grid/modules/#selecting-modules) docs for more information.

> **Note**
>
> If you are using an AG Grid version before 33.0.0, please see the documentation for your [version](https://www.ag-grid.com/documentation-archive/) for help on installing your license key.

## Seed Repositories

Here are some seed code repositories to get you started:

| GitHub Repo | Framework | Development Environment |
| --- | --- | --- |
| [Create React App](https://github.com/ag-grid/ag-grid-seed/tree/main/enterprise/packages/create-react-app) | react | Create React App |
| [Create Next App](https://github.com/ag-grid/ag-grid-seed/tree/main/enterprise/packages/create-next-app) | react | Next.js |
| [Vite - React](https://github.com/ag-grid/ag-grid-seed/tree/main/enterprise/packages/vite-react) | react | Vite |

## Next.js

If you're using Next.js, we have a [blog](https://www.ag-grid.com/blog/using-ag-grid-with-next-js-to-build-a-react-table/#how-to-register-the-ag-grid-enterprise-license-key) that details how to get you up and running, as well as how to set the license key.
