https://github.com/peixin/clash-fastest-proxy-selector
clash auto select fastest proxy tool
https://github.com/peixin/clash-fastest-proxy-selector
Last synced: 5 months ago
JSON representation
clash auto select fastest proxy tool
- Host: GitHub
- URL: https://github.com/peixin/clash-fastest-proxy-selector
- Owner: peixin
- License: mit
- Created: 2021-07-01T16:03:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T10:31:42.000Z (over 1 year ago)
- Last Synced: 2025-04-13T13:17:15.952Z (6 months ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/clash-fastest-proxy-selector)
# Clash Fastest Proxy Selector
A tool to automatically select the fastest proxy node for [Clash](https://github.com/Dreamacro/clash)/[ClashX](https://github.com/yichengchen/clashX)/[Clash Pro](https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public)[Clash RESTful API](https://clash.gitbook.io/doc/restful-api)
### Installation
- `yarn global add clash-fastest-proxy-selector`
- `pnpm install clash-fastest-proxy-selector -g`
- `npm install clash-fastest-proxy-selector -g`### Usage
- `clash-fastest-proxy --help`
- `clash-fastest-proxy`
- `clash-fastest-proxy -s 手动选择 -h 127.0.0.1 -p 9090 -t 3000 -u https://www.google.com -r ShadowsocksR -e 香港 --api-token xxxxx`- with `crontab` e.g.
```
20 * * * * echo "---------------`date`---------------" >> ~/.config/clash/clash-fastest-proxy.log && /usr/local/bin/clash-fastest-proxy --exclude-node-names 普通 >> ~/.config/clash/clash-fastest-proxy.log 2>&1
```### Default Config
```
{
selectorName: '手动选择',
hostname: '127.0.0.1',
port: 9090,
delayCheckTimeout: 3000,
delayCheckURL: 'https://www.google.com',
excludeNodeNames: undefined,
proxyType: [ 'Trojan', 'ShadowsocksR' ],
apiToken: undefined
};
```### Building locally
- `yarn build`
- `yarn start`### Develop
use [ts-node](https://github.com/TypeStrong/ts-node)
pnpm install ts-node -g