> 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.8/onboard-cortex-xsoar/cortex-xsoar-installation/post-installation/add-the-cortex-xsoar-license.md).

# Add the Cortex XSOAR license

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.

In 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

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.
{% 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
