Code
cookbook/05_agent_os/interfaces/agui/multiple_instances.py
Usage
Key Features
- Multiple Endpoints: Each
AGUI(prefix=...)mounts its own{prefix}/aguiendpoint - Shared AgentOS: Two agents served from a single app
- Per-Agent Tools: The web research agent has
WebSearchTools; the chat agent does not - Shared Database: Both agents use the same
SqliteDb
Setup Frontend
- Clone the AG-UI repository:
git clone https://github.com/ag-ui-protocol/ag-ui.git - Install the TypeScript SDK:
cd ag-ui/typescript-sdk && pnpm install - Build the Agno integration:
cd integrations/agno && pnpm run build - Start Dojo:
cd ../../apps/dojo && pnpm run dev - Open
http://localhost:3000and select the Agno integration