PraisonAIUI gives any AI model or agent a polished, responsive agent interface without writing frontend code. Every app ships with streaming Markdown, tool calls, reasoning steps, approvals, code blocks, conversation history, light and dark themes, and mobile support out of the box.
Pick whichever matches how you work — you can switch or combine them at any time.
<Tabs>
<Tab title="Python (5 lines)">
Use simple decorators in app.py to hook into any model, SDK, or custom logic:
app.py
Run it with aiui run app.py.
aiui run app.py
</Tab>
<Tab title="Zero-code YAML">
Define an AI assistant without writing Python (pip install "aiui[praisonai]" and set OPENAI_API_KEY):
pip install "aiui[praisonai]"
OPENAI_API_KEY
Run it with aiui run chat.yaml.
aiui run chat.yaml
</Tabs>
| Capability | What your users see | Learn more |
|------------|---------------------|------------|
| Lifecycle hooks | Greeting on open, per-chat setup, live Stop button, clean-up on exit | Chat lifecycle |
| Streaming & prompts | Token-by-token replies, interactive questions, action buttons and toasts | Messages & streaming |
| Starters & profiles | One-click starter cards on empty chats and selectable assistant personas | Starters & profiles |
| Reasoning & tool steps | Collapsible, timed tree of tool calls, searches and sub-runs | Steps |
| Artifacts canvas | Side-by-side preview for generated code, tables, diagrams and files | A2UI canvas |
| Attachments & media | Drag-and-drop uploads, inline images, audio, video and downloadable files | Attachments |
| Voice & MCP tools | Spoken replies, real-time voice input and external MCP tool servers | MCP servers |
<CardGroup cols={2}>
<Card title="1. Chat lifecycle" icon="refresh-cw" href="lifecycle.md">
Understand when welcome, start, reply, stop and end handlers run.
</Card>
<Card title="2. Messages & streaming" icon="message-square" href="messages-and-streaming.md">
Send replies, stream tokens, ask follow-up questions and show action buttons.
<Card title="3. Starters & profiles" icon="sparkles" href="starters-and-profiles.md">
Guide new users with clickable prompt cards and switchable assistant modes.
<Card title="4. Steps & reasoning" icon="git-branch" href="../features/steps.md">
Show live, collapsible tool calls and thinking steps inside every reply.
</CardGroup>