Identity and Access Management · head to head
Amazon Cognito vs Keycloak

Amazon Cognito
Identity and Access Management
AWS customer identity service for sign-in, federation and access tokens, priced per active user
- From
- Free
- Free plan
- Yes

Keycloak
Developer Tools
Open-source identity and access management server.
- From
- Free
- Free plan
- Yes
The short version
- Keycloak is an open-source IAM platform supporting OpenID Connect, OAuth 2.
- Keycloak is free; Amazon Cognito starts at $0.015/mo.
- Where Amazon Cognito falls short: SMS and email delivery are billed separately through SNS and SES.
- Where Keycloak falls short: requires self-hosted deployment and operational expertise to install, configure and maintain.
How do Amazon Cognito and Keycloak differ?
Amazon Cognito and Keycloak differ on pricing model (Usage-based against Open-source), platforms and category. Only the attributes on which Amazon Cognito and Keycloak actually diverge.
| Attribute | Amazon Cognito | Keycloak |
|---|---|---|
| Pricing model | Usage-based | Open-source |
| Platforms | Web | Self-hosted, Linux, Windows, API |
| Category | Identity and Access Management | Developer Tools |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 9 appear only for Amazon Cognito. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Amazon Cognito
- User pools with sign-up and sign-in
- Social, SAML and OIDC federation
- Passkeys and one-time passwords
- OAuth 2.0 machine-to-machine tokens
- Managed Login with UI editor
- Adaptive authentication on Plus
- Compromised credential detection
- Multi-Region replication
Only in Keycloak
Nothing recorded that Amazon Cognito does not also cover.
What is each one used for?
Amazon Cognito is most often brought in for customer sign-in for AWS-hosted apps; Keycloak for open-source projects and communities requiring free IAM without licensing costs. The jobs each tool is most often brought in to do.
Amazon Cognito
- Customer sign-in for AWS-hosted appsnot Keycloak
- Federating enterprise SAML and OIDC identity providersnot Keycloak
- Machine-to-machine tokens for microservicesnot Keycloak
- Passwordless login with passkeysnot Keycloak
- Authenticating AI agents on AWSnot Keycloak
Keycloak
- Organisations requiring self-hosted identity infrastructure for compliance or data residencynot Amazon Cognito
- Companies with existing LDAP/Active Directory systems needing federated authenticationnot Amazon Cognito
- Open-source projects and communities requiring free IAM without licensing costsnot Amazon Cognito
- Enterprises building custom identity workflows requiring fine-grained authorisationnot Amazon Cognito
- Teams with sufficient operational expertise to manage infrastructurenot Amazon Cognito
Where do Amazon Cognito and Keycloak fall short?
Amazon Cognito's most cited limit: SMS and email delivery are billed separately through SNS and SES. Keycloak's: requires self-hosted deployment and operational expertise to install, configure and maintain. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Amazon Cognito
- SMS and email delivery are billed separately through SNS and SES
- Plus tier has no free tier, and advanced security needs it or an add-on
- Federated SAML and OIDC users have only 50 free MAUs
- Best suited to teams already building on AWS
Keycloak
- Requires self-hosted deployment and operational expertise to install, configure and maintain
- No managed cloud option provided by Red Hat; organisations must operate infrastructure themselves or use third-party distributions
- Clustering and high-availability configurations require additional operational knowledge
- Community support only; commercial support requires third-party vendors or distributions
How much do Amazon Cognito and Keycloak cost?
Amazon Cognito has a free plan, with paid plans from $0.015/mo; Keycloak is free to use. Plan by plan below, from each vendor's own pricing page.
Amazon Cognito
Free- Essentials$0.015
- Managed Login
- Passwordless sign-in
- 10,000 free MAUs
- Plus$0.02
- Threat protection
- Adaptive authentication
- No free tier
Keycloak
Free- Open-sourceFree
- Full platform functionality
- Self-hosted deployment
- Community support
Which should you pick?
Choose Amazon Cognito if
- You need user pools with sign-up and sign-in.
- You want to start without paying.
- You also want social, saml and oidc federation.
Choose Keycloak if
- You want to start without paying.
- You work on Self-hosted, Linux, Windows, API.
Questions people ask
- Is Amazon Cognito or Keycloak better?
- It depends on the job. Amazon Cognito fits customer sign-in for AWS-hosted apps; Keycloak fits organisations requiring self-hosted identity infrastructure for compliance or data residency. Amazon Cognito starts at Free and Keycloak at Free.
- Which is cheaper, Amazon Cognito or Keycloak?
- Amazon Cognito starts at Free and Keycloak at Free.
- Does Amazon Cognito or Keycloak run on more platforms?
- Amazon Cognito runs on Web. Keycloak runs on Self-hosted, Linux, Windows, API.
- Can I use Amazon Cognito for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Amazon Cognito best used for?
- Amazon Cognito is most often used for customer sign-in for aws-hosted apps, federating enterprise saml and oidc identity providers, machine-to-machine tokens for microservices, passwordless login with passkeys. Of those, customer sign-in for aws-hosted apps and federating enterprise saml and oidc identity providers are not what Keycloak is typically brought in for.
- What can Amazon Cognito do that Keycloak cannot?
- Amazon Cognito covers User pools with sign-up and sign-in, Social, SAML and OIDC federation, Passkeys and one-time passwords, OAuth 2.0 machine-to-machine tokens.
Answered from the vendors’ own pages
Amazon Cognito: How much does Amazon Cognito cost?
Essentials is $0.015 per monthly active user and Plus is $0.020, after the free tier. Lite uses tiered pricing starting around $0.0055.
SourceKeycloak: What protocols does Keycloak support?
Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0 protocols for authentication and authorisation.
SourceAmazon Cognito: Is there a free tier?
Lite and Essentials include 10,000 free MAUs per account or AWS organisation. Plus has no free tier.
SourceKeycloak: Can Keycloak integrate with existing user directories?
Yes. Keycloak supports user federation with LDAP and Active Directory systems, allowing organisations to leverage existing user directories.
SourceAmazon Cognito: What sign-in methods are supported?
Passwords, social login, SAML and OIDC federation, and passwordless sign-in with passkeys or SMS and email one-time passwords.
SourceKeycloak: Is Keycloak free?
Yes. Keycloak is fully open-source and free to deploy and use. No licensing fees are required.
SourceAmazon Cognito: Are SMS messages included?
No. SMS and email messages for verification and MFA are billed separately through Amazon SNS and Amazon SES.
SourceRelated pages
More on Amazon Cognito
Other head to heads
- Amazon Cognito vs Hanko
- Amazon Cognito vs Auth0
- Amazon Cognito vs FusionAuth
- Amazon Cognito vs Silverfort
- Amazon Cognito vs OneLogin
- Amazon Cognito vs Zitadel
- Amazon Cognito vs Kinde
- Amazon Cognito vs ManageEngine AD360
- Amazon Cognito vs BeyondTrust
- Amazon Cognito vs SailPoint
- Amazon Cognito vs authentik
- Amazon Cognito vs Beyond Identity
- Amazon Cognito vs SuperTokens
- Amazon Cognito vs Authelia
- Amazon Cognito vs Authy
- Amazon Cognito vs Google Cloud Identity
- Amazon Cognito vs IBM Verify
- Amazon Cognito vs SailPoint IdentityIQ
- Amazon Cognito vs Jenkins
- Amazon Cognito vs Soketi
- Amazon Cognito vs Atlantis
- Amazon Cognito vs Kubernetes
- Amazon Cognito vs GitLab
- Amazon Cognito vs Buildkite
- Amazon Cognito vs Coder
- Amazon Cognito vs Depot
- Amazon Cognito vs Bitbucket
- Amazon Cognito vs Losant
- Amazon Cognito vs Ansible
- Amazon Cognito vs Vite
- Amazon Cognito vs ESLint
- Amazon Cognito vs Git
- Amazon Cognito vs GNAT Pro
- Amazon Cognito vs JetBrains Rider
- Amazon Cognito vs Moonrepo
- Amazon Cognito vs Okteto
- Keycloak vs Hanko
- Keycloak vs Auth0
- Keycloak vs FusionAuth
- Keycloak vs Silverfort
- Keycloak vs OneLogin
- Keycloak vs Zitadel
- Keycloak vs Kinde
- Keycloak vs ManageEngine AD360
- Keycloak vs BeyondTrust
- Keycloak vs SailPoint
- Keycloak vs authentik
- Keycloak vs Beyond Identity
- Keycloak vs SuperTokens
- Keycloak vs Authelia
- Keycloak vs Authy
- Keycloak vs Google Cloud Identity
- Keycloak vs IBM Verify
- Keycloak vs SailPoint IdentityIQ
- Keycloak vs Jenkins
- Keycloak vs Soketi
- Keycloak vs Atlantis
- Keycloak vs Kubernetes
- Keycloak vs GitLab
- Keycloak vs Buildkite
- Keycloak vs Coder
- Keycloak vs Depot
- Keycloak vs Bitbucket
- Keycloak vs Losant
- Keycloak vs Ansible
- Keycloak vs Vite
- Keycloak vs ESLint
- Keycloak vs Git
- Keycloak vs GNAT Pro
- Keycloak vs JetBrains Rider
- Keycloak vs Moonrepo
- Keycloak vs Okteto
