Scripts to generate Clash and Surge configs from airport subscriptions, replacing nodes with your own.
config_guide.py: interactive setup (Clash or Surge)mix_clash.py: generate Clash configsmix_surge.py: generate Surge configsconfig_common.yaml: local config (ignored)config_clash.yaml: local config (ignored)config_surge.yaml: local config (ignored)
Sample configs:
config_common_example.yamlconfig_clash_example.yamlconfig_surge_example.yaml
- Copy sample configs and fill real values:
cp config_common_example.yaml config_common.yaml
cp config_clash_example.yaml config_clash.yaml
cp config_surge_example.yaml config_surge.yaml- Or use the interactive guide:
python3 config_guide.py- Generate configs:
python3 mix_clash.py
python3 mix_surge.py- Real configs are ignored by git (
config_common.yaml,config_clash.yaml,config_surge.yaml). - Clash rules support placeholders:
{proxy},{ai},{domestic},{adblock}. - Surge rules support the same placeholders.
- Surge custom proxies use native INI format:
name: "protocol, server, port, key=value, ...". - Both Clash and Surge support
base_sub_groupswithactive_groupfor multiple subscriptions.