Skip to main content

Commands

Service Lifecycle

CommandDescription
valsb startStart the sing-box service
valsb stopStop the sing-box service
valsb restartRestart the sing-box service
valsb statusShow service status, active node, and exit IP

valsb status

Displays the current state of the proxy service including kernel version, active profile, selected node, exit IP, and location.

valsb status

Subscription Management

CommandDescription
valsb sub add <url>Add a subscription
valsb sub listList all subscriptions
valsb sub update [target]Update subscription(s)
valsb sub remove <target>Remove a subscription
valsb sub use <target>Switch the active profile

The target can be a profile name, ID, or index number.

valsb sub add

valsb sub add "https://example.com/sub?format=singbox"

The subscription URL must return a full sing-box JSON config. Add &format=singbox if your provider supports multiple formats.

Node Management

CommandDescription
valsb node useInteractive node browser
valsb node use <name>Switch to a specific node directly

Interactive Node Browser

Running valsb node use without arguments opens an interactive terminal UI:

  • Group selection — choose which proxy group to browse
  • Fuzzy search — start typing to filter nodes by name
  • Live latency — delays refresh every 5 seconds via Clash API
  • Navigation↑↓ to move, Enter to select, Esc to go back
Proxy

> HK-1 120ms *
HK-2 145ms
JP-1 89ms
JP-2 102ms
US-1 210ms

up/down navigate enter select esc back

Type jp to instantly filter to Japan nodes.

Configuration

CommandDescription
valsb config initInitialize config directories
valsb config pathShow all file paths

System

CommandDescription
valsb installInstall sing-box kernel and register service
valsb uninstall --yesRemove everything (trace-free)
valsb updateCheck and apply updates for valsb and sing-box
valsb versionShow version information
valsb doctorDiagnose environment and configuration
valsb reloadReload sing-box configuration

Global Flags

FlagDescription
--jsonOutput in JSON format (for scripting)
--verboseEnable debug logging
--yesSkip confirmation prompts
--config-dir <path>Override the config directory