GitHub
githubAuthenticate with GitHub using OAuth device code flow, authorization code, or personal access tokens. Access both REST and GraphQL APIs for repositories, organizations, and gists.
🔐 Authentication Methods
device_code
device: https://github.com/login/device/code
token: https://github.com/login/oauth/access_token
Scope: repo read:org gist
authorization_code
authorize: https://github.com/login/oauth/authorize
token: https://github.com/login/oauth/access_token
Scope: repo read:org gist
personal_access_token
Register at: https://github.com/settings/tokens/new
- Go to Settings > Developer settings > Personal access tokens
- Generate a new token with required scopes
- Copy the token
👤 Identity
Account: e.g., personal, work
🌐 APIs
rest
Base URL: https://api.github.com
Auth Header: Authorization: Bearer {token}
Spec Type: openapi
graphql
Base URL: https://api.github.com/graphql
Auth Header: Authorization: Bearer {token}
Spec Type: graphql
📦 Public Clients
These clients are bundled with the formula. Schlussel auto-selects the first available public client and its supported method. Just run the command below.
gh-cli
Client ID: 178c6fc778ccc68e1d6a
Source: https://github.com/cli/cli
Methods: device_code authorization_code
$ schlussel run github🎮 API Playground
Authenticate with GitHub and try the API right here. Your token stays in your browser and is not stored.
Cmd/Ctrl + Enter to run
Output will appear here...