Skip to content

feat: Add web-based OAuth authentication flow #1

@hyunnnchoi

Description

@hyunnnchoi

Summary

Replace manual token extraction with native OAuth flows for each provider, improving onboarding UX significantly.

Current State

Users must manually extract tokens from CLI credential files or browser DevTools — functional but not user-friendly.

Proposed

Implement in-app OAuth using Android Custom Tabs:

  • Claude: OAuth PKCE flow (Client ID: 9d1c250a-e61b-44d9-88ed-5944d1962f5e)
  • OpenAI/Codex: OAuth flow (Client ID: app_EMoamEEZ73f0CkXaXp7hrann)
  • Gemini: Google OAuth with token refresh via oauth2.googleapis.com
  • GitHub Copilot: Device Flow (show user_code + verification URL)

References

  • Upstream CodexBar auth implementations: Sources/CodexBarCore/Providers/
  • Android Custom Tabs: androidx.browser:browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions