Providers
Patchmill uses gh for GitHub and tea for Forgejo or Gitea. Host
authentication and Pi model-provider authentication are separate. Configure the
host CLI before initialization.
GitHub
Section titled “GitHub”Make sure that gh auth status reports a usable login. In the repository, run
patchmill init --provider github-gh. GitHub uses the active gh
authentication context. Init can seed host.login with the detected username
for comment trust. That value does not select a GitHub account.
A GitHub App installation token in GH_TOKEN also works. It does not report a
login, so gh auth status fails with it. Patchmill does not use
gh auth status. With an App token, set the trusted comment authors in
host.trustedAuthors. See
Host and trust.
Forgejo and Gitea
Section titled “Forgejo and Gitea”Use tea logins list to inspect profiles. Run
patchmill init --provider forgejo-tea to use Tea’s default profile. An empty
host.login means the default profile. To select another profile, use
patchmill init --provider forgejo-tea --login PROFILE with its explicit alias.
The detected username is not a profile alias. There is no Patchmill login
environment override.
For draft pull requests, the planning skill uses a WIP: title with Tea. The
implementation skill removes that prefix when work is ready. Patchmill also
recognizes native draft state and Draft: title prefixes.
Pi authentication
Section titled “Pi authentication”patchmill auth asks you to choose a subscription or API key, then a provider
and model. Pi’s SDK saves the credentials in the configured agent directory.
Patchmill saves the default model in Pi’s settings, verifies the provider with a
real model call, and returns to the shell. It does not open Pi chat.
See Pi and subagents for local runtime settings.
After setup, run patchmill labels setup and patchmill doctor. Doctor
includes a real model smoke prompt and writes local logs. It does not repair
host or repository configuration.