[Bug]: Claude Code provider cannot refresh model list — requires API key despite CLI authentication
Author: rahuldr07Created Sep 29, 2026Updated Sep 29, 2026
Platform
Linux
Version
v2.1.3
Bug Description
The Claude Code provider uses the Claude CLI for authentication and chat, but the model list refresh button fails with "No API key configured." Since the provider is designed to work with the CLI's auth, it should also be able to use that same authentication to fetch and refresh the available model list — rather than requiring a separate standalone API key.
Health check output:
Provider: claude-code
Status: error
Error: "No API key configured"
Host: https://api.anthropic.comSteps To Reproduce
- Install and authenticate the Claude CLI (
claudecommand works) - Open Cherry Studio → Settings → Providers → Claude Code
- Ensure no standalone API key is entered (relying on CLI auth)
- Click the refresh button () on the model list
- Model list does not update; remains stale/incorrect
Expected Behavior
The Claude Code provider should use the CLI's existing authentication to query available models from Anthropic's API and refresh the model list, without requiring a separate API key.
Relevant Log Output
No response
Additional Context
No response
Source: CherryHQ/cherry-studio