Xtcworld

Scaling to Billions: How OpenAI Built a Global Identity Infrastructure with Ory

OpenAI scaled to 900M weekly users using Ory's identity platform. Ory enabled horizontal scaling, low latency, self-hosting, and security, avoiding vendor lock-in.

Xtcworld · 2026-05-04 22:55:06 · AI & Machine Learning

Introduction

Reaching 900 million weekly active users is a feat rarely seen in the software world. To put that number into perspective, OpenAI's user base now rivals the population of an entire continent. Each of those users interacts with a high-compute, stateful artificial intelligence environment, making the underlying identity and access management (IAM) system far more than just a login box. It becomes the gatekeeper of system stability, data privacy, and global accessibility.

Scaling to Billions: How OpenAI Built a Global Identity Infrastructure with Ory
Source: thenewstack.io

When OpenAI launched ChatGPT, they didn't merely release a product; they triggered a worldwide shift in computing. To survive what insiders call a "success disaster," the company needed an identity layer that could scale horizontally without friction, maintain uncompromising security, and offer flexibility and control across multiple deployment options.

Instead of choosing a traditional, monolithic identity-as-a-service provider, OpenAI leveraged Ory to build a bespoke, hardened, and infinitely scalable identity system. This article explores the challenges they faced, the solution they adopted, and the results that followed.

The Unprecedented Challenge of ChatGPT's Growth

The launch of ChatGPT was the fastest-growing consumer application in history. Within just five days, it reached one million users. This explosive growth brought unique challenges that conventional IAM solutions were not designed to handle.

The "Success Disaster" Explained

Benjamin Billings, Engineering Manager at OpenAI, described the situation as a "success disaster." The term captures the paradox of a product that is so successful it threatens to overwhelm its own infrastructure. From around 200 million weekly active users, OpenAI saw a surge to over 400 million within a few months—and eventually to 900 million. Each new user required secure authentication, session management, and data isolation.

Why Traditional IAM Falls Short

Traditional identity and access management systems struggle with several critical issues at this scale:

  • Database bottlenecks: Most identity providers rely on rigid database schemas that don't work well with global, multi-region distribution.
  • Latency problems: With 900 million users logging in, even a 100-millisecond delay in token validation can translate into massive infrastructure costs and a poor user experience.
  • Limited control: OpenAI needed the ability to run A/B tests and observe user behavior to optimize performance for its audience.
  • Deployment inflexibility: The company required a system that allowed self-hosting in an environment of their choosing.

Choosing the Right Identity Partner: Ory's Role

OpenAI decided against off-the-shelf, monolithic IAM solutions. Instead, they partnered with Ory to build a custom identity layer that met their exact requirements.

A Standards-Based, Agile Approach

By adopting a standards-based IAM approach, OpenAI avoided vendor lock-in and gained the ability to own their identity processes, data, and success. As Billings stated, "OpenAI wanted a partner that could help enable our vision for owning our identity processes, data, and success. We have a lot of partners, and Ory is one of our best." This quote underscores the level of trust and collaboration between the two organizations.

Scaling to Billions: How OpenAI Built a Global Identity Infrastructure with Ory
Source: thenewstack.io

Key Requirements: Scalability, Latency, Control, Flexibility

Ory's platform addressed OpenAI's four main pain points:

  1. Scalability: Ory's architecture supports horizontal scaling across global regions, eliminating database bottlenecks.
  2. Low latency: With optimized token validation and caching, Ory reduced authentication delays to negligible levels.
  3. Full control: OpenAI could conduct detailed A/B tests and performance monitoring, fine-tuning the user experience.
  4. Deployment flexibility: Ory allowed self-hosting so OpenAI could maintain full control over their infrastructure and data.

Results: Infrastructure for the Next Billion

Following the implementation of Ory, OpenAI successfully navigated the "success disaster." The identity system handled the explosive growth from 200 million to over 400 million weekly active users within just a few months, and eventually scaled to 900 million without major incidents.

The move to Ory resolved the "SaaS paradox" of needing enterprise-grade security without the rigid constraints of a monolithic provider. OpenAI achieved a frictionless, globally scalable user experience that remained under their control. The infrastructure proved robust enough to support not only existing users but also the next billion expected in the coming years.

Resolving the SaaS Paradox

Enterprise-grade security typically comes with trade-offs in flexibility and speed. Ory's solution allowed OpenAI to have both: strong authentication, authorization, and data protection, alongside the agility to iterate rapidly and deploy globally. This balance is critical for a platform that must serve users across different regions with varying data privacy regulations.

Conclusion

OpenAI's journey to 900 million weekly active users demonstrates that identity and access management is not a backend afterthought but a core strategic component of hypergrowth. By partnering with Ory, they built an identity layer that scales horizontally, minimizes latency, offers full control, and deploys flexibly. As the user base continues to grow, this foundation will be essential for handling the demands of the next generation of AI-powered applications.

Recommended