COMPARISON
SpiceDB vs. OpenFGA: An Honest Comparison
SpiceDB and OpenFGA are the two most widely used open-source, Zanzibar-inspired authorization engines. Both are production-grade and Apache 2.0 licensed. They differ in ways that matter once you build lists, handle revocations or plan for scale.
Last reviewed November 2026. Sources are listed at the end.
Short answer
Choose SpiceDB if you need per-request consistency guarantees (Zanzibar's zookies, called ZedTokens), a change stream, large or deeply nested permission graphs, or a Leopard-style precomputed index, with commercial support from the team that builds it. Choose OpenFGA if foundation governance under the CNCF matters most to you, or if you already rely heavily on Okta and Auth0.
At a glance
| SpiceDB | OpenFGA | |
|---|---|---|
| Origin and steward | Created by AuthZed | Created at Auth0; CNCF incubating project with Okta as a core maintainer |
| License | Apache 2.0 | Apache 2.0 |
| Consistency | ZedTokens: "at least as fresh" and exact-snapshot reads, per request | Two modes: minimize latency or higher consistency; no zookie-style token yet |
| Change stream | Watch API (streaming) | ReadChanges (polled with a continuation token) |
| Reverse lookups | LookupResources and LookupSubjects, streamed with a cursor | ListObjects and ListUsers, limited by default to 1,000 results or 3 seconds |
| Context-dependent rules | Caveats; missing context returns a third answer, CONDITIONAL | Conditions, plus contextual tuples supplied per request |
| Datastores | PostgreSQL, CockroachDB, Google Cloud Spanner, MySQL | PostgreSQL, MySQL, SQLite (in-memory by default) |
| Serving model | Cluster nodes share work through a consistent-hash ring, as Zanzibar does | Stateless servers over one database, with per-node caches |
| Precomputed index | AuthZed Materialize, inspired by Zanzibar's Leopard | None documented |
| Managed options | AuthZed Cloud, AuthZed Dedicated, SpiceDB Enterprise | Auth0 FGA (Okta FGA) |
Consistency: the biggest difference
Zanzibar's answer to the "new enemy" problem, where someone who was just removed still sees new content, is a token returned by every write. Later checks can demand an answer at least as fresh as that write.
SpiceDB implements this directly. Every write returns a ZedToken, and each request chooses its consistency: fast cached reads by default, "at least as fresh" as a given token, an exact snapshot, or fully consistent. You pay for freshness only on the requests that need it. See it in a demo.
OpenFGA's documentation is upfront that zookies are not implemented yet. It offers a choice between minimizing latency and higher consistency. With caching off, which is the default, reads go straight to the database; turning caching on improves speed and introduces a configurable staleness window, which you close by asking for higher consistency on the requests that matter.
Schema and modeling
Both express the Zanzibar model of relations, usersets and inheritance across objects, and both are readable. The main structural difference: SpiceDB separates relations, which you store, from permissions, which are computed and can never be written. OpenFGA uses a single define keyword, so a relation can be both written and computed. Some teams prefer SpiceDB's stricter split because it makes it impossible to grant a computed permission by accident; others like OpenFGA's flexibility.
For context-dependent rules, SpiceDB has caveats and OpenFGA has conditions. When a request leaves out context a caveat needs, SpiceDB returns a third answer, CONDITIONAL, and says which fields are missing; OpenFGA returns an error. OpenFGA's contextual tuples, facts supplied with a single request and never stored, are a genuinely useful feature for things your gateway knows at request time.
Lists, search and AI retrieval
Most products need to show "everything this person can see", not just answer yes or no. SpiceDB's LookupResources streams results with a cursor; AuthZed's guidance is that it becomes heavy beyond roughly ten thousand results, which is where Materialize's precomputed permission sets take over for search indexes, databases and vector stores. OpenFGA's ListObjects stops at 1,000 results or 3 seconds by default, which suits small collections. For both, very large lists are best served by an index kept current from a change stream, and only SpiceDB offers a streaming Watch API for that.
Scale and operations
SpiceDB was designed after Zanzibar's serving model: nodes split checks into sub-problems and route them across the cluster so each one is cached once. It runs on Spanner and CockroachDB for multi-region deployments, and published tests show one million checks per second against one hundred billion relationships at a 5.76 ms P95. Read how.
OpenFGA's stateless servers over a single SQL database are simple to run and scale well for many workloads. Independent reviewers note that SpiceDB asks for a little more operational knowledge to self-host, which is one reason many teams choose AuthZed's managed services.
Governance and commercial support
OpenFGA is the only Zanzibar-style engine owned by a foundation, which reassures organizations that weigh vendor neutrality heavily. SpiceDB is developed by AuthZed, which offers it as AuthZed Cloud, the single-tenant AuthZed Dedicated and self-hosted SpiceDB Enterprise, with support from the engineers who build it. Customers with published stories include OpenAI, Zoom, Turo and HackerRank.
Which should you choose?
- SpiceDB if revocations must take effect on the very next request, your permission graph is large or deeply nested, you need a change stream or precomputed permissions for search and AI, or you want a managed service and support from the engine's authors.
- OpenFGA if CNCF governance is a requirement, your lists are small, you want the simplest possible self-hosted footprint, or you are standardizing on Okta and Auth0.
The best test is your own model: try your schema in the SpiceDB Playground and in OpenFGA's playground, and compare what each returns.
Frequently asked questions
Are SpiceDB and OpenFGA both based on Google Zanzibar?
Yes. Both reimplement ideas from Google's 2019 Zanzibar paper. SpiceDB follows the paper's architecture more closely, including consistency tokens, a Watch API, Spanner support and a Leopard-inspired index.
Can I migrate from OpenFGA to SpiceDB?
Yes. Both store relationship tuples, so data maps across directly; the model is rewritten in SpiceDB's schema language, separating stored relations from computed permissions.
Which one is faster?
It depends on your model, data shape and consistency choices. SpiceDB has published results of one million checks per second on one hundred billion relationships; the most reliable answer for you is a test with your own schema and traffic.
Do both have managed services?
Yes. SpiceDB is available as AuthZed Cloud and AuthZed Dedicated; OpenFGA is offered by Okta as Auth0 FGA.
Sources
- OpenFGA: consistency and relationship queries; CNCF incubation announcement.
- SpiceDB: consistency, caveats and querying data.
- Zanzibar Implementations Compared (Late 2026), an independent hands-on comparison.
- What is the closest commercial implementation of Google Zanzibar?
SpiceDB Field Resources is maintained by AuthZed, the company that created SpiceDB. This page aims to describe both projects accurately from their public documentation; corrections are welcome at info@tryspicedb.com.