Softwr

Cybersecurity · head to head

Ory Kratos vs Spring Cloud Gateway

Ory Kratos logo

Ory Kratos

Cybersecurity

Headless identity and user management API

From
Free
Rated
-
Spring Cloud Gateway logo

Spring Cloud Gateway

APIs

API gateway built on Project Reactor for building microservices

From
Free
Rated
-

The short version

  • Each has a real cost: Ory Kratos headless means you build every screen, which is significant work compared with a hosted login page; Spring Cloud Gateway released under the Apache 2.0 license, free and open source with no commercial tier
  • They diverge on capability: Ory Kratos covers Headless API, Spring Cloud Gateway covers Routing.
  • Prices and features above were last checked on 30 August 2026.

Where they differ

Only the attributes on which Ory Kratos and Spring Cloud Gateway actually diverge.

Attributes where Ory Kratos and Spring Cloud Gateway differ
AttributeOry KratosSpring Cloud Gateway
Pricing modelOpen-source self-hosted, with a paid managed networkopen-source
PlatformsLinux, Docker, Kubernetes, Self-hostedJava, Spring Boot
CategoryCybersecurityAPIs
FoundedUnknown1998

Identical on both: starting price (Free), free tier (Yes), user rating (Not yet rated).

What each one covers

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 Ory Kratos

  • Headless API
  • Self-service flows
  • Multi-factor authentication
  • Pluggable identity schemas

Only in Spring Cloud Gateway

  • Routing
  • Path Rewriting
  • Circuit Breaker
  • Spring Boot
  • Spring Security
  • Spring Cloud
  • Java support
  • Spring Boot support

What people use each for

The jobs each tool is most often brought in to do.

Ory Kratos

  • Products needing complete control over the look and flow of authenticationnot Spring Cloud Gateway
  • Applications that must not hand user identity data to a third partynot Spring Cloud Gateway
  • Teams building identity as infrastructure across several servicesnot Spring Cloud Gateway

Spring Cloud Gateway

  • API Developmentnot Ory Kratos
  • API Gatewaynot Ory Kratos
  • API Testingnot Ory Kratos
  • API Documentationnot Ory Kratos
  • Microservicesnot Ory Kratos

Where each one falls short

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Ory Kratos

  • Headless means you build every screen, which is significant work compared with a hosted login page
  • More moving parts than a monolithic IAM: Kratos handles identity, and OAuth2 needs Ory Hydra alongside
  • Documentation assumes real familiarity with identity concepts and is not a gentle introduction
  • Self-hosting identity carries the security and availability burden that hosted providers absorb

Spring Cloud Gateway

  • Released under the Apache 2.0 license, free and open source with no commercial tier

Pricing, plan by plan

Ory Kratos

Free
  • Self-hostedFree
    • Full identity server
    • All flows
    • Community support

Spring Cloud Gateway

Free
  • Open SourceFree
    • Core Spring Cloud Gateway
    • Community support

Which should you pick?

Choose Ory Kratos if

  • You need headless api.
  • You want to start without paying.
  • You work on Linux, Docker, Kubernetes, Self-hosted.
  • You also want self-service flows.

Choose Spring Cloud Gateway if

  • You need routing.
  • You want to start without paying.
  • You work on Java, Spring Boot.
  • You also want path rewriting.

Questions people ask

Is Ory Kratos or Spring Cloud Gateway better?
Neither clearly leads. Ory Kratos starts at Free and Spring Cloud Gateway at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Ory Kratos or Spring Cloud Gateway?
Ory Kratos starts at Free and Spring Cloud Gateway at Free.
Does Ory Kratos or Spring Cloud Gateway run on more platforms?
Ory Kratos runs on Linux, Docker, Kubernetes, Self-hosted. Spring Cloud Gateway runs on Java, Spring Boot.
Can I use Ory Kratos for free?
Both have a free tier, so you can try either at no cost before committing.
What is Ory Kratos best used for?
Ory Kratos is most often used for products needing complete control over the look and flow of authentication, applications that must not hand user identity data to a third party, teams building identity as infrastructure across several services. Of those, products needing complete control over the look and flow of authentication and applications that must not hand user identity data to a third party are not what Spring Cloud Gateway is typically brought in for.
What can Ory Kratos do that Spring Cloud Gateway cannot?
Ory Kratos covers Headless API, Self-service flows, Multi-factor authentication, Pluggable identity schemas. Spring Cloud Gateway covers Routing, Path Rewriting, Circuit Breaker, Spring Boot.

Answered from the vendors’ own pages

Ory Kratos: Is Ory Kratos free?

Yes, open source and free to self-host. Ory Network is a paid managed service.

Spring Cloud Gateway: Is Spring Cloud Gateway free?

Yes, Spring Cloud Gateway is free and open-source software. It is part of the Spring ecosystem and available through GitHub repositories with open-source dependencies like spring-cloud-starter-gateway-server-webflux and spring-cloud-starter-gateway-server-webmvc.

Source
Ory Kratos: What does headless mean here?

Kratos provides identity flows as APIs and no user interface. You build the login, registration and recovery screens yourself.

Spring Cloud Gateway: What enterprise support is available for Spring Cloud Gateway?

Tanzu Spring provides optional enterprise support including Day 0 access to security patches for organizations requiring guaranteed support, but specific pricing is not published on the Spring Cloud Gateway project page.

Source
Ory Kratos: Does Kratos do OAuth2?

No. Kratos handles user identity; OAuth2 and OpenID Connect provider functionality is Ory Hydra, a separate component.

Share

Related pages

Other head to heads