Skip to content

opencode auth list displays 'undefined' instead of provider name for authenticated sessions #22802

@Vansh1811

Description

@Vansh1811

Description

When running opencode auth list after successfully authenticating with a provider (e.g. Anthropic or OpenAI), the output shows undefined in place of the provider name or model identifier. This makes it impossible to identify which auth sessions are currently active, especially when multiple providers are configured.

Actual output:

undefined - active
undefined

Expected output:

anthropic - active
openai

This appears to be a rendering/parsing issue w0.3.x (latest)here the provider name field is not being correctly accessed from the session object before display.

Plugins

No response

OpenCode version

0.3.x (latest dev branch)

Steps to reproduce

  1. Install opencode via npm: npm install -g opencode-ai
  2. Authenticate with any provider: opencode auth login anthropic
  3. Run opencode auth list
  4. Observe the output — provider name shows as undefined

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

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