protonscr

steamcmd logout does not clear cached credentials

steamclosed SteamCMD
ValveSoftware/steam-for-linux#7120 · opened 2020-05-20 by firesock · updated 2025-09-12 · 5 comments · github
Ffiresock 2020-05-20 github

Your system information

  • Steam client version (build number or date): 0~20180105-3
  • Distribution (e.g. Ubuntu): Ubuntu 20.04
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Logging in to a steam account and providing credentials when prompted (password and Steam Guard) stores some form of authentication locally. logout does not seem to remove these details, despite the text from help login:

using the 'logout' command will clear those cached credentials (your
password is never stored locally) and require a password on the next login.

Is there a better way to clear these details instead? Separately, is it documented what form of authentication tokens are stored locally, so I can work out what state I'm leaving behind on a server?

Steps for reproducing this issue:

From a steamcmd prompt:

  1. login <user> and supply password and Steam Guard when prompted
  2. logout
  3. login <user> does not require password. Stays the same even after restarting the process (and even box!) and trying again.
SStormCircuit 2023-04-10 github

Anyone know of a work around?

PPrefrd 2024-09-02 github

Seems to take the last used password, you can attempt a login with an incorrect password to override the existing cache.

login <user> <password>

Nnormanr 2024-09-03 github

From https://steamcommunity.com/discussions/forum/13/864973760908921700/?ctp=2#c3820780544812214415: "Go to config/config.vdf, and remove the "ConnectCache" entry, it contains the cached credentials (probably a login token or something)"

https://github.com/ztgasdf/steampkg seems to have more information about how the cached credentials are stored.

MManagor 2025-07-02 github

Just tested with current steamcmd. Logout clears cached credentials.

Kkisak-valve maintainer 2025-09-12 github

Closing per the last comment.

Nothing extracted yet.