Skip to content

Repeated Auth Prompts when using Opencode Web from an authenticated Opencode Server #19920

Closed

Description

@OpeOginni

Description

When making use of the Web on a broswer from an authenticated opencode server you are nromally prompted to put in a username and password. But when trying to use a terminal the prompt comes over and over again and never resoles making the whole web app experience not possible.

Note: This doesnt happen when the web is on a different url than the authed server, and it doesnt happen on the desktop app.

Plugins

None

OpenCode version

1.3.5

Steps to reproduce

  1. Run opencode serve with an authenticated server
  2. Try to make use of the web app on that URL, put in the right username and password when promted, and open a terminal.
  3. Notice it just continues to be asked and never resolves.

Screenshot and/or share link

Screen.Recording.2026-03-29.at.18.04.27.mov

Operating System

macOS

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    webRelates to opencode on web / desktop
    on Mar 29, 2026
  2. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is the same, please consider adding a +1 or additional context to those existing reports rather than opening a new one.

  3. changed the title [-]Repeated Aith Prompts when using Opencode Web from an authenticated Opencode Server[/-] [+]Repeated Auth Prompts when using Opencode Web from an authenticated Opencode Server[/+] on Mar 29, 2026
  4. onixau-go commented on Mar 29, 2026

    @onixau-go

    I have the same problem.
    It occurred after updating to opencode version 1.3.5 - 1.3.6
    Web - version 1.3.6

    A WSS request is made to the wrong URL
    wss://[email protected]/pty/pty_d3 ...

    opencode@ is substituted even though the username isn't specified at all, or a different one is specified via Environment OPENCODE_SERVER_USERNAME and OPENCODE_SERVER_PASSWORD
    Error NS_ERROR_WEBSOCKET_CONNECTION_REFUSED

  5. OpeOginni commented on Mar 29, 2026

    @OpeOginni
    ContributorAuthor

    @onixau-go Yeah, hopefully the PR fixes it, makes sure the entry you put in the browser auth prompt gets used

  6. o-nix commented on Apr 7, 2026

    @o-nix

    Daaamn, the web UI with a password is unusable right now...

  7. mazwardhana commented on Sep 23, 2026

    @mazwardhana

    ah me too , i got some problem how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)webRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions