Updated on 2025-07-24 GMT+08:00

Obtaining an Access Token from GitLab

Constraints

You have a GitLab account.

Configuring an Access Token

  1. Log in to GitLab with an account, click the profile picture in the upper left corner, and click Preferences. On the page that is displayed, choose User Settings > Access Tokens.
  2. As shown in the following figure, customize Token name, select Expiration date, select all permissions, and click Create personal access t+oken to complete the configuration of the GitLab personal access token.

    Figure 1 Page for creating a personal access token in a GitLab repository

  3. After the preceding steps are performed, copy the personal access token s shown in the following figure.

    Figure 2 Page for copying personal access token