not found(404) adding Claude Code desktop model API - CC Switch
Quick fix
Upgrade to v3.16.3+ to fix connectivity detection false positives, or ignore the 404 and test actual calls directly.
Symptom
Section titled “Symptom”not found(404)When adding a custom vendor connection from Claude Desktop to NVIDIA NIM in cc-switch, the interface displays "Interface address does not exist, please check base url and api path" and shows not found(404). This occurs because NVIDIA NIM is an OpenAI-compatible endpoint (path /v1/chat/completions), while Claude Code/Desktop uses Anthropic format (/v1/messages). Although cc-switch proxy handles format conversion, older versions may receive a 404 response during vendor connectivity checks due to protocol mismatches or request differences, marking the check as failed.
Starting from v3.16.3, vendor connectivity checks use lightweight reachability probes instead of sending real streaming requests. Any HTTP response is considered reachable, so it should no longer fail due to 404. Even if the check button still reports 404, switching to the vendor for actual use (via proxy) usually works correctly.
Upgrade cc-switch to the latest version (at least v3.16.3 or higher), then retest vendor connectivity.
If the check still fails after upgrading, try ignoring the error and switch to the vendor for actual conversation testing. If actual calls work normally, this indicates only the detection logic was flawed and usage is unaffected.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- Why can I successfully call via terminal but not via desktop?
- Terminal (CLI) and Desktop may use different configurations or connection methods. Additionally, older versions' connectivity detection logic is more sensitive to non-standard requests. After upgrading to the new version, the detection logic is optimized and typically identifies connectivity correctly.
- NVIDIA NIM is an OpenAI-compatible endpoint, why can Claude use it?
- The cc-switch proxy layer converts Anthropic-format requests to OpenAI-compatible format before sending them to NVIDIA NIM, and converts responses back to Anthropic format for Claude. Therefore, as long as the proxy works properly, interoperability is achieved even if underlying API formats differ.
- What if it still reports 404 after upgrading?
- If connectivity checks still report 404 after upgrading but actual conversations or file operations work normally, you can ignore the error. This is a known limitation of the detection logic and does not affect actual functionality. If actual calls also fail, provide the base_url, full error message, and the button that triggered the error (connectivity check or model test) for further troubleshooting.
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.