OpenAI uses open source Ory to authenticate over 400M weekly active users
Powering OpenAI's OAuth2 infrastructure - discover how Ory Hydra scaled to web-scale with reliable, straightforward technology.

When I worked on open-source authentication as a student, I never imagined it powering web-scale services like chatgpt.com.
Ory Hydra OAuth2 server initially began as a Go-based alternative to Keycloak, avoiding complex JVM dependencies. After releasing the first version in 2015, we quickly saw that the initial design wasn't flexible enough. Building a full Customer Identity and Access Management (CIAM) system from scratch was challenging, prompting a new approach.
In late 2016, we shifted our focus to creating Ory Fosite, a library for building OpenID Connect-compliant OAuth2 servers. This became the foundation of today's Ory Hydra. Recognizing that comprehensive user management would take years—as later confirmed by our work on Ory Kratos identity management—we simplified Ory Hydra by removing user management and developing the Login and Consent flow instead. This allowed developers to integrate OAuth2 and OpenID Connect seamlessly into their existing infrastructure without migrating users.
Today's Ory Hydra leverages proven, reliable technologies—PostgreSQL, MySQL, and compiled languages—with clearly defined domain boundaries and a straightforward, scalable design.
We've consistently optimized Ory Hydra over time. By storing more data client-side, we achieved sustained performance of 800 auth code flows per second on standard PostgreSQL. Working closely with CockroachDB and implementing enterprise-level optimizations, we've reached benchmarks of thousands+ of auth flows per second, sufficient for the world's busiest websites.
We're proud to announce today that OpenAI's OAuth2 infrastructure runs on Ory Hydra. What started with engineering curiosity and a commitment to simplifying authentication has grown into the world's leading open-source OAuth2 server, driven by practical engineering, continuous improvement, and strong community involvement.
Our success highlights the power of choosing clear, scalable technology, reducing complexity, and continually optimizing performance.
Check out our OpenAI case study. Interested in exploring how Ory Hydra can support your project? Get in touch.
Further reading

Ory and Trevonix Partner to Accelerate Enterprise Identity Modernization and AI Security
Trevonix and Ory collaborate to support enterprises with identity modernization and agentic AI security

Most authentication proves someone holds the right credential, not which device they're holding it on. Device binding (also called device authentication) closes that gap: a private key generated in a phone's secure hardware, attested by Apple or Google, and used for step-up approval or full passwordless login via PIN or biometrics.

Regulations require user data to stay within borders, but most CIAM and B2B platforms can't move it without rebuilding accounts. Ory can.

Discover how Cloudflare used Ory Hydra to scale OAuth for all users, slashing API response times by 45% and memory use by 40% with zero user downtime.


