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

SpiceDBOpenFGA
Origin and stewardCreated by AuthZedCreated at Auth0; CNCF incubating project with Okta as a core maintainer
LicenseApache 2.0Apache 2.0
ConsistencyZedTokens: "at least as fresh" and exact-snapshot reads, per requestTwo modes: minimize latency or higher consistency; no zookie-style token yet
Change streamWatch API (streaming)ReadChanges (polled with a continuation token)
Reverse lookupsLookupResources and LookupSubjects, streamed with a cursorListObjects and ListUsers, limited by default to 1,000 results or 3 seconds
Context-dependent rulesCaveats; missing context returns a third answer, CONDITIONALConditions, plus contextual tuples supplied per request
DatastoresPostgreSQL, CockroachDB, Google Cloud Spanner, MySQLPostgreSQL, MySQL, SQLite (in-memory by default)
Serving modelCluster nodes share work through a consistent-hash ring, as Zanzibar doesStateless servers over one database, with per-node caches
Precomputed indexAuthZed Materialize, inspired by Zanzibar's LeopardNone documented
Managed optionsAuthZed Cloud, AuthZed Dedicated, SpiceDB EnterpriseAuth0 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?

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

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.