There's an issue with the selected model - Claude Code
Quick fix
Enable local proxy and rectifier, and correctly set ANTHROPIC_BASE_URL to resolve NVIDIA or MiniMax model call failures.
Symptom
Section titled “Symptom”There's an issue with the selected model (minimaxai/minimax-m2.5[1m]). It may not exist or you may not have access to it. Run --model to pick a different model.When using third-party proxies like NVIDIA NIM API or MiniMax, if the model mapping is not correctly read by the local proxy, Claude Code will prompt that the model does not exist or lacks permission. This is usually because the local proxy takeover is not enabled, the rectifier (NVIDIA API does not support Anthropic's prompt_cache_key parameter) is not enabled, or the environment variable ANTHROPIC_BASE_URL does not correctly point to the proxy port.
Ensure local proxy is enabled in cc-switch to take over Claude.
Enable 'Rectifier' in advanced settings to automatically filter out the prompt_cache_key parameter unsupported by NVIDIA API.
Select the API format as OpenAI chat completions.
If errors persist after interface configuration, manually export the environment variable in the terminal before starting Claude Code: export ANTHROPIC_BASE_URL="http://127.0.0.1:代理端口".
It is recommended to update cc-switch to v3.12.3 or higher, which includes multiple compatibility improvements.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- What should I do if I still get a 502 error after manually setting ANTHROPIC_BASE_URL in the terminal?
- Please check if the proxy port is correct and confirm that the NVIDIA NIM or corresponding provider's API service is currently available. Additionally, try switching to other models to rule out model name mapping errors (e.g., some users noted that minimax-m2.5 might not have a 1m version).
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.