https://github.com/joooook/clash-agent
A Bash script provides simple control functions for Clash .
https://github.com/joooook/clash-agent
agent bash clash clash-premium clash-proxy shell zsh
Last synced: 3 months ago
JSON representation
A Bash script provides simple control functions for Clash .
- Host: GitHub
- URL: https://github.com/joooook/clash-agent
- Owner: Joooook
- Created: 2024-10-30T02:59:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-30T04:41:35.000Z (over 1 year ago)
- Last Synced: 2025-07-09T13:55:57.414Z (12 months ago)
- Topics: agent, bash, clash, clash-premium, clash-proxy, shell, zsh
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clash-agent
A Bash script provides simple cli control functions for Clash.
简易clash控制脚本
## Installation
```
git clone https://github.com/Joooook/clash-agent.git
cd clash-agent
wget https://github.com/zhongfly/Clash-premium-backup/releases/download/2023-09-05-gdcc8d87/clash-linux-amd64-n2023-09-05-gdcc8d87.gz
gzip -d clash-linux-amd64-n2023-09-05-gdcc8d87.gz
```
## Usage
Copy your subscribe link (.e.g http://example.com/api/subscribe?token=xxxx&flag=clash) into ./subscribe
注意是clash的配置文件,一般带有`&flag=clash`参数
```
./agent.sh {start|stop|restart|update}
- start: start clash
- stop: kill clash process
- restart: restart clash
- update: download config.yaml from link in ./subscribe
```
## Note
- Only support one subscribe link.
- Generate logs in ./log
- 只支持一条订阅。
- 日志文件位于./log。
## Others
https://github.com/zhongfly/Clash-premium-backup