Connect
GitHub connects with a fine-grained personal access token:- Open New fine-grained token: Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token.
- Choose All repositories. A token limited to chosen repositories never reaches repositories you create later.
- Give it read-only access to Contents and Metadata.
- Copy the token. It starts with
github_pat_. - In Desktop, open Accounts, choose GitHub and paste the token.
hoist accounts add github --name NAME --token-stdin, and add --account <account> if the token reaches more than one account.
What you can do
- List the repositories the token reaches, with their visibility and last push.
- Link a repository and branch to a project as its source, from the project’s Settings tab.
- Let agents find the repository for a project with the
list_repositoriesandlink_repositoryMCP tools.
Bring in existing resources
GitHub has no running resources, sohoist import --list shows nothing from it. Bring in the project from the provider where it runs, then link its repository. See Bring in an existing project.
Related
Providers
What Hoista supports on each provider.
Connect hosting accounts
Connect, check and rotate accounts.
Bring in a project
Add what an account already runs.