This solution may be of particular use if you already use the [steamguard-cli](https://github.com/dyc3/steamguard-cli) your PC. It avoids the need for a rooted Android device to extract secrets from.
1. First off you need to open your steamguard-cli file directory (usually `~/.config/steamguard-cli/maFiles/`), and find the *.maFile inside.
2. Then you can either open it with your favourite text editor and copy yourTOTPSecret in `uri` field (looks like `otpauth://totp/Steam:{yourUserName}?secret{yourTOTPSecret}&issuer=Steam`) and send it to your phone, or send the file to your phone first than copy yourTOTPSecret afterwords.
## Method 1, manual
*Alternatively, you could copy the whole `uri` field and generate a qr code locally, for example on linux by running `qr "otpauth://totp/Steam:{yourUserName}?secret{yourTOTPSecret}&issuer=Steam"`, scanning the qr code on Aegis, pressing advanced, setting the type to steam and pressing save. If you did it this way, you do not need to follow the rest of the guide.*
1. First off you need to open your steamguard-cli file directory (usually `~/.config/steamguard-cli/maFiles/`), and find the *.maFile inside.
DO **NOT** USE AN ONLINE QR CODE GENERATOR, IF YOU DO THEY WOULD HAVE ACCESS TO YOUR STEAM 2FA CODE
2. Then you can send the file to your phone, open it with your favourite text editor on your phone and copy yourTOTPSecret in `uri` field (looks like `otpauth://totp/Steam:{yourUserName}?secret{yourTOTPSecret}&issuer=Steam`).
3. Open Aegis and press the '+' button and select enter manually
@ -14,4 +12,20 @@ DO **NOT** USE AN ONLINE QR CODE GENERATOR, IF YOU DO THEY WOULD HAVE ACCESS TO
5. Fill out the rest of the non-advanced fields as you wish, and press save when you are finished
## Method 2, QR Code
1. First off you need to open your steamguard-cli file directory (usually `~/.config/steamguard-cli/maFiles/`), and find the *.maFile inside.
2. Then you can open the file with your favourite text editor and copy the `uri` field (looks like `otpauth://totp/Steam:{yourUserName}?secret{yourTOTPSecret}&issuer=Steam`)
3. Create a qr code of the uri field on your pc (you can run `qrencode "otpauth://totp/Steam:{yourUserName}?secret{yourTOTPSecret}&issuer=Steam" -o SteamTOTP.png` if you are on linux
DO **NOT** USE AN ONLINE QR CODE GENERATOR, IF YOU DO THEY WOULD HAVE ACCESS TO YOUR STEAM 2FA CODE
4. Open the qr code (`SteamTOTP.png` if you used the method above) by double or single clicking on the file in your file manager
5. Open Aegis, press the '+' button, select scan qr code, and scan the qr code
6. Once scanned, press Advanced, press type, select steam and press save
You should now have your steam code inside Aegis as well!