Skip to content

Support Google Account OAuth and reuse of CLI authentication file #20

@synote

Description

@synote

Currently the antigravity-sdk-python only supports API Key authentication. This limitation presents two main problems:

  • Google One & Advanced Subscribers: Many individual developers have consumer premium subscriptions, they cannot use their personal Google accounts to authenticate within the SDK and are instead forced to set up developer API keys.
  • Authentication Fragmentation: if a developer has already logged in and authenticated antigravity-cli, they still have to manually create and export an API key to use the SDK.

Proposal

I recommend supporting Google Account OAuth Authentication natively in the Python SDK. The solution should ideally provide:

  • Direct Integration with CLI Credentials: The SDK connection strategies should automatically check for existing credentials created by antigravity-cli and use the auth json to proceed authorize request.
  • Authentication Methods on Initialization: Provide a clear authentication flow within the SDK to trigger browser-based Google OAuth and return redirect url

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions