CLI
| Option | Default | Description |
|---|---|---|
--host | 127.0.0.1 | Host to bind to |
--port | 8002 | Server port |
--file | agents.yaml | Agents YAML file |
Python
agents.yaml
AGUI server is Python-only. No agents.yaml support.AGUI Endpoints
| Endpoint | Method | Description |
|---|---|---|
/agui | POST | Run agent with SSE streaming |
/status | GET | Check agent availability |
AGUI Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
agent | Agent | - | PraisonAI Agent instance |
agents | Agents | - | Multi-agent workflow |
name | str | agent.name | AGUI endpoint name |
description | str | agent.role | Agent description |
prefix | str | "" | URL prefix |
CopilotKit Integration
Send AGUI Request
Event Types
| Event | Description |
|---|---|
run_started | Agent run has started |
run_finished | Agent run completed |
run_error | Error occurred during run |
text_message_start | New text message started |
text_message_content | Text content delta |
text_message_end | Text message completed |
tool_call_start | Tool call started |
tool_call_args | Tool call arguments |
tool_call_end | Tool call completed |
JavaScript Client
Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | lsof -i :8000 |
| Missing deps | pip install "praisonaiagents[os]" |
| No API key | export OPENAI_API_KEY="your-key" |
| CORS errors | Add CORS middleware to FastAPI app |
Related
- AGUI API Reference - Full AGUI endpoint documentation
- A2A Server - Deploy as A2A server
- Agents Server - Deploy as HTTP server

