Created by AI. Inspired by YACD, Refined by my Brain.
This site is served over HTTPS, but the backend API uses HTTP.
Modern browsers like Chrome block mixed content by default, which may prevent login functionality.
To enable login during testing:
- Open https://dashboard-sing-box.pages.dev/ in Chrome
- Click the 🔒 lock icon in the address bar
- Select Site settings
- Find Insecure content
- Set it to Allow
- Reload the page
You can also directly add this line in Sing-box config file.
{
"external_controller": "0.0.0.0:9090",
"external_ui": "ui",
"external_ui_download_url": "https://github.com/xh116/sui/releases/latest/download/sui.zip",
"default_mode": "Rule"
}
SUI can talk to either API. The mode is detected when you save an address on the setup page (sing-box API first, Clash API as fallback) and is stored in localStorage.apiMode; log out and enter another address to switch.
| Mode | Address example | Version shown in sidebar |
|---|---|---|
| Clash API (REST + WebSocket) | http://127.0.0.1:9090 |
1.14.3 |
| sing-box API (gRPC-Web, since sing-box 1.14.0) | http://127.0.0.1:9091 |
sing-box 1.14.3 (api 1) |
sing-box 1.14.0 added the api service — gRPC over HTTP/2, which also accepts gRPC-Web so a browser can talk to it directly:
{
"services": [
{
"type": "api",
"listen": "127.0.0.1",
"listen_port": 9091,
"secret": "your-secret",
"access_control_allow_origin": ["*"],
"access_control_allow_private_network": true
}
]
}secretis sent asAuthorization: Bearer <secret>(empty = no auth).access_control_allow_origindefaults to*; required headers (Content-Type,Authorization,X-Grpc-Web,X-User-Agent,Grpc-Timeout) are already allowed.- When the dashboard is served from a public origin while the API is on loopback/LAN, browsers treat the call as a private network request: set
access_control_allow_private_network: trueand allow insecure content in Chrome (see above). - The
apiservice does not replace the Clash API (experimental.clash_api); run both side by side if you want the Rules page in sing-box API mode.
proto/daemon/started_service.proto is a verbatim copy of sing-box tag v1.14.3. After updating it, regenerate the bindings:
npm run generate # buf + protoc-gen-es → src/gen- Rules page is empty: the API has no rules/provider RPCs and its listener serves no Clash REST routes.
- Group expand state is kept locally (
SetGroupExpandis not wired). - Connection speeds and traffic rates are derived in the client from cumulative counters, exactly like in Clash mode.
| Interface Preview | Rule Group Icons | Mobile View |
|---|---|---|
- ✅ Mobile-first layout
- 🎨 Local icon support for Rule Groups
- ⚡ Fast and lightweight
- 📉 Traffic insight