Skip to content

Cannot 'attach' to an opencode server with a password #9011

Closed as duplicate

Description

@willtunnels

Description

Unless I'm missing something, there is currently no way to attach to an opencode server with a password from the terminal. Attempting to do so returns 'Unauthorized', even if the client is run in a shell with OPENCODE_SERVER_PASSWORD set.

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

  1. OPENCODE_SERVER_PASSWORD=foo opencode serve
  2. OPENCODE_SERVER_PASSWORD=foo opencode attach http://127.0.0.1:4096

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04 (WSL)

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

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 workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions