Skip to main content
Restart the native AgentOS backend with OS_SECURITY_KEY set, then pass that same value through RemoteAgent.arun(auth_token=…). The token is attached to this call rather than stored on the RemoteAgent.
remote_auth.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as remote_auth.py, then run:
Full source: cookbook/05_agent_os/20_remote/06_remote_auth.py