Skip to main content
Use an RS256 private key only in the token issuer and give AgentOS only the public verification key. A local request proves signature and audience verification before the server starts.
asymmetric_keys.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as asymmetric_keys.py, then run:
Full source: cookbook/05_agent_os/07_security/asymmetric_keys.py