Skip to Content
SpiceDB is 100% open source. Please help us by starring our GitHub repo. ↗
SpiceDB DocumentationGetting StartedClient Libraries

Official Client Libraries

SpiceDB is primarily accessed by a gRPC  API and thus client libraries can be generated for any programming language.

AuthZed builds and maintains gRPC client libraries for the following languages:

Because the above libraries are generated from protobuf definitions in our API repo , the primary documentation for the gRPC API is in the buf documentation  for SpiceDB’s services. The gRPC client documentation associated with each host language will also be helpful for putting together invocations. Additionally, there are example directories in the client libraries that provide example usages.

HTTP Clients

SpiceDB exposes an HTTP API when run with the --http-enabled flag. While Authzed doesn’t officially maintain HTTP client libraries, there are OpenAPI  docs available here and served by a SpiceDB instance running the HTTP server.

Try it out:

docker run --rm -p 50051:50051 -p 8443:8443 authzed/spicedb serve --http-enabled --grpc-preshared-key foobar curl localhost:8443/openapi.json

The OpenAPI JSON can then be converted into a client using a tool like openapi-ts  or openapi-python-client .

Other Clients

AuthZed also develops zed , a command-line client for interacting with the SpiceDB API.

You can find more languages and integrations maintained by the community in the Clients section  of the Awesome SpiceDB  repository.

Last updated on