OpenFGA

Open source

Open-source authorization engine where developers describe access rules in a modeling language and ask the API whether a user may do something.

Open-source alternative to

openfga.dev
OpenFGA homepage screenshot
GitHub stars
6.2k
Last 30 days
+165(+3%)
Last commit
yesterday
Repository age
4 years
Version
v1.23.0
Licence
Apache-2.0
Self-hosted
Yes

About OpenFGA

OpenFGA is an authorization service for applications. Instead of scattering permission checks through code, developers write an authorization model in a readable modeling language and then call an API to ask whether a given user may act on a given object. The project is aimed at fine-grained access control.

The design borrows from Google's Zanzibar paper on relationship-based access control, and the project says it also handles role-based and attribute-based use cases. SDKs exist for popular languages, and the team says check calls are designed to return in milliseconds.

It is open source and governed in the open through an RFC process and a public roadmap. The project belongs to the Cloud Native Computing Foundation as an incubating project. A single Docker command starts a local server on port 8080, and sample models are in the documentation.

Key features

  • Readable modeling language for access control
  • Relationship-based access control modeled on Zanzibar
  • Also covers role-based and attribute-based access
  • SDKs for popular programming languages
  • Authorization checks designed to answer in milliseconds
  • Local start with one Docker command

Good fit for

  • Role-based access control
  • Relationship-based permissions
  • Attribute-based access control
Built with
Go tools
Tags
authorization
access control
rebac
rbac
abac
zanzibar
cncf
api

OpenFGA: questions and answers

What is OpenFGA used for?
OpenFGA is an open-source authorization engine where developers describe access rules in a modeling language and ask the API whether a user may do something. It is a good fit for role-based access control, relationship-based permissions and attribute-based access control.
Is OpenFGA open source?
Yes. OpenFGA is open source under the Apache-2.0 licence. Its source code is on GitHub at openfga/openfga and is written mainly in Go.
Is OpenFGA free?
Yes. OpenFGA is open source, so the software itself is free to use.
Can I self-host OpenFGA?
Yes. OpenFGA can be self-hosted on your own server or infrastructure.
What is OpenFGA an alternative to?
OpenFGA is an open-source alternative to Permit.io, Authress and Oso. Other open-source alternatives to Permit.io include SpiceDB, Keto and OPA.
Is OpenFGA actively maintained?
Yes. The most recent commit to OpenFGA was on 20 November 2026, and the latest release is v1.23.0, published on 20 November 2026. The project has 6.2k stars on GitHub, with 165 added in the last 30 days.

Open-source alternatives to OpenFGA

See all

SaaS alternatives to OpenFGA

See all