<div align="center"
<img src="examples/playground.gif" alt="the interactive ofga playground TUI" width="900"
ofga
A modern CLI & TUI for OpenFGA.
Manage stores, authorization models, relationship tuples, and run checks from your terminal, or explore everything interactively in a full-screen TUI.
Quick start · The TUI · Commands · Configuration · Docs · Contributing
</div
---
📑 Table of contents
- ✨ What is this?
- 🚀 Quick start
- 📦 Installation
- 🖥 The interactive TUI
- 📋 Command reference
- 📚 Documentation
- 🏗 Contributing
- ⚖️ License
---
✨ What is this?
ofga is a single, dependency-free binary that gives you two ways to work with an OpenFGA server:
- 🧰 A scriptable CLI: create stores, write and inspect authorization models, manage relationship tuples, run check/list-objects/list-users/list-relations, and run assertion suites. Read commands provide consistent JSON/YAML output, tabular commands support --plain, and failures return meaningful exit codes.
- 🖥 A full-screen TUI: launch it by running ofga with no arguments. Browse stores, visualize a model as a colored relation graph, edit tuples, run queries and expand their resolution trees, and manage assertions, all with the keyboard or the mouse.
It talks to any OpenFGA-compatible server and reuses your connection profiles so you can switch between local, staging, and production in one flag.
Naming: the official OpenFGA CLI is fga. This is a separate, independent reimagining focused on ergonomics and an interactive TUI, distributed as ofga. It is not affiliated with OpenFGA.
---