# Licensing

Some features are only accessible with a Premium license, including
[AI Governance](/beta-docs/ai-coder/ai-governance/). See our
[pricing page](https://coder.com/pricing) for more details. To try paid
features, you can [request a trial](https://coder.com/trial) or
[contact sales](https://coder.com/contact).

![Licenses screen shows license information and seat consumption](/beta-docs/images/admin/licenses/licenses-screen.png)

## Offline license validation [#offline-license-validation]

Coder license keys are signed JWTs that are validated locally using cryptographic
signatures. No outbound connection to Coder's servers is required for license
validation. This means licenses work in
[air-gapped and offline deployments](/beta-docs/install/airgap/) without any
additional configuration.

## Adding your license key [#adding-your-license-key]

There are two ways to add a license to a Coder deployment:

<Tabs items="[&#x22;Coder UI&#x22;, &#x22;Coder CLI&#x22;]" groupId="coder-docs-tab:coder-cli-coder-ui" persist="true">
  <Tab value="Coder UI">
    1. With an `Owner` account, go to **Admin settings** > **Deployment**.

    2. Select **Licenses** from the sidebar, then **Add a license**:

       ![Add a license from the licenses screen](/beta-docs/images/admin/licenses/licenses-nolicense.png)

    3. On the **Add a license** screen, drag your `.jwt` license file into the
       **Upload Your License** section, or paste your license in the
       **Paste Your License** text box, then select **Upload License**:

       ![Add a license screen](/beta-docs/images/admin/licenses/add-license-ui.png)
  </Tab>

  <Tab value="Coder CLI">
    1. Ensure you have the [Coder CLI](/beta-docs/install/cli/) installed.

    2. Save your license key to disk and make note of the path.

    3. Open a terminal.

    4. Log in to your Coder deployment:

       ```sh
       coder login <access url>
       ```

    5. Run `coder licenses add`:

       * For a `.jwt` license file:

         ```sh
         coder licenses add -f <path to your license key>
         ```

       * For a text string:

         ```sh
         coder licenses add -l 1f5...765
         ```
  </Tab>
</Tabs>

## FAQ [#faq]

### Find your deployment ID [#find-your-deployment-id]

You'll need your deployment ID to request a trial or license key.

From your Coder dashboard, select your user avatar, then select the **Copy to
clipboard** icon at the bottom:

![Copy the deployment ID from the bottom of the user avatar dropdown](/beta-docs/images/admin/deployment-id-copy-clipboard.png)

### How we calculate license seat consumption [#how-we-calculate-license-seat-consumption]

Licenses are consumed based on the status of user accounts.
Only users who have been active in the last 90 days consume license seats.

Consult the [user status documentation](/beta-docs/admin/users/#user-status) for more information about active, dormant, and suspended user statuses.
