Skip to content

opencode auth list shows "undefined" for $schema and provider fields despite valid configuration #4533

@mohammadraufzahed

Description

@mohammadraufzahed

Description

The configuration file is valid and properly formatted, but the display command appears to have a parsing or rendering issue.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "avalai": {
      "id": "avalai",
      "npm": "@ai-sdk/openai-compatible",
      "name": "Aval AI",
      "options": {
        "baseURL": "https://api.avalai.org/v1",
        "apiKey": "#api_key_hidden"
      },
      "models": {
        "deepseek-v3.1": {
          "name": "Deepseek V3.1"
        }
      }
    }
  }
}

OpenCode version

v1.0.80

Steps to reproduce

  1. Configure opencode with valid credentials in ~/.local/share/opencode/auth.json
  2. Run opencode auth list
  3. Observe that $schema and provider show as "undefined"

Screenshot and/or share link

No response

Operating System

cachyos

Terminal

alacritty,konsole(KDE)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions