tuncli is a minimalist CLI wrapper for sing-box to fetch subscriptions and manage VPN connections in TUN or Proxy modes.
| OS | Architectures | Supported |
|---|---|---|
| Linux | x86_64 (amd64), ARM64 (aarch64) |
Yes |
| macOS | None | No |
| Windows | None | No |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/brawler2011/tuncli/main/install.sh)"Ensure Go is installed, then build and install:
make build
sudo make installFetch and save nodes from your subscription URL:
tuncli update "https://your-subscription-url.com/link"To update using the already configured URL:
tuncli updateInteractively select the connection mode (tun or proxy) and a server:
tuncli selectStart the connection:
sudo tuncli startImportant
Running in TUN mode requires root privileges (sudo) to configure the virtual network interface. Proxy mode can be run as a regular user.
Settings are stored at:
~/.config/tuncli/config.json
Note
When run with sudo or doas, tuncli automatically resolves the original user (SUDO_USER / DOAS_USER) to read and write config files from/to their home directory rather than the root user's home.