___ _ _ _ ___
/ __| |_ ___| | | _ ) _____ __
\__ \ ' \/ -_) | | _ \/ _ \ \ /
|___/_||_\___|_|_|___/\___/_\_\
This project is a simple sing-box client running on Linux, Windows and MacOS.
- Use management script to use sing-box in a shell environment
- Automatically import subscriptions nodes (v2ray format only)
- Generate complete sing-box config file from templates
- Online upgrade
- Install service or auto-start
- Create Shortcut
NOTE: May not work properly when path contains spaces and special characters
- Initialize environment
- 🐧
Linux
: Run./tool.sh
, and follow the prompts to install missing dependencies. - 🍎
MacOS
: Install Homebrew, then run./tool.sh
, and follow the prompts to install missing dependencies. - 🪟
Windows
: Install Cygwin or MinGW64 or Git4windows, then run./tool.sh
, and follow the prompts to install missing dependencies.
- 🐧
- Download core
- Run
./tool.sh
, type 5 to Upgrade core.
- Run
- Installation dashboard (Optional)
- Put dashboard assets into
./resources/ui/
.
- Put dashboard assets into
See Readme.
- Exec
./tool.sh -ug --setup
- User mode
- 🐧
Linux
: Run./shellbox.desktop
. - 🍎
MacOS
: Run./shellbox.command
. - 🪟
Windows
: Run./shellbox.bat
.
- 🐧
- Service mode control
- Automatically
- Disable
service_mode
,start_at_boot
insettings.json
- Run
./tool.sh --setup
- Disable
- Manually
- Service
- 🐧
Linux
:- systemd: Run
sudo systemctl stop shellbox; sudo systemctl disable shellbox; sudo rm -f /etc/systemd/system/shellbox.service
- systemd: Run
- 🍎
MacOS
: Runcd /Library/LaunchDaemons; sudo launchctl unload shellbox.service.plist; sudo rm -f shellbox.service.plist
. - 🪟
Windows
: Open Windows schedule, removeShellBox
task.
- 🐧
- Auto-start
- 🐧
Linux
: Remove the line containingshellbox_core
from/etc/crontab
. - 🍎
MacOS
: Removeshellbox.command
from Login items. - 🪟
Windows
: Enter%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
directory, removeshellbox.bat
.
- 🐧
- Service
Command line mode:
Usage: tool.sh [OPTION]...
e.g. tool.sh -g -- Rebuild configs
e.g. tool.sh -V -- Returns version
Options:
-e -- Redirect error message to log file
-g, --generate -- Rebuild configs
-u, --update -- Update subscriptions
--setup -- Setup sing-box
-V, --version -- Returns version
-h, --help -- Returns help info
Interactive mode:
[Menu]
1. Rebuild configs
2. Update subscriptions
3. Check update
4. Upgrade shellbox
5. Upgrade core
------------------------------
a. Setup sing-box with current config
b. Start service
c. Stop service
x. Exit