To install saml2aws on Windows, open an administrator PowerShell or Command Prompt, run choco install saml2aws, then saml2aws --version. That is the Windows method the saml2aws README documents. It installs v2.36.19, still the newest release as of October 2026 (published 13 March 2025), so the second command should print 2.36.19.
choco install saml2aws
saml2aws --version
No Chocolatey? winget, Scoop, an MSI and a ZIP are also available. The Windows files are amd64 (x64), arm64 and armv6, which is 32-bit Arm; there is no 32-bit x86 build.
Table of Contents
Which way to install saml2aws on Windows
All five routes currently deliver v2.36.19. The project’s release workflow publishes the MSI and the Chocolatey package itself; the winget and Scoop manifests live in their own repositories and follow the releases. I’d use Chocolatey if you already have it and winget if you don’t, since winget ships with Windows 11. Without admin rights, use Scoop or the ZIP.
| Method | Command or file | Admin rights? | Build and PATH |
|---|---|---|---|
| Chocolatey | choco install saml2aws |
Yes by default: use an administrative shell | x64. Chocolatey’s bin folder is already on PATH |
| winget | winget install --id Versent.saml2aws -e |
Depends on the installer winget picks | x64 MSI, or ZIP on Arm64. The MSI or winget’s portable link sets PATH |
| Scoop | scoop install saml2aws |
No | ZIP, x64 or Arm64. Scoop’s shim puts it on PATH |
| MSI | saml2aws_2.36.19_windows_amd64.msi |
Yes | x64 only. Installs to C:\Program Files\Versent and appends that folder to the system PATH |
| ZIP | saml2aws_2.36.19_windows_amd64.zip or _arm64.zip |
No | x64 or Arm64. You add the folder to PATH |
Install saml2aws from the MSI or ZIP
Download the file for your CPU from the GitHub releases page: amd64 for a normal PC, arm64 for Windows on Arm. Run the MSI, then open a new terminal. The ZIP holds saml2aws.exe, a README and the license, with no installer, so extract it and run the program from a terminal. To check a download, compare Get-FileHash .\saml2aws_2.36.19_windows_amd64.zip with the matching line in saml2aws_2.36.19_checksums.txt on the release page; that file lists the ZIPs, not the MSI.
Add saml2aws to PATH on Windows
Only the ZIP needs this. Put saml2aws.exe in a permanent folder, such as bin\saml2aws in your user profile, and add that folder to your user PATH in PowerShell:
$dir = "$env:USERPROFILE\bin\saml2aws"
$path = [Environment]::GetEnvironmentVariable('Path', 'User')
[Environment]::SetEnvironmentVariable('Path', "$path;$dir", 'User')
$Env:Path += ";$dir"
The last line updates the window you are in. Terminal windows that were already open keep the PATH they started with, so open a new one for those. The graphical route is Advanced System Settings, then Environment Variables.
When the folder is not on PATH, Command Prompt says 'saml2aws' is not recognized as an internal or external command, operable program or batch file. Windows PowerShell says The term 'saml2aws' is not recognized as the name of a cmdlet, function, script file, or operable program. (PowerShell 7.2 and later: “as a name of a cmdlet, function, script file, or executable program”). Check that the folder holds saml2aws.exe, then open a new terminal.
Configure saml2aws and log in
saml2aws configure sets up an identity provider account, not an AWS one. It asks for the provider, the MFA method when the provider offers a choice, the AWS profile to write credentials to, your IdP URL, your username and your password. There is no access key or output format prompt, and region is the -r / --region flag. Every answer is also a flag, so on one line this works in PowerShell and Command Prompt alike:
saml2aws configure -a corp-prod --idp-provider=Okta --mfa=Auto --url=https://example.okta.com/home/amazon_aws/abc123/272 --username=jane@example.com --profile=prod --region=eu-west-1 --session-duration=3600 --skip-prompt
Then log in and test the credentials with the AWS CLI (install guide):
saml2aws login -a corp-prod
aws sts get-caller-identity --profile prod
-a (--idp-account) picks the stored IdP account and defaults to default; -p (--profile) picks the AWS profile that receives the temporary credentials. If your provider needs an MFA code, you are prompted for it at login.
Account settings are saved in %USERPROFILE%\.saml2aws (under %HOME% instead if that variable is set; override with --config or SAML2AWS_CONFIGFILE) and temporary credentials in %USERPROFILE%\.aws\credentials. Your IdP password is in neither file: on Windows it goes to Windows Credential Manager. --disable-keychain turns that off, which also turns off Okta sessions and remembered MFA devices, so you retype the password at every login.
Don’t use -s / --skip-verify to get past a certificate error: it stops verifying the identity provider’s certificate on the connection that carries your password and SAML assertion. Behind a proxy that re-signs TLS, install your organization’s root certificate in the Windows certificate store instead; Go programs such as saml2aws use that store on Windows. What each of the other flags does to your security posture is worth reading before you script this into a stored login profile.
I put the release-asset and configure checks from this page in a script (Bash, curl and Python 3; it skips the Windows-only steps): /verify/how-to-install-saml2aws-windows.sh.
Is saml2aws still maintained?
It has stalled rather than been archived. People still file issues and pull requests, but v2.36.19 is the latest release, the last commit on master is from 13 May 2025, and no pull request has been merged since. On 1 October 2026 there were 63 open pull requests and 232 open issues. In September 2026 a contributor commented on a pull request that they had left Versent and no longer had merge rights.
One failure matters if you use the Browser provider. The README has you download a Playwright driver on first login with --download-browser-driver, and the addresses v2.36.19 downloads it from returned 404 when I checked on 1 October 2026, so a machine without a cached driver gets Error authenticating to IdP.: could not install driver. It is tracked in issue #1531, with fixes waiting in open pull requests such as #1532. Where SAML is the only option I’d still use saml2aws, but test your provider’s login first.
Use aws configure sso if your company runs IAM Identity Center
saml2aws assumes your identity provider federates with AWS through a SAML provider in IAM. If you sign in through the AWS access portal (IAM Identity Center) instead, you don’t need it: run aws configure sso, then aws sso login --profile your-profile. AWS documents the steps in Configuring IAM Identity Center authentication with the AWS CLI.