mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-22 17:11:04 +08:00
Reorganize docs/user-manual/ from flat structure to language subdirectories (zh/, en/, ja/) with shared assets/. Move existing Chinese docs into zh/, fix image paths, add multilingual navigation README, and translate all 23 markdown files (~4500 lines each) to English and Japanese.
5.1 KiB
5.1 KiB
5.2 Frequently Asked Questions
Installation Issues
macOS Shows "Unidentified Developer"
Problem: First launch shows "Cannot open because it is from an unidentified developer"
Solution 1: Via System Settings
- Close the warning dialog
- Open "System Settings" > "Privacy & Security"
- Find the CC Switch prompt
- Click "Open Anyway"
- Reopen the app
Solution 2: Via Terminal command (recommended)
sudo xattr -dr com.apple.quarantine /Applications/CC\ Switch.app/
The app can be opened normally after running this command.
Windows: App Doesn't Launch After Installation
Possible causes:
- Missing WebView2 runtime
- Antivirus software blocking
Solutions:
- Install Microsoft Edge WebView2
- Add CC Switch to your antivirus software's whitelist
Linux: Startup Error
Problem: AppImage won't start
Solution:
# Add execute permission
chmod +x CC-Switch-*.AppImage
# If it still fails, try
./CC-Switch-*.AppImage --no-sandbox
Provider Issues
Provider Switch Doesn't Take Effect
Cause: The CLI tool needs to reload its configuration
Solutions:
- Claude Code: Close and reopen the terminal, or restart the IDE
- Codex: Close and reopen the terminal
- Gemini: Tray switching takes effect immediately, no restart needed
API Key Invalid
Troubleshooting steps:
- Confirm the API Key is copied correctly (no extra spaces)
- Confirm the API Key hasn't expired
- Confirm the endpoint URL is correct
- Use the speed test to verify connectivity
How to Restore Official Login
Steps:
- Select the "Official Login" preset (Claude/Codex) or "Google Official" preset (Gemini)
- Click "Enable"
- Restart the corresponding CLI tool
- Follow the CLI tool's login flow
Proxy Issues
Proxy Service Fails to Start
Possible cause: Port is occupied
Solution:
- Check port usage:
# macOS/Linux lsof -i :49152 # Windows netstat -ano | findstr :49152 - Close the program occupying the port
- Or try modifying the configuration to restore the default port:
- Open "Settings > Proxy Service"
- Click the "Reset to Default" button
Request Timeout in Proxy Mode
Possible causes:
- Network issues
- Provider server issues
- Incorrect proxy configuration
Solutions:
- Check network connection
- Try accessing the provider API directly (disable proxy)
- Check if provider configuration is correct
Configuration Not Restored After Disabling Proxy
Possible cause: Proxy exited abnormally
Solution:
- Edit the current provider
- Check if the endpoint URL is correct
- Save to update the configuration
Failover Issues
Failover Not Triggering
Checklist:
- Is the proxy service running
- Is app takeover enabled
- Is auto failover enabled
- Are there backup providers in the queue
Failover Triggering Too Frequently
Possible causes:
- Unstable primary provider
- Circuit breaker threshold set too low
Solutions:
- Check primary provider status
- Increase the failure threshold (e.g., from 3 to 5)
- Consider changing the primary provider
All Providers Are Circuit-Broken
Solutions:
- Wait for the recovery wait time to expire (default 60 seconds)
- Or restart the proxy service to reset states
Data Issues
Configuration Lost
Possible causes:
- Configuration directory was deleted
- Database corruption
Solutions:
- Check if the
~/.cc-switch/directory exists - Restore from backup:
~/.cc-switch/backups/ - Or import from a previously exported configuration file
Import Configuration Failed
Possible causes:
- Incorrect file format
- Version incompatibility
Solutions:
- Confirm the file was exported by CC Switch
- Check if the file content is complete
- Try opening with a text editor to check format
Usage Statistics Data Is Empty
Checklist:
- Is the proxy service running
- Is app takeover enabled
- Is log recording enabled
- Have requests been going through the proxy
Other Issues
Tray Icon Not Showing
macOS:
- Check menu bar icon settings in System Settings
Windows:
- Check taskbar settings to ensure the CC Switch icon is not hidden
Linux:
- System tray support may need to be installed (e.g.,
libappindicator)
UI Display Issues
Solutions:
- Try switching themes (light/dark)
- Restart the app
- Delete
~/.cc-switch/settings.jsonto reset settings
Update Failed
Solutions:
- Check network connection
- Manually download and install the latest version
- If using Homebrew:
brew upgrade --cask cc-switch
Getting Help
Submit an Issue
If none of the above solutions work:
- Visit GitHub Issues
- Search for similar issues
- If none found, create a new Issue
- Provide the following information:
- Operating system and version
- CC Switch version
- Problem description and reproduction steps
- Error messages (if any)
Log Files
Attach log files when submitting an Issue:
- macOS/Linux:
~/.cc-switch/logs/ - Windows:
%APPDATA%\cc-switch\logs\