Skip to main content
Authentication is optional. Set OS_SECURITY_KEY to enable it for this AgentOS.
demo.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run PgVector

5

Optional: enable authentication

Set OS_SECURITY_KEY before running to require AgentOS authentication. Leave it unset to run without authentication.
6

Run the example

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