# Set up your licence key

Thank you for purchasing an APM license key! You now have access to all APM features. When you run an APM binary, the binary needs your licence key to authenticate with our licence servers. This allows you to use all APM features. Please visit <https://accounts.aviumtechnologies.com/account> to view your licence key.&#x20;

Once you view your licence key you can either:

* create an apm.key file and place it in the current working folder of the APM binary
* creae an apm.key file somewhere in your system and an environmental variable pointing to your licence key

We suggest the second option as it is much more convenient. The APM binary will be able to authenticate with our servers even if the licence key file is not in the current working folder of the binary.

The contents of the apm.key file should be just the licence key. You can use any text editor to create this file.

### Setting up an environmental variable pointing to your licence key

To setup an environmental variable in Windows, open the system properties and click the "Enviroment Variables..." button. In the "User variables" list, add a new variable named APM\_KEY. The value of the variable should be the full path to your **apm.key** file.

To setup an environmental variable in Linux or macOS, add the following line to the end of your **.bashrc** file. The **.bashrc** file is located in the home directory.

```
export APM_KEY=~/apm.key
```

In the above example the **apm.key** file is located in the home directory.


---

# 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.aviumtechnologies.com/quick-start/set-up-your-licence-key.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.
