Skip to content

Cannot use opencode attach when OPENCODE_SERVER_USERNAME set #25113

@jasonwch

Description

@jasonwch

Description

From this #9095

Am I able to use this to attach the web server like this?
OPENCODE_SERVER_USERNAME="username" OPENCODE_SERVER_PASSWORD="password" opencode attach http://localhost:4096

But when I do this, it's still showing Unauthorized. Am I miss anything?

Plugins

Nil

OpenCode version

1.14.30

Steps to reproduce

use this command on terminal:
OPENCODE_SERVER_USERNAME="username" OPENCODE_SERVER_PASSWORD="password" opencode attach http://localhost:4096

shows Unauthorized

Screenshot and/or share link

NIL

Operating System

Ubuntu 24.04

Terminal

Termius

Metadata

Metadata

Assignees

Labels

No labels
No labels

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