For those who don't know, 1Password now supports Steam Guard TOTP codes. If you change your 1Password release channel to nightly, you can get this working already now. The stable release is planned for Dec 1. Source
Note: This guide is for Windows, but steamguard-cli also works on Mac and Linux.
1. In 1Password, go to Settings > Advanced > Release channel and pick Nightly
2. Open PowerShell on your computer (no admin needed) and copy-paste this. It downloads steamguard-cli from the official GitHub repo, runs the setup and shows the QR code at the end:
& {
$dir = "$env:USERPROFILE\steamguard"
New-Item -ItemType Directory -Force $dir | Out-Null
$rel = Invoke-RestMethod "https://api.github.com/repos/dyc3/steamguard-cli/releases/latest"
$asset = $rel.assets | Where-Object name -like "*.exe" | Select-Object -First 1
$exe = Join-Path $dir "steamguard.exe"
Invoke-WebRequest $asset.browser_download_url -OutFile $exe
& $exe setup
& $exe qr
}
3. Press Y to create the manifest and log in with your Steam username and password. When it asks for a 2FA code, just tap Approve in the Steam app on your phone, leave the field empty and press Enter
4. Pick T to transfer the authenticator and enter the SMS code. You'll get a 2 day trade ban since the device changes. Common bug: the first SMS code usually gets rejected as incorrect. Just wait a moment for a second SMS and that one works
5. You’ll get a new revocation code (R#####). In 1Password, edit your Steam login, add a new Password field, name it “Revocation code” and paste it there. This is not required for the codes to work, but it’s your way back in if you ever lose access. After this a QR code shows up in PowerShell
6. In the same Steam login, add a One-Time Password field. Use the scan QR code option and it picks up the code straight from your screen
7. Check that the 5 character code works, then you can delete the Steam mobile app
8. Back up the authenticator file. Paste %APPDATA%\steamguard-cli\maFiles into the Windows Explorer address bar and copy the .maFile from there. In 1Password, edit your Steam login, add a new field with Attach a File and add the .maFile there. The .maFile isn’t needed for the codes to work, but it’s good to keep safe in case you ever need steamguard-cli again
9. Once the .maFile is safely in 1Password, remove steamguard-cli (this also deletes the local .maFile) by running this in PowerShell:
Remove-Item "$env:USERPROFILE\steamguard", "$env:APPDATA\steamguard-cli" -Recurse -Force
From now on when you log in to Steam, choose Enter a code instead and use the one-time password from 1Password.
Screenshots:
1Password release-channel setting:
Processing img iruc3qtztm0i1...
What the setup looks like in PowerShell:
Processing img bub6s5mhvm0i1...
The finished Steam card in 1Password:
Processing img xz71fhwtzm0i1...
The same item in edit mode, showing where everything goes:
Processing img 2c0bi8pdzm0i1...
Logging in to Steam with the code:
Processing img 3kbqne8cxm0i1...