Skip to content

Sign in to terminal-only provider accounts from the bighelp app - #80

Merged
promptclickrun merged 2 commits into
mainfrom
feat/provider-sign-in
Sep 30, 2026
Merged

promptclickrun merged 2 commits into
mainfrom
feat/provider-sign-in

Conversation

@promptclickrun

@promptclickrun promptclickrun commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

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.

Hermes account Tool that signs in
copilot-acp GitHub Copilot CLI: copilot login --device-code
copilot (main GitHub Copilot) Hermes' own GitHub login (the one hermes model runs), saved as COPILOT_GITHUB_TOKEN. Hermes files Copilot under API keys, so the list includes it from Hermes' provider catalog and reports its status from Hermes' own get_auth_status
claude-code Claude Code: claude auth login --claudeai
claude-subscription-directsdk-experimental Claude Code, honoring the DirectSDK plugin's command and config-dir settings
anthropic Claude Code: claude setup-token, saved as CLAUDE_CODE_OAUTH_TOKEN (the route Hermes documents)
qwen-oauth None: listed as retired (Qwen ended Qwen OAuth in April 2026), pointing to the Qwen Cloud key

New capability native-provider-sign-in-v1; routes POST /native/provider-sign-in/{list,start,status,submit,cancel}. Contract in docs/PROVIDER_SIGN_IN.md. New providers are one Recipe in loopdy_plugin/provider_sign_in.py; the app needs no update for them. No new capabilities: in plugin.yaml, and no version bump.

Trust and privacy

  • The provider's own client does every sign-in. The plugin never contacts a sign-in service or builds an OAuth request, and never reads another tool's credential store. Hermes' own Claude login (hermes auth add anthropic) stays terminal-only on purpose and is never run.
  • Commands are fixed per provider; the phone only names a provider. No shell.
  • Only an https link 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.
  • A browser the tool tries to open on the host does nothing (shims on PATH, BROWSER).
  • Pasted codes: one line of visible ASCII, 2,048 characters max. Sessions end after 15 minutes; at most four run at once.
  • POSIX only (needs a pty); Windows hosts skip the capability.

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.
  • Full suite minus test_plugin_update_installation: same two failures as main (test_loopdy_card_schema without jsonschema, a test_native_device_tools middleware test), 1,226 tests vs 1,203.
  • Against the real tools in a throwaway home (nothing completed, no real logins touched): Copilot CLI 1.0.89 and Hermes' GitHub login show the link and code (Copilot also checked against the newest Hermes main); Claude Code 2.1.286 auth login and setup-token show the claude.com link and report a bad code as not accepted.
  • plugin_guard.scan_plugin on a clean export: safe, no high or critical findings.

🤖 Generated with Claude Code

promptclickrun and others added 2 commits September 30, 2026 16:04
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>
@promptclickrun
promptclickrun merged commit 817d3b6 into main Sep 30, 2026
2 checks passed
@promptclickrun
promptclickrun deleted the feat/provider-sign-in branch September 30, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant