How fangyy-alt/deepseak-switch works
This is a local Claude Code configuration switcher with a Flask web interface and a command-line alternative. The main workflow is to inspect the current settings, switch to DeepSeek or restore the prior settings, then have Claude Code use the resulting configuration. The shell script and templates are documented in the tree but were not sampled, so their internal behavior and detailed page-to-endpoint wiring are not shown.
Main entry points: app.py Flask app · switch-deepseek.sh Switch script · help.html Help page · index.html Switch UI
Components 10
Configuration switching
- Switch script
switch-deepseek.sh - Claude settings
- Settings backup
Claude Code integration
- Claude Code
- DeepSeek API
Other components
- User
- Browser
Connections 14
- User → Browser: uses
- Browser → Flask app: requests pages
- Flask app → Help page: renders
- Flask app → Switch UI: renders
- Browser → Flask app: requests status
- Flask app → Claude settings: reads status
- Flask app → Settings backup: reads metadata
- Browser → Flask app: requests switch or restore
- Flask app → Switch script: runs command
- Switch script → Claude settings: reads and updates
- Switch script → Settings backup: backs up or restores
- User → Switch script: runs CLI commands
- Claude Code → Claude settings: reads configuration
- Claude Code → DeepSeek API: sends API requests