yt-dlp has the ability to log into sites. You can give it your username and password, or hand it a persistent session cookie extracted from your browser. If logging into a premium account gives it access to higher bitrate streams, it can select those.
IME the only thing Premium is good for is getting rid of most ads and enabling background playback in YouTube's official app.