Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

SteamLogin (Python)

Minimal Steam login via Valve's modern auth flow. Gets access/refresh tokens and optionally the steamLoginSecure web cookie.

Install

python -m venv .venv && source .venv/bin/activate
pip install requests rsa

Usage

from login import SteamLogin

login = SteamLogin("YOUR_STEAM_USERNAME", "YOUR_STEAM_PASSWORD", save_login_secure=True)
# If Steam Guard is enabled, you'll be prompted for a code.

print("SteamID64:", login.steamID64)
print("Access token:", login.access_token)
print("Refresh token:", login.refresh_token)
print("Claim cookie:", login.claim_cookie)  # sessionid=...; steamLoginSecure=...

Outputs

  • access_token, refresh_token, steamID64
  • steamLoginSecure (when save_login_secure=True)
  • claim_cookie (ready to paste), session (requests.Session)

Notes

  • Interactive prompt handles Steam Guard (email or TOTP).
  • Keep tokens/cookies secret; do not commit credentials.
  • Use with your own account and respect Steam's Terms.

License

MIT (or your choice).

About

Allows you to Login to steam through python with a User/Pass Combo and obtain access Tokens with 2FA Support

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages