> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.12/install-cortex-xsoar/post-installation/add-the-cortex-xsoar-license.md).

# Add the Cortex XSOAR license

In Cortex XSOAR 8.12 On-prem, download and add a license from Cortex Gateway.

Cortex XSOAR requires a yearly license per user. Multi-year licenses are available.

After purchasing a license, the activation card for the license is visible in Cortex Gateway. When you install Cortex XSOAR from Cortex Gateway download both the image file and the license. After installing Cortex XSOAR, you must upload the license to Cortex XSOAR. Until you upload a valid license, you will be unable to use Cortex XSOAR.

On the **License** page (**Settings & Info** → **Cortex XSOAR License**) you can see the following:

* License type
* Expiration date
* Number of licensed users
* Number of active users
* (MSSP only) Paired Child Tenants

{% hint style="info" %}

### Note

(MSSP only) The License page is only available on the Main tenant, not on the child tenant.
{% endhint %}

1. Locate the license file you downloaded from the Cortex Gateway.

   If you selected Dev/Prod, you should have two license files, one for each environment. Each should be uploaded separately to the corresponding environment.
2. Upload the license to Cortex XSOAR.
   1. Go to **Settings & Info** → **Cortex XSOAR License**.
   2. In the **Upload License** section, either drag and drop your license file or browse your files to select the license file. The license file is in JSON format.

{% hint style="info" %}

### Note

If you upload a new license while your current license is still valid, the new license will override your existing license for the same product. Other products' licenses will not be affected.

You can also upload your license to the textual UI in case of issues. For more information, see [Upload your license to the textual UI](/cortex-xsoar-8-on-prem/8.12/install-cortex-xsoar/troubleshoot-your-installation/upload-your-license-to-the-textual-ui.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.12/install-cortex-xsoar/post-installation/add-the-cortex-xsoar-license.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
