Skip to content

Doctor suggests nonexistent openclaw auth add command #24220

@ksylvan

Description

@ksylvan

Bug

openclaw doctor suggests a command that doesn't exist when reporting memory search configuration issues:

openclaw auth add --provider openai

There is no openclaw auth command. Running it produces the top-level help output.

Where

src/commands/doctor-memory-search.ts — two locations:

  • Line 65 (specific remote provider, no API key):

    `- Add credentials: ${formatCliCommand(`openclaw auth add --provider ${resolved.provider}`)}`,
  • Line 92 (auto provider, no key found):

    `- Add credentials: ${formatCliCommand("openclaw auth add --provider openai")}`,

Expected

The fix suggestion should reference a command that actually exists, such as:

  • openclaw configure (interactive wizard)
  • openclaw config set models.providers.openai.apiKey <key>
  • Or simply setting the OPENAI_API_KEY environment variable (which is already listed as another option)

Steps to reproduce

  1. Have memory search enabled with provider: "openai" (or any remote provider)
  2. Don't have the corresponding API key set
  3. Run openclaw doctor
  4. Observe the nonexistent openclaw auth add command in the suggested fix

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions