GitHub

In this section, we will guide you through the process of setting up a GitHub registry for your Lepton workspace with access token.

Create Access Token

First, you need to create an access token with the appropriate scopes. Navigate to your GitHub tokens page, click on the Generate new token button.

access token 0.7x

As you can see, there are several fields to fill out:

  • Note: A note for you to identify the token usage.
  • Expiration: Recommended to set as No expiration.
  • Scopes: In this case, we only need the read:packages scope.

Click on the Generate token button to create the access token.

You can read more in the official documentation.

Create New Registry Auth on Lepton

Now you've got the personal access token on GitHub, you can then create a new registry auth on Lepton.

Navigate to the registry settings page, click on New registry auth, and select GitHub as the source.

new registry auth 0.8x

You need to fill in the following fields:

  • GitHub Username: Your GitHub username.
  • Access Token: The personal access token you just created.

After filling in the form, click on Submit, and you will see the new registry auth created successfully.

For more details about how to and use the registry auth, you can refer to this page.

Lepton AI

© 2025