{"id":34225387,"url":"https://github.com/ryan961/clashset","last_synced_at":"2026-03-10T08:33:17.436Z","repository":{"id":164291320,"uuid":"639718058","full_name":"ryan961/clashset","owner":"ryan961","description":"clashset: 根据订阅链接以及预先设置的规则模版和配置生成 clash 配置文件。","archived":false,"fork":false,"pushed_at":"2025-03-01T07:19:56.000Z","size":1903,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T08:20:39.388Z","etag":null,"topics":["clash","clashx-pro","config","proxy-groups","proxy-providers","rule"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryan961.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-12T04:28:54.000Z","updated_at":"2025-03-01T07:20:00.000Z","dependencies_parsed_at":"2024-01-29T12:45:46.219Z","dependency_job_id":"658316a0-791c-4b27-867b-81e56d35e9b3","html_url":"https://github.com/ryan961/clashset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryan961/clashset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan961%2Fclashset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan961%2Fclashset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan961%2Fclashset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan961%2Fclashset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryan961","download_url":"https://codeload.github.com/ryan961/clashset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryan961%2Fclashset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clash","clashx-pro","config","proxy-groups","proxy-providers","rule"],"created_at":"2025-12-16T00:05:44.211Z","updated_at":"2026-03-10T08:33:16.910Z","avatar_url":"https://github.com/ryan961.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clashset\n\n## 执行参数说明\n```bash\n✗ ./clashset -h\nUsage of ./clashset:\n  -dir string\n        配置文件地址 📁 , 默认配置文件 template.yaml \u0026 proxy-filters.yaml 文件夹 (default \"./\")\n  -file string\n        导出配置文件名称 📃 (default \"config.yaml\")\n  -interval uint\n        proxy-providers 配置刷新间隔时长(s) (default 86400)\n  -out string\n        导出文件夹 📁 (default \"out/\")\n  -proxy string\n        http proxy ✈️\n  -urls string\n        订阅链接地址 🔗 (多个订阅链接之间 \",\" 分隔)\n```\n\n\n## template.yaml 自定义配置模版\n\n预先定义用户配置文件模版（除 `proxy-providers` 和 `proxy-groups`\n的其他配置），脚本会根据订阅地址和规则生成填充 `proxy-providers`和 `proxy-groups` 配置。`rule-provider`、`rules`...相关配置自行在\ntemplate.yaml 中配置。\n\n## configuration.yaml 脚本配置\n\n* `filters`: `proxy-providers` 中根据 `filter` 生成的节点分组，机场间单独分开（例如：`name: jp-airport1`\n  ），后面会填充到对应的 `use_filters` 中,\n  对于 `filter` 正则匹配不存在节点的分组则会自动跳过。\n\n```yaml\nfilters:\n  - { name: \"hk\", filter: '香港' }\n  - { name: \"tw\", filter: '台湾' }\n  - { name: \"jp\", filter: '日本' }\n```\n\n* `groups`: `group` 为 `GroupCommonOption`\n  的相关配置（详见：https://github.com/Dreamacro/clash/blob/7f1b50f4a70fe353b8ea5d31ecfd4c751b3f2eb0/adapter/outboundgroup/parser.go#L23,\n  ）, `use_filters` 为所使用的 `filters` 中分组名称，`rm_airports` 表示是否移除 `proxies` 中的机场节点（默认会添加所有机场分组）。\n\n```yaml\ngroups:\n  - { group: { name: \"Apple\", type: select, proxies: [ \"DIRECT\", \"Proxy\" ] }, use_filters: [ \"us\",\"jp\" ] }\n  - { group: { name: \"Amazon\", type: select, proxies: [ \"Proxy\" ] }, use_filters: [ \"us\",\"sg\",\"hk\" ] }\n  - { group: { name: \"YouTube\", type: url-test, proxies: [ \"Proxy\" ], url: 'http://www.gstatic.com/generate_204', interval: 300 }, rm_airports: true }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan961%2Fclashset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryan961%2Fclashset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryan961%2Fclashset/lists"}