feat(auth,oauth): add welcome screen, auth command, and OAuth provider flows#2976
Closed
bloodf wants to merge 1 commit intoultraworkers:mainfrom
Closed
feat(auth,oauth): add welcome screen, auth command, and OAuth provider flows#2976bloodf wants to merge 1 commit intoultraworkers:mainfrom
bloodf wants to merge 1 commit intoultraworkers:mainfrom
Conversation
This adds interactive provider authentication to claw, including browser-based OAuth for providers that support it. **Welcome screen ( or first-run):** - Interactive provider picker with built-in and template providers - API key entry with optional save to ~/.claw/settings.json **OAuth support:** - OpenAI: PKCE flow via auth.openai.com (ChatGPT/Codex accounts) - Moonshot / Kimi: Device Authorization Flow (RFC 8628) - Other providers: API key only (Anthropic, xAI, Z.AI, MiniMax) **New infrastructure:** - Per-provider OAuth token storage in ~/.claw/credentials.json - Local HTTP callback server for PKCE redirect handling - Browser launcher (open/xdg-open/start) - Device Authorization Flow polling **API client integration:** - OpenAiCompatClient falls back to saved OAuth tokens when env var unset - Bearer token authentication for OAuth-providers
Author
|
Superseded by #2977 which combines provider profiles, auth, and OAuth into a single PR. |
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.
This PR adds interactive provider authentication to claw, including browser-based OAuth for providers that support it.
What's new
Welcome screen
claw author get prompted on first-run when no API key is detectedOAuth support
New infrastructure
API client integration
Testing