Skip to main content
Demonstrates an interactive WebSocket client for authenticating, starting workflows, and rendering streamed workflow events.
websocket_client.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Clone Agno

Clone the repository and run the remaining commands from its root:
5

Start the WebSocket server

In another terminal, start the companion server on ws://localhost:8000/ws:
6

Run the example

Run the example from the repository root:
Full source: cookbook/04_workflows/06_advanced_concepts/background_execution/websocket_client.py