Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

[Bug]: Port keeps changing for oauth login with Antigravity #18

@ranjanjayapal

Description

@ranjanjayapal

Description

There is an issue with OAuth where the port keeps changing (not always 36742). I am trying to connect via ssh but since the port is always changing I cannot setup my localhost to show up at all.

Reproduction Steps

Steps to reproduce the behavior:

  1. Go to opencode auth login
  2. Click on Google provider
  3. Click on the provided link
  4. See error when it trys to redirect as the port is always different.

Expected Behavior

Should be able to authenticate

Actual Behavior

Localhost shows an error since I am using via ssh and the port is not exposed as the port keeps changing

Environment

  • OS: Linux
  • Version: 22.04

Opencode Information

  • Opencode Type: cli
  • Opencode Version: 1.0.203
  • Opencode Settings:
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "oh-my-opencode",
    "opencode-google-antigravity-auth"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions