Back to gitranc

How to Create a GitHub Token

A fine-grained personal access token increases your API rate limit from 60 to 5,000 requests per hour.

Quick link to step 5: Open the fine-grained token creation page directly — github.com/settings/personal-access-tokens/new

1

Go to GitHub Settings

Log in to your GitHub account and click your profile picture in the top-right corner, then select Settings.

2

Open Developer Settings

Scroll down to the very bottom of the left sidebar and click Developer settings.

3

Select Fine-grained Tokens

In the left sidebar, expand Personal access tokens and click Fine-grained tokens.

4

Generate New Token

Click Generate new token. You may be asked to confirm your password.

5

Configure the Token

Fill in the following fields:

Token name Give it a descriptive name like star-history
Expiration Set an expiration date — e.g. 90 days is a good default. You can always regenerate it later.
Repository access Select Public Repositories (read-only) — this is the only access needed
6

Copy Your Token

Click Generate token at the bottom of the page. Your token will be displayed — it starts with github_pat_. Copy it immediately — you won't be able to see it again.

7

Paste It in gitranc

Go back to GitRanc, click Add GitHub token, paste your token, and hit Save.

Built by PurplePanda 2026