Installation
valsb is a root-only tool. It registers a system service, manages files
under /etc, /var/lib, /var/cache (or %ProgramData% on Windows), and
needs root for TUN mode. The installer therefore requires root and the
valsb binary will request sudo (or trigger a UAC prompt on Windows)
automatically when invoked by a regular user.
One-liner Install
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/nsevo/val-sing-box-cli/main/scripts/install.sh | sudo bash
This script:
- Detects your OS and architecture
- Re-executes itself with
sudoif not already root - Downloads the latest
valsbandsing-boxbinaries - Places binaries under
/usr/local/binand/usr/local/lib/val-sing-box-cli/bin - Registers the sing-box service via the platform-native backend
Windows (PowerShell, Administrator)
irm https://raw.githubusercontent.com/nsevo/val-sing-box-cli/main/scripts/install.ps1 | iex
This script:
- Triggers a UAC prompt to elevate to Administrator if needed
- Installs
valsb.exeto%ProgramFiles%\val-sing-box-cli\ - Adds the bin directory to the system PATH
- Runs
valsb installto download sing-box and register the Windows service
Manual Install
Download the latest release from GitHub Releases.
# Extract the archive
tar xzf valsb-v*.tar.gz
# Move to a directory in your PATH (root-owned)
sudo mv valsb /usr/local/bin/
# Install sing-box kernel and register the service
sudo valsb install
Verify Installation
valsb version
Expected output:
valsb 0.1.0
sing-box 1.13.8
platform linux/amd64
Uninstall
valsb uninstall --yes
This removes all binaries, service files, configs, cache, and data directories — a complete trace-free removal.