This repository was archived by the owner on Apr 15, 2026. It is now read-only.
refactor: cross-platform keyring and improved auth UX#35
Merged
Conversation
- Replace macOS-only keychain with cross-platform keyring (99designs/keyring)
- Supports macOS Keychain, Windows Credential Manager, Secret Service,
Linux kernel keyring (keyctl), and encrypted file fallback
- Add HEADJACK_KEYRING_BACKEND and HEADJACK_KEYRING_PASSWORD env vars
- Add dual authentication modes for all agents
- Subscription: OAuth tokens from CLI tools (existing subscriptions)
- API Key: Direct API keys for pay-per-use billing
- Credentials stored as JSON with type field
- Improve auth command UX with charmbracelet/huh
- Interactive selection picker (arrow keys) instead of numbered menu
- Masked password input (shows dots) for tokens/keys
- Add --status flag to check configured auth per provider
- Update documentation for new auth system
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
headjack | e0f22b5 | Commit Preview URL Branch Preview URL |
Jan 03 2026, 04:07 AM |
jmgilman
added a commit
that referenced
this pull request
Jan 3, 2026
Current behavior: Authentication only supported macOS-only keychain storage with single auth mode per provider requiring numbered menu selection and visible token input New behavior: Cross-platform keyring supports macOS Keychain, Windows Credential Manager, Secret Service, Linux kernel keyring, and encrypted file fallback with dual authentication modes (subscription OAuth and API key) and improved interactive UX with arrow key selection and masked password input Closes: #35
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
99designs/keyringlibrary supporting macOS Keychain, Windows Credential Manager, Secret Service (GNOME/KDE), Linux kernel keyring, and encrypted file fallback--statusflag to check configured auth per provider (hjk auth claude --status)Test plan
just checkto verify all tests passhjk auth claude- verify interactive picker works with arrow keyshjk auth claude --status- verify status output🤖 Generated with Claude Code