You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add OAuth flow to automatically register SSH keys with GitHub #20
Issue #19 proposed auto-registering SSH keys with GitHub. The current implementation in the feature branch generates SSH keys and configures SSH locally, but requires users to manually add the key to their GitHub account.
Why manual step is required
To add an SSH key to a user's GitHub account programmatically, we need:
OAuth authorization from the user (to get a token with admin:public_key scope)
Or a Personal Access Token from the user
The backend currently only has the org admin PAT (GITHUB_ADMIN_PAT), which can manage organization resources but cannot add SSH keys to individual user accounts.
Proposed Solution
Add GitHub OAuth flow to the CLI:
nemar auth connect-github - Opens browser for OAuth authorization
User grants permission for SSH key management
Backend stores the user's OAuth token securely
Update setup-ssh to use the OAuth token:
If user has connected GitHub via OAuth, auto-register the SSH key
If not, show manual instructions (current behavior)
Benefits
Fully automated SSH setup after OAuth is connected
No manual copy-paste of SSH keys required
Better user experience for users who authorize the OAuth flow
Closing as obsolete. The primary auth and clone path is HTTPS through gh auth login (src/commands/dataset.ts builds https clone URLs), and setup-ssh's own help text now describes SSH as the fallback for users who cannot use the GitHub CLI. An OAuth flow for a secondary path is no longer worth building.
Activity
feat: add setup-ssh command for streamlined GitHub SSH configuration
feat: streamline setup with platform-specific guidance and SSH helper (…
neuromechanist commentedon Sep 3, 2026
Closing as obsolete. The primary auth and clone path is HTTPS through gh auth login (src/commands/dataset.ts builds https clone URLs), and setup-ssh's own help text now describes SSH as the fallback for users who cannot use the GitHub CLI. An OAuth flow for a secondary path is no longer worth building.