Skip to content

GitHub Setup

pertmux needs a GitHub personal access token (classic) to read pull requests, check runs, and comments.

  1. Go to Settings > Developer settings > Personal access tokens > Tokens (classic)
  2. Click Generate new token (classic)
  3. Select the repo scope
  4. Click Generate token and copy the value

The repo scope is required because pertmux uses the Checks API to display CI/CD status, which requires full repo access even for read-only use.

For full details on managing tokens, see GitHub’s token documentation.

Add a [github] section to ~/.config/pertmux.toml:

[github]
token = "ghp_xxxxxxxxxxxxxxxxxxxx"

Or use an environment variable instead:

Terminal window
export PERTMUX_GITHUB_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxx"

The environment variable takes precedence over the config file value.

Add a [[project]] entry pointing to your local clone:

[github]
token = "ghp_xxxxxxxxxxxxxxxxxxxx"
[[project]]
name = "My Project"
source = "github"
project = "org/my-repo"
local_path = "/home/user/repos/my-repo"
username = "youruser"
KeyDescription
nameDisplay name shown in the dashboard
sourceMust be "github"
projectFull owner/repo path (e.g. rupert648/pertmux)
local_pathAbsolute path to your local clone (validated at startup)
usernameYour GitHub username (used to filter PRs to your own)

For GitHub Enterprise, set the host field to your instance hostname:

[github]
host = "github.mycompany.com"
token = "ghp_xxxxxxxxxxxxxxxxxxxx"

pertmux will use https://{host}/api/v3/ for all API requests.