Skip to content

cc-switch provider management: cannot delete, or adding fails

Quick fix

Mostly UI limits or version bugs. The last provider cannot be deleted; for input and delete failures, upgrade or turn the feature off.

Error output
Claude添加了供应商,现在gemini尝试添加一个provider后,无法删除了。这个provider有什么办法删除吗?
English translation

I added a provider for Claude, and now after trying to add a provider for gemini I cannot delete it. Is there any way to delete this provider?

This cluster holds several UI problems around providers, request addresses, and session management. The core one: cc-switch protects the last remaining provider and refuses to delete it, because the matching app cannot work without one. If you no longer use a provider such as gemini, turn the related feature off in settings rather than deleting it. The other variants — adding a provider failing, // not being enterable in the request address, a deleted endpoint returning after a refresh, and adding or deleting request addresses not saving — are mostly old-version bugs, some of which maintainers said would be or have been fixed in a newer release.

  1. If the provider you want to delete is the only one for that app, cc-switch will not allow it. Turn the app or provider feature off in settings instead — for example, disable the gemini features if you do not use gemini.

  2. If adding, deleting, entering a request address, or saving behaves oddly, upgrade cc-switch to the latest version. Maintainers said several similar problems would be fixed in a new release.

  3. If the old config survives an uninstall and reinstall and deleting files inside the .config folder does not help, the config is probably held by app state or a higher-priority config. Upgrade and configure again.

ToolUnknown
VersionUnknown
PlatformsWindowsmacOS
Why can the only provider not be deleted?
Because the matching app cannot work without one, so cc-switch protects it. If you no longer use it, turn the related feature off in settings.
The config survives an uninstall and reinstall. What now?
Users report the config remaining after a reinstall, with deleting the .config folder having no effect. Upgrade to a newer version and configure again.
I no longer use the gemini provider. What should I do?
Turn the gemini features off in settings.
// cannot be typed into the request address. Is that an input method problem?
No. It showed up on v3.9.1 on macOS, switching input method did not help, and there were no error logs — it is an input handling bug.
A deleted endpoint comes back after a refresh. What now?
That is an old-version endpoint deletion bug. Upgrade, or wait for the maintainers to release a fix.

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.