Getting Started
valsb is a lightweight CLI tool that manages sing-box proxy across Linux, macOS, and Windows. It handles installation, subscription management, node switching, service lifecycle, and updates — all from a single binary.
Quick Start
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/nsevo/val-sing-box-cli/main/scripts/install.sh | bash
Windows (PowerShell)
irm https://raw.githubusercontent.com/nsevo/val-sing-box-cli/main/scripts/install.ps1 | iex
After Installation
# Add a subscription
valsb sub add <your-subscription-url>
# Start the proxy
valsb start
# Check status
valsb status
How It Works
valsb acts as a control plane around sing-box:
- Subscription — fetches sing-box JSON configs from subscription URLs
- Service — registers and manages sing-box as a system service (systemd, launchd, procd, Windows SCM)
- Node switching — switches proxy nodes via Clash API (hot-reload) or config rewrite
- Updates — checks and applies updates for both valsb and sing-box atomically
Requirements
- Linux: systemd or procd (OpenWrt)
- macOS: launchd
- Windows: Windows Service Control Manager (requires Administrator for TUN mode)
- sing-box: automatically installed by
valsb install