December 2, 2026

Omarchy’s Setup > Git will sign you in to GitHub with a prefilled token page

0

No more answering gh’s questions about hosts and protocols: Omarchy will open GitHub’s token page with everything filled in, and you just paste the result back.

GitHub pull request card for omacom/omarchy #20768 by dhh, Sign in to GitHub from Setup > Git with a prefilled token page

Image: omacom/omarchy pull request #20768 (GitHub)

Signing in to GitHub from Omarchy is getting a lot quicker. DHH merged a pull request on November 29, 2026 that reworks the GitHub sign-in step of Setup > Git, and it’s coming in the next version.

Until now, that step ran a plain gh auth login. According to the PR, that meant answering questions about the host, the protocol and the sign-in method before even getting to a device code.

The new flow skips all of that. After you say yes to “Sign in to GitHub?”, Omarchy installs the GitHub CLI and opens GitHub’s new-token page already filled in. The token’s name is your computer’s hostname, and the repo, workflow, write:packages and read:org scopes are already checked. The terminal then asks you to generate the token in the browser and paste it at a Token> prompt.

The pasted token goes to gh auth login --with-token using the https protocol, followed by gh auth setup-git so git itself uses it. An empty paste or Esc skips signing in altogether. The token page URL is printed in the terminal only when there’s no graphical session or the browser fails to open, as over SSH.

The page link also asks GitHub to default the token’s expiration to none, via a default_expires_at=none parameter. The PR is upfront that this part isn’t confirmed: the parameter comes from a community write-up, not GitHub’s documentation, so it’s not certain the Expiration dropdown actually lands on “No expiration”. It’s worth a look before you click generate, since GitHub’s own docs “highly recommend adding an expiration” to personal access tokens and note that a classic token “can access every repository that you can access.”

According to the PR’s verification notes, it was run for real on a signed-out machine: the page opened, the pasted token signed gh in, and a git push over https worked afterwards. The notes also say that a browser that isn’t logged in to GitHub keeps the prefilled name and scopes through the login redirect. The SSH fallback was only tested with stubs, not for real.

The change also adds two English strings and updates the manual’s GitHub CLI section, which now explains that Setup > Git opens the token page “so you only generate the token and paste it back.”

Source: https://github.com/omacom/omarchy/pull/20768

Leave a Reply

Your email address will not be published. Required fields are marked *