Skip to content

Qwen reports API error each time after restart #3417

@davyjones2026

Description

@davyjones2026

What happened?

Each restart, it reports API Error: 401 Incorrect API key provided.
I need to reenter the API key each time. After that, it works.

What did you expect to happen?

The API is okay, from bailian. The API key IS stored at the ~/.qwen/settings.json. Somehow qwen doesn't read it.

Client information

Qwen Code: 0.14.5 (a661294)
Runtime: Node.js v22.20.0 / npm 10.9.3
IDE Client: VS Code
OS: linux x64 (6.6.87.2-microsoft-standard-WSL2)
Auth: API Key - openai
Base URL: https://dashscope.aliyuncs.com/compatible-mode/v1
Model: qwen3.5-plus
Fast Model: qwen3.5-plus
Session ID: 3539b3a6-73ba-4aef-b0cf-7064cb4d5bdd
Sandbox: no sandbox
Proxy: no proxy
Memory Usage: 279.0 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

    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