How to Generate Your GitHub Personal Access Token (classic)
November 11, 2025 · View on GitHub
中文: 如何获取 PAT
- Open https://github.com/settings/tokens/new.
- Configure the form as shown below:
Notecan be any name you like.- Set
Expirationto No expiration so the token never expires unexpectedly. - Select the repo and user scopes.

- Click Generate token.

- Copy the generated token into the PAT input field on the login screen and click Log in.

Note: PAT stands for Personal Access Token. Store it securely and never share it with anyone.