SpiceDB

Open-source, Google Zanzibar-inspired fine-grained authorization system. SpiceDB stores permission relationships in a schema and evaluates permission checks by traversing relationship graphs. Implements consistent, scalable permissions checks at the tuple level — enabling permissions like 'user:alice can view document:doc123 because she's in group:engineering which has viewer access to project:backend'. Built by AuthZed.

Evaluated Mar 06, 2026 (0d ago) v1.34+
Homepage ↗ Repo ↗ Developer Tools authorization permissions zanzibar rbac abac fine-grained open-source graph
⚙ Agent Friendliness
63
/ 100
Can an agent use this?
🔒 Security
92
/ 100
Is it safe for agents?
⚡ Reliability
87
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
85
Error Messages
85
Auth Simplicity
82
Rate Limits
82

🔒 Security

TLS Enforcement
98
Auth Strength
90
Scope Granularity
95
Dep. Hygiene
90
Secret Handling
88

Designed as a security boundary — all permission decisions are auditable. TLS strongly recommended. Pre-shared tokens must use strong random values. SOC2 certified for AuthZed Cloud.

⚡ Reliability

Uptime/SLA
92
Version Stability
85
Breaking Changes
82
Error Recovery
88
AF Security Reliability

Best When

You need Google Zanzibar-style fine-grained authorization where users have different permissions on different resources in your agent platform.

Avoid When

Simple role-based access is sufficient — SpiceDB's relationship model is powerful but adds significant complexity.

Use Cases

  • Implement fine-grained resource-level permissions for agent systems (user X can access agent Y's outputs for document Z)
  • Build Google Drive-like sharing models for agent workspace resources with inheritance and groups
  • Centralize authorization for multi-agent architectures where different agents have different resource permissions
  • Implement RBAC with resource-level granularity — role doesn't give blanket access, each resource is explicitly permissioned
  • Audit all permission decisions and relationship changes in agent systems with SpiceDB's write-ahead log

Not For

  • Simple RBAC without resource-level granularity — OPA or Casbin are simpler for basic role checks
  • Applications that can't accept eventual consistency in permission checks — SpiceDB has zedtokens for consistency control but adds complexity
  • Teams without resources to run another database service — SpiceDB requires its own PostgreSQL/CockroachDB backend

Interface

REST API
Yes
GraphQL
No
gRPC
Yes
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: api_key bearer_token
OAuth: No Scopes: No

Preshared token (API key) for client authentication. gRPC and HTTP APIs both support token auth. AuthZed Cloud adds OAuth.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

SpiceDB core is open source. AuthZed (the company) offers managed SpiceDB cloud with SLA.

Agent Metadata

Pagination
cursor
Idempotent
Full
Retry Guidance
Documented

Known Gotchas

  • SpiceDB uses Zanzibar's consistency model — default checks may not see the most recent writes; use zedtokens from write operations for consistent reads
  • Schema changes require migration — adding new permission types requires schema update with zed CLI; live schema changes must be backward compatible
  • Relationship tuples are the source of truth — forgot to write a relationship when creating a resource is a common bug that causes silent permission denials
  • Wildcard permissions (*) in SpiceDB grant access to all objects of a type — use carefully in agent systems to avoid unintended access grants
  • LookupResources and LookupSubjects are powerful but expensive — listing all resources a user can access involves graph traversal; use carefully at scale
  • SpiceDB requires a backing database (PostgreSQL or CockroachDB) — deploying SpiceDB means running two database systems with their own operational overhead

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for SpiceDB.

$99

Scores are editorial opinions as of 2026-03-06.

5215
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered