Files
jakevin 82dda11a2a feat(auth): add site login and whoami commands (#1852)
* feat(auth): add site login and whoami commands

* fix(auth): satisfy docs and column audits

* fix(auth): keep login browser sessions open

* chore(auth): simplify whoami probe handler
2026-06-05 21:28:13 +08:00

1.0 KiB

GitHub

Mode: 🔐 Browser · Domain: github.com

Commands

Command Description
opencli github whoami Show the currently logged-in GitHub account
opencli github login Open GitHub login and wait until the browser session is authenticated

Usage Examples

# Check current GitHub identity
opencli github whoami

# Open the login page if the current browser session is not authenticated
opencli github login

# JSON output for agents/scripts
opencli github whoami -f json

Prerequisites

Notes

  • whoami verifies the current browser cookie session and does not open the login page.
  • login opens https://github.com/login in a foreground browser window and waits until OpenCLI can verify the account.
  • OpenCLI never fills credentials, CAPTCHA, 2FA, or passkeys. The user completes authentication in the browser; OpenCLI only verifies the resulting session.