sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

[Feature request] SWF: autostart last selected profile on system login

Open pr0kuk opened this issue 2 months ago • 2 comments

Feature request

It would be useful to add an option in sing-box for Windows (SFW) to automatically start the last selected profile when the application is launched at system login.

Current behavior

SFW already supports:

  • starting automatically when the user logs into Windows;
  • starting minimized / in the system tray;
  • remembering the currently selected profile.

However, after SFW is started at login, the selected profile is not started automatically. The user still needs to manually start the service/profile.

Requested behavior

Add an option such as:

Start selected profile automatically on login

When enabled, SFW should:

  1. start automatically with Windows using the existing login/startup mechanism;
  2. restore the last selected profile;
  3. automatically start the sing-box service using that profile.

Ideally, this should work together with the existing "start in tray" behavior, so the whole startup sequence can happen silently without opening the main window.

Example use case

A user has one profile selected and normally keeps sing-box running all the time.

After reboot/login, the expected flow would be:

Windows login
→ SFW starts in tray
→ last selected profile is restored
→ profile/service starts automatically

This would make SFW suitable for an "always-on" VPN/proxy setup without requiring manual interaction after every reboot.

pr0kuk avatar Sep 23 '26 13:09 pr0kuk

Cannot reproduce. You need to provide more information to help us figure out why this issue occurs on your device rather than on a generic Windows device.

nekohasekai avatar Sep 24 '26 08:09 nekohasekai

To clarify, I think this is a feature request rather than a bug report, so there is nothing to "reproduce". SFW behaves as designed; it just lacks this option.

Today, with "start at login" enabled, SFW launches into the tray after login, but the selected profile stays stopped until the user clicks Start manually.

The request is to have an option that makes SFW automatically start the last selected profile right after it launches at login, so the proxy is up without any manual action.

For reference, Clash Verge Rev works this way: with "Auto Launch" and "Silent Start" enabled, the core starts together with the app, and the "System Proxy" / "TUN Mode" toggles keep their last state across restarts. After a reboot the proxy is already active without any clicks.

I'm seeing the same behavior on my machine, so a +1 for this.

TomXPRIME avatar Oct 07 '26 06:10 TomXPRIME