#steam #account #mobile #codes #generate #2fa #totp

bin+lib steam-mobile

Add, remove and edit Steam 2fa codes programmaticaly, with optional CLI to generate TOTP Codes, add SteamGuard, etc

5 releases (3 breaking)

0.5.0 Feb 7, 2024
0.4.0 Jan 23, 2024
0.3.1 Jun 22, 2022
0.3.0 May 17, 2022
0.2.4 Nov 12, 2021

#235 in Authentication


Used in steam-trading

MIT license

44MB
518K SLoC

Steam-Mobile

Crate version on crates.io Crate documentation on docs.rs Crate license

This library provides vital Steam Mobile Authenticator functionality, especially useful for building Steam trading bots, but not limited to, managing your Steam Account outside of the mobile app, which certainly is bad for accepting market/trade confirmations.

This library aims to be robust across various errors that can happen with Steam Network. At this moment, steam-auth implements some retry strategies to log in and parental control to make the experience more consistent, while passing up the chain errors that can't be retried.

Usage

You can use the CLI (enabled by default) to generate TOTP codes, add and remove Authenticators, and at a later moment accept/deny confirmations.

If you don't want to use the CLI, and are only interested in the library for automation, you disable it by adding this to your Cargo.toml:

[dependencies.steam-mobile]
version = "0.2.4"
default-features = false

Documentation

Still todo. You can find something if you generate the docs, but they are quite outdated at the moment.

Features

Below, you can find a list of implemented and planned features:

Implemented

Library

  • Login to a user account with SteamGuard enabled, captchas, parental control;
  • Generate secrets
  • Accept, deny and fetch mobile confirmations;

CLI

  • Generate login codes for Shared Secrets;
  • Add SteamGuard authenticator, saving maFile(secrets);

Planned

  • Remove SteamGuard from account;
  • More CLI functionality, such as accept or deny market confirmations;

Dependencies

~19–36MB
~581K SLoC