feat(auth): Add OAuth login with xAI console integration#89
Open
Bladerunner-hue wants to merge 7 commits intosuperagent-ai:mainfrom
Open
feat(auth): Add OAuth login with xAI console integration#89Bladerunner-hue wants to merge 7 commits intosuperagent-ai:mainfrom
Bladerunner-hue wants to merge 7 commits intosuperagent-ai:mainfrom
Conversation
- Add grok auth login command for API key setup - Open xAI console for login and key creation - Support manual key entry with validation - Add management key support for auto-generating API keys - Include verbose guidance for free/paid plan setup - Team limits unlocked with paid plan API keys
- Integrate Puppeteer for browser automation - Auto-launch browser, wait for user login, generate API key - Extend settings for future OAuth tokens (access/refresh) - Add auto-trigger on first run when no API key found - Fallback to manual entry if automation fails - Prepare for xAI OAuth when available
- Remove Puppeteer placeholders for reliable manual flow - Keep management key auto-gen for paid plans - Comprehensive user guidance and validation - Auto-trigger on first run - Fallback from API to manual entry - Ready for xAI management API when available
Contributor
|
@Bladerunner-hue thank you for the PR, mind check the Type check and Security Scan? |
Author
|
✅ GitHub Workflows Simulation Complete!
Type Check (typecheck.yml): ✅ TypeScript compilation passes ✅ No high-level security vulnerabilities 🎉 All checks are passing! The OAuth authentication feature is ready for PR submission to superagent-ai/grok-cli. |
…on-reasoning) to default models list
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 does this PR do?
Describe your changes here.
Fixes #
Checklist
My goal long term is to enable Oauth login to compete with OpenAI Codex and Claude code, as such please do not hesitate to reach out