How can i generate GitLab personal access token ?

Updated by Kelly watts

You can create as many personal access tokens as you like.

  1. Login to Gitlab account.
  2. On the left sidebar, select your avatar.
  3. Select Edit profile.
  4. On the left sidebar, select Personal access tokens.
  5. Select Add new token.
  6. In Token name, enter a name for the token.
  7. Optional. In Token description, enter a description for the token.
  8. In Expiration date, enter an expiration date for the token.
    • The token expires on that date at midnight UTC. A token with the expiration date of 2024-01-01 expires at 00:00:00 UTC on 2024-01-01.
    • If you do not enter an expiry date, the expiry date is automatically set to 365 days later than the current date.
    • By default, this date can be a maximum of 365 days later than the current date. In GitLab 17.6 or later, you can extend this limit to 400 days.
  9. Select the desired scopes.
  10. Select Create personal access token.


How did we do?