Skip to content
[ 迅雷快鸟 Shell 版 ] A Shell Implementation of Kuainiao, Xunlei
Branch: master
Clone or download
Latest commit ff81eec Apr 24, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Apr 12, 2019 Remove data dir Apr 24, 2019



A shell implementation of kuainiao, xunlei, runs properly on almost all linux platform.

How to Use

Bind Your Xunlei with Mi Accout

Because the code is using mi account to authorize xunlei, you should bind them first. Here is the guide.

Download the Code

Assuming you've installed git, then

git clone
cd XunleiKuainiaoInShell

Edit the Code, Add Your Mi Account

Change XXXXXXXXXXX with your mi account username and password in

# Line 8 and 9 of

Install Requirements and Test Environment

# Requirements on OpenWRT, Padavan and other RouterOS based on entware or optware environment
opkg update && opkg install libreadline libcurl libopenssl bash curl wget openssl-util ca-certificates ca-bundle

# Test https and grep, a normal output is like "ip":""
curl -s | grep -Eo "\"ip\":\"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\""
wget -qO- | grep -Eo "\"ip\":\"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\""

Run to Test

chmod +x

# Speed up

# Revocer
./ 0

Set As a Cron Job

The code below will enable to run one time in an hour, noting that certain_directory should be replaced.

crontab -l > tmp && echo "1 * * * * /certain_directory/kuainiao/" >> tmp && crontab tmp && rm -f tmp


You can’t perform that action at this time.