Skip to main content
This example demonstrates how to enable RBAC (Role-Based Access Control) with JWT token authentication in AgentOS.
1

Create a Python file

basic_rbac.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Setup PostgreSQL Database

6

Run the AgentOS

The server will start and print test JWT tokens to the console.
7

Test RBAC