Configuration for JWT verification when RBAC authorization is enabled on AgentOS.
Import
Asymmetric algorithm prerequisite
The agno[os] extra installs base PyJWT. Add PyJWT’s optional cryptography dependencies for RS* and ES* algorithms:
Parameters
When user_isolation=True, every non-admin JWT must include a non-empty string sub claim. Configure the token issuer or an authentication layer to reject tokens without this claim before they reach AgentOS. A token without a usable sub can pass JWT verification, but AgentOS cannot apply per-user filtering or ownership enforcement to that caller.
Usage
Algorithm Options
Examples
Using RS256 (Asymmetric)
Using HS256 (Symmetric)
Using JWKS File
The JWKS file should follow the standard format:
See Also