Sing-Box CLI
🎤 Cross-platform sing-box service manager.
Install
uv
Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
sing-box-cli
Install
# windows
uv tool install sing-box-cli
# linux
uv tool install sing-box-cli
sudo ln -sf $(which sing-box-cli) /usr/local/bin/
sudo ln -sf $(which sbc) /usr/local/bin/
Install with specific sing-box version
uv tool install sing-box-cli --with sing-box-bin==x.y.z
Upgrade
uv tool upgrade sing-box-cli
After upgrading on Windows, run the following in an administrator PowerShell:
sbc service enable
sbc service status
This refreshes the installed service paths and migrates existing NSSM installations
to the native Go service host, keeping the same sing-box-service name and account.
An existing running service is stopped and restarted when its executable paths change.
If that update fails, the old service target is restored and the error is reported.
The native host and core are copied into versioned directories under
%ProgramFiles%/sing-box-cli/sing-box-service. The running service does not depend
on uv's environment, so future uv upgrades do not overwrite its running executables.
Configuration files stay in their existing location. Windows services run at boot;
closing the terminal does not stop them. Linux continues to use the existing systemd service.
No Go installation is required when installing a published wheel. Go is needed
only to build a wheel from source; the required version is in windows-service/go.mod.
Architecture support follows sing-box-bin: Windows distributes the amd64 core
and service helper; Linux distributes amd64 and arm64 cores. No additional CPU
architectures are introduced by the service helper.
Logs
The service uses the user's sing-box configuration without changing its log level.
Set log.level to info or warn in that configuration to reduce generated logs.
sbc logs --log-level debug selects the logs to view; it cannot recover debug entries
that the core did not generate. For diagnostics, explicitly change the core's log level
and restart, then restore it when finished.
The native Windows host writes only warnings/errors to the Windows Application event
log (source sing-box-service-native). Core stdout/stderr is kept as a bounded diagnostic
tail for failures, without an additional debug log file. To persist core logs, use
sing-box's log.output configuration; streaming sbc logs continues to use the core API.
Old versioned executables are retained for rollback. After disabling the service,
its directory under Program Files may be removed manually; user configuration is separate.
Run
Windows in Admin powershell
sbc --help
Linux
sudo sbc --help
Metadata
Release files for sing-box-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sing_box_cli-0.1.2.tar.gz | 38.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sing_box_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / sing_box_cli-0.1.2.tar.gz
| Download URL | sing_box_cli-0.1.2.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
772584de97868f5120c8ccd823c5f6b3bb31750f7d1fc10f4130b7f26e87e220
|
|
BLAKE2b-256 checksum How to use checksums |
efa14ba10c7e30a10c6ab8aadc26b3301c2e34496c5f4716347f8848dca4901e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sing_box_cli-0.1.2-py3-none-any.whl
| Download URL | sing_box_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fa8eb65f2b008a0d4415f6d209e5ebe4b83095dc02cda7ae3985f96f481fb0a
|
|
BLAKE2b-256 checksum How to use checksums |
0b9b7994767433afc01e760455f8f787a853d9ae13145d263b95587e742be86d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|