Repository navigation
Sign in to terminal-only provider accounts from the bighelp app - #80
Merged
Merged
Conversation
Some accounts only sign in from a terminal on the host: GitHub's Copilot CLI, Claude Code, and the GitHub login `hermes model` runs for Copilot. The new native-provider-sign-in-v1 routes run the provider's own tool in a private terminal and pass the phone only its sign-in link, the one-time code, and whether it worked; a code the provider's page shows goes back into the tool. - Recipes (one table in provider_sign_in.py) for copilot-acp, copilot, claude-code, claude-subscription-directsdk-experimental and anthropic. Qwen OAuth is listed as retired (Qwen ended it in April 2026), pointing to the Qwen Cloud key. - The provider's own client always does the sign-in; Hermes' own Claude login stays in the terminal. Commands are fixed per provider, no shell. - Links only on the provider's own https domains. Terminal output never leaves memory or reaches logs. `claude setup-token`'s token is saved to the profile's env with Hermes' credential helper and dropped. - A browser the tool tries to open on the host does nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…as a key Hermes files GitHub Copilot (`copilot`) under API keys because it stores a token, so it never appears in Hermes' account list. The sign-in list now includes every recipe whose provider this Hermes has (from its provider catalog), reports Copilot as signed in from Hermes' own read-only status, and still skips recipes for provider plugins the host doesn't have. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What hosts and the app see
Accounts Hermes only signs in to from a terminal can now sign in from the bighelp app's Provider Keys screen. The plugin runs the provider's own sign-in tool on the host in a private terminal; the phone shows its link and one-time code, and sends back a code the provider's page shows.
copilot-acpcopilot login --device-codecopilot(main GitHub Copilot)hermes modelruns), saved asCOPILOT_GITHUB_TOKEN. Hermes files Copilot under API keys, so the list includes it from Hermes' provider catalog and reports its status from Hermes' ownget_auth_statusclaude-codeclaude auth login --claudeaiclaude-subscription-directsdk-experimentalanthropicclaude setup-token, saved asCLAUDE_CODE_OAUTH_TOKEN(the route Hermes documents)qwen-oauthNew capability
native-provider-sign-in-v1; routesPOST /native/provider-sign-in/{list,start,status,submit,cancel}. Contract indocs/PROVIDER_SIGN_IN.md. New providers are oneRecipeinloopdy_plugin/provider_sign_in.py; the app needs no update for them. No newcapabilities:inplugin.yaml, and no version bump.Trust and privacy
hermes auth add anthropic) stays terminal-only on purpose and is never run.httpslink on the provider's own domains, the one-time code, and the outcome reach the phone. Terminal output stays in memory for one sign-in and is never logged. A printed token (setup-token) goes straight to the profile's env via Hermes' credential helper.PATH,BROWSER).Tested
tests/test_provider_sign_in.py(25 tests) with fake CLIs that print what the real ones print, plus the native API and startup-logging suites, on Hermes 0.21.2 (1c671be). Added to the runtime-compatibility workflow.test_plugin_update_installation: same two failures asmain(test_loopdy_card_schemawithoutjsonschema, atest_native_device_toolsmiddleware test), 1,226 tests vs 1,203.main); Claude Code 2.1.286auth loginandsetup-tokenshow the claude.com link and report a bad code as not accepted.plugin_guard.scan_pluginon a clean export:safe, no high or critical findings.🤖 Generated with Claude Code