Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.agno.com/llms.txt

Use this file to discover all available pages before exploring further.

The AG-UI interface exposes any Agno agent or team via the AG-UI protocol, enabling real-time streaming to compatible frontends like Dojo and CopilotKit.

Quick Start

agui_agent.py
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.os.app import AgentOS
from agno.os.interfaces.agui import AGUI

agent = Agent(name="Assistant", model=OpenAIResponses(id="gpt-5.4"))

agent_os = AgentOS(
    agents=[agent],
    interfaces=[AGUI(agent=agent)],
)
app = agent_os.get_app()
uv pip install 'agno[agui]'
python -m agno.os.serve agui_agent:app --port 9001

How It Works

ConceptBehavior
ProtocolAG-UI standard for agent ↔ frontend communication
StreamingReal-time token streaming with tool call visibility
Custom EventsStream structured data (charts, profiles) to frontend
FrontendsWorks with Dojo, CopilotKit, or any AG-UI client

Setup

No external configuration required. Run the agent and connect your frontend to the /agui endpoint. Endpoint: http://localhost:9001/agui

Next Steps

Full Guide

Custom events, state sync, and frontend integration.

Examples

Basic agent, tools, and team examples.

Cookbook

Full runnable examples on GitHub.

AG-UI Protocol

Official protocol specification.