Skip to content

Error "file To authorize" when installing opencode-antigravity-auth (Gemini) #433

@Sayram-404

Description

@Sayram-404

Pre-submission checklist

Model used

antigravity-gemini-3-pro

Exact error message

(base) PS C:\Users\YANGZIHAN> opencode auth login

T  Add credential
|
o  Select provider
|  Google
|
o  Login method
|  OAuth with Google (Antigravity)

=== Antigravity OAuth (Account 1) ===
Project ID (leave blank to use your default project):

OAuth URL:
https://accounts.google.com/o/oauth2/v2/auth?client_id=1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A51121%2Foauth-callback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcclog+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fexperimentsandconfigs&code_challenge=m_ElrVVQGpOVE0HTLXpXOVDjxNMPGjl47Ki1dJmEclA&code_challenge_method=S256&state=eyJ2ZXJpZmllciI6ImpvVXVPRVNYRjg1Q0dMMjcxRGVRSTdLMGlzZzJCM3N6NUpfUFlGOXdaenQ2NmtSTkEzYUpVZGhKRms3ZXpmWG1WcU10dnNlRDVrM1pfWlZCUklaRkd3IiwicHJvamVjdElkIjoiIn0&access_type=offline&prompt=consent


⏳ Automatic callback not received after 30 seconds.
You can paste the redirect URL manually.

OAuth URL (in case you need it again):
https://accounts.google.com/o/oauth2/v2/auth?client_id=1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A51121%2Foauth-callback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcclog+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fexperimentsandconfigs&code_challenge=m_ElrVVQGpOVE0HTLXpXOVDjxNMPGjl47Ki1dJmEclA&code_challenge_method=S256&state=eyJ2ZXJpZmllciI6ImpvVXVPRVNYRjg1Q0dMMjcxRGVRSTdLMGlzZzJCM3N6NUpfUFlGOXdaenQ2NmtSTkEzYUpVZGhKRms3ZXpmWG1WcU10dnNlRDVrM1pfWlZCUklaRkd3IiwicHJvamVjdElkIjoiIn0&access_type=offline&prompt=consent

1. Open the URL above in your browser and complete Google sign-in.
2. After approving, copy the full redirected localhost URL from the address bar.
3. Paste it back here.

Paste the redirect URL (or just the code) here: http://localhost:51121/oauth-callback?state=eyJ2ZXJpZmllciI6ImpvVXVPRVNYRjg1Q0dMMjcxRGVRSTdLMGlzZzJCM3N6NUpfUFlGOXdaenQ2NmtSTkEzYUpVZGhKRms3ZXpmWG1WcU10dnNlRDVrM1pfWlZCUklaRkd3IiwicHJvamVjdElkIjoiIn0&code=4/0ASc3gC2-ULvh1J8-zIFtyUbgVUVpPE6OoHDCtmiA6cSE_YaOmnePIu7AO5YLaH1UUndLZA&scope=email%20profile%20https://www.googleapis.com/auth/cloud-platform%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/cclog%20https://www.googleapis.com/auth/experimentsandconfigs%20openid&authuser=0&prompt=consent
|
•  Authentication failed: Unable to connect. Is the computer able to access the url?
|
x  Failed to authorize
|
—  Done

Bug description

I’m having trouble installing opencode-antigravity-auth

Image

(Gemini).
When I try to run it, it shows an error:
"file to authorize"
I don’t know how to fix this authorization issue.
Could you please help me?

Steps to reproduce

1. In PowerShell, run:
 openCode auth login

2. Select provider: Google

3. For Login method, choose: OAuth with Google (Antigravity)

4.Log into my Google account in the popped-up browser, then copy the URL back to the terminal and press Enter.

Actual result: It shows failed to authorize.

Did this ever work?

First time setup (never worked)

Number of Google accounts configured

1

Reproducibility

Always (100%)

Plugin version

Antigravity + Gemini CLI OAuth Plugin for Opencode

OpenCode version

1.1.56

Operating System

Windows 11

Node.js version

v25.5.0

Environment type

Standard (native terminal)

MCP servers installed

No response

Debug logs (REQUIRED)

Debug Log / Error Message:
Authentication failed: Unable to connect. Is the computer able to access the url?
|
x  Failed to authorize
|
—  Done
Steps to reproduce:
 
1. In PowerShell, run: opencode auth login
2. Select provider: Google
​
3. For Logging method, choose: OAuth with Google (Antigravity)
​
4. Log into my Google account in the popped-up browser, copy the URL back to the terminal and press Enter.
 
Actual result: It shows failed to authorize and cannot complete the login.
 
Expected result: Successfully log in with Google account via OAuth (Antigravity).

Configuration (optional)

Compliance

  • I'm using this plugin for personal development only
  • This issue is not related to commercial use or TOS violations

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/authOAuth, login, tokens, credentialsquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions