Skip to main content
workos_byot.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Configure WorkOS

In the WorkOS dashboard, enable RBAC and Email + Password authentication. Use WORKOS_API_KEY and WORKOS_CLIENT_ID from the same WorkOS environment.
5

Run the example

Save the code above as workos_byot.py, then run:
Full source: cookbook/05_agent_os/rbac/asymmetric/workos_byot.py