authorization=True enables JWT verification. AgentOS also needs a public key to verify tokens against. Generate one from the control plane and wire it in.
Generate a Verification Key
Toggle JWT authorization
Enable JWT authorization when connecting a new AgentOS, or later from the OS Settings page.
The control plane only issues RS256 keys, which is also the default. See authorization troubleshooting for common setup issues.
Configuration Options
Configure JWT verification usingAuthorizationConfig:
Environment Variables
| Variable | Purpose |
|---|---|
JWT_VERIFICATION_KEY | Single public key or shared secret. Added to verification_keys. |
JWT_JWKS_FILE | Path to a static JWKS file. |
JWT_JWKS | Inline JWKS JSON. |
AuthorizationConfig. Pass keys in code, env vars, or both.
Sending Authenticated Requests
Send the token in theAuthorization header:
Excluded Routes
These routes are excluded from authorization checks by default:/, /health, /info, /docs, /redoc, /openapi.json, /docs/oauth2-redirect
Error Responses
| Status Code | Description |
|---|---|
401 Unauthorized | Missing or invalid JWT token |
403 Forbidden | Insufficient scopes for the requested operation |
Next Steps
| Task | Guide |
|---|---|
| Understand JWT claim structure | Tokens |
| Issue tokens from your own backend | Self-Hosted |
| See the full scope reference | Scopes |
| Assign roles to users | Roles |