Click on the Steam Menu > Friends > View Friends List
In the Friends Menu, go to Settings
Uncheck "Sign in to friends when Steam Client Starts".
Close the window to validate the new settings.
If at any point you decide that you want to re-enable this settings, simply follow the above steps, and then check Sign in to friends when Steam Client Starts
Switch To Offline Mode
There is an alternative option for if you just want to play games offline (without your friends seeing), or don't want to download new updates. You can enable the Offline Mode.The Offline mode is quite convenient if you focus on single player games. Once enabled you can seamlessly launch your games without having to connect to the Steam network each time.
After starting Steam, go to Account and select Go Offline in the drop down menu.
A new window will appear where you can select Restart In Offline Mode.
After confirming this option Steam will be restarted and you will appear offline to your friends, and you will be able to play offline.
Photo by Sean Do on Unsplash
Steam disable auto sign in friends
Steam don't log into friends - Best answers
Steam don't automatically sign into friends - Best answers
This document, titled « How to Stop Steam From Signing Into Friends Automatically », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).