Expose your Agno Agent via the AG-UI protocol
Install backend dependencies
Run the backend
AgentOS
and AGUI
.Run the frontend
ag-ui
’s frontend) as an advanced, customizable interface for AG-UI agents.git clone https://github.com/ag-ui-protocol/ag-ui.git
/ag-ui/typescript-sdk
: pnpm install
/ag-ui/integrations/agno
: pnpm run build
Chat with your Agno Agent
http://localhost:3000
and select your Agno agent.AGUI
(interface): Wraps an Agno Agent
or Team
into an AG-UI compatible FastAPI router.AgentOS.serve
: Serves your FastAPI app (including the AGUI router) with Uvicorn.AGUI
mounts protocol-compliant routes on your app.
AGUI
interfaceParameter | Type | Default | Description |
---|---|---|---|
agent | Optional[Agent] | None | Agno Agent instance. |
team | Optional[Team] | None | Agno Team instance. |
agent
or team
.
Method | Parameters | Return Type | Description |
---|---|---|---|
get_router | use_async: bool = True | APIRouter | Returns the AG-UI FastAPI router and attaches endpoints. |
POST /agui
: Main entrypoint. Accepts RunAgentInput
from ag-ui-protocol
. Streams AG-UI events.GET /status
: Health/status endpoint for the interface.ag-ui-protocol
docs for payload details.
AgentOS.serve
to run your app with Uvicorn.
Parameter | Type | Default | Description |
---|---|---|---|
app | Union[str, FastAPI] | required | FastAPI app instance or import string. |
host | str | "localhost" | Host to bind. |
port | int | 7777 | Port to bind. |
reload | bool | False | Enable auto-reload for development. |