# Can I use the same license key / Portainer instance across Dev, QA and Prod environments?

Yes. You can use the same license key in separate Dev, QA and Prod environments as long as the [total number of nodes](/faqs/licensing/what-is-a-node-for-licensing-purposes.md) does not exceed the number you have purchased.

For example, assume a 25 node license, and assume three separate Kubernetes clusters; one for Dev, one for QA, and one for Prod, each with 5 nodes. If the Portainer instance is deployed in one of these environments and then the other two environments are added to that Portainer instance, 15 licenses would be used. Each individual environment, Dev, QA, and Prod, would be manageable from the single Portainer UI.

Alternatively; if you wish to have Portainer manage all three environments from outside of the environments, perhaps so that one environment doesn’t “own” Portainer, you can simply run Portainer outside of all three environments and then add each environment to that Portainer instance. In this scenario, 16 licenses would be utilized; one for the Portainer instance and one for each node in each cluster being managed.


---

# Agent Instructions: 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:

```
GET https://docs.portainer.io/faqs/licensing/can-i-use-the-same-license-key-portainer-instance-across-dev-qa-and-prod-environments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
