> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lightdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Personal access tokens

> Create a personal access token to authenticate with the Lightdash CLI and API

You can create a personal access token (PAT) to authenticate in the [CLI](/get-started/quickstart/prepare-your-dbt-project) or with the API.

## Creating a personal access token

To create a personal access token, head to the project settings, then to `personal access tokens`, then click `generate token`.

<Frame>
  <img src="https://mintcdn.com/lightdash/5NMMM4n0puUIh3u9/images/personal-settings/create-personal-tokens/create-pat-6ec282a4422b1a7c55c6b60c95937cf8.jpg?fit=max&auto=format&n=5NMMM4n0puUIh3u9&q=85&s=1abe9c6c5e471ce3fe79ec5de2bbc99e" alt="The personal access tokens settings page with an empty token list and a generate token button" width="2694" height="1484" data-path="images/personal-settings/create-personal-tokens/create-pat-6ec282a4422b1a7c55c6b60c95937cf8.jpg" />
</Frame>
