> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/hybrid-hivel-agent/3.-prerequisites-and-set-up/step-2-create-your-hivel-api-token.md).

# Step 2 - Create your Hivel API token

###

1. Log in to the Hivel dashboard
2. Go to Settings → Integrations → scroll down to the “Hivel Agent” section.

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FFqLFqySG6srOSP7uEAlm%2Fimage.png?alt=media&amp;token=e5b84995-fe7b-4e42-8845-9133a633649b" alt=""><figcaption></figcaption></figure>

3. Click Generate Key

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FvHMHIB4QqcSvgTUuowUT%2Fimage.png?alt=media&amp;token=f37aa3d7-f7de-4489-aafc-e6bec45b5b17" alt=""><figcaption></figcaption></figure>

The agent needs a HIVEL\_API\_TOKEN to authenticate with the Hivel platform and upload data.

<img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FgQpxV1C6DZPzfUjFPWUI%2Funknown.png?alt=media&amp;token=c1622352-52f8-4a39-b9c7-ee42925f9e25" alt="" height="499" width="591">

4. Copy the token and set it in your .env file:

```
HIVEL_API_TOKEN=HIVEL_xxxx
```

{% columns %}
{% column %} <a href="/hybrid-hivel-agent/3.-prerequisites-and-set-up/step-1-install-the-binary.md" class="button primary" data-icon="backward">Step 1</a>
{% endcolumn %}

{% column %}

{% endcolumn %}

{% column %} <a href="/hybrid-hivel-agent/3.-prerequisites-and-set-up/step-3-create-credentials-file.md" class="button primary" data-icon="forward">Step 3</a>
{% endcolumn %}
{% endcolumns %}
