opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open mohammadraufzahed opened this issue 1 month ago • 5 comments

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)

mohammadraufzahed avatar Nov 20 '25 08:11 mohammadraufzahed