Complete reference for the aiui command-line interface.
aiui
The primary command — run an AI server with your app.py or chat.yaml.
app.py
chat.yaml
| Option | Description | Default |
|--------|-------------|---------|
| FILE | Python file (app.py) or YAML config (chat.yaml) | required |
FILE
| --port, -p | Server port | 8000 |
--port, -p
8000
| --host | Bind address | 127.0.0.1 |
--host
127.0.0.1
| --reload | Auto-reload on file changes | false |
--reload
false
| --style, -s | UI style: chat, dashboard, agents, playground, docs, custom | chat |
--style, -s
chat
| --backend | AI backend: praisonai, default | default |
--backend
praisonai
default
| --workers | Number of workers | 1 |
--workers
1
| --ssl-certfile | SSL certificate for HTTPS | — |
--ssl-certfile
| --ssl-keyfile | SSL private key for HTTPS | — |
--ssl-keyfile
Examples:
Validate your configuration file.
| --config, -c | Path to config file | aiui.template.yaml |
--config, -c
aiui.template.yaml
| --strict | Enable strict validation | false |
--strict
---
Build manifests from configuration (for docs/static site mode).
| --output, -o | Output directory | aiui |
--output, -o
| --minify | Minify JSON output | false |
--minify
Serve the built site locally with a production-ready HTTP server.
| --reload | Watch for changes and rebuild | false |
| --style, -s | UI style override | auto-detected |
Development dashboard — switch between examples live.
| --examples, -e | Directory containing example projects | examples |
--examples, -e
examples
| --port, -p | Port for dev server | 9000 |
9000
Run structured diagnostics against a running AIUI server.
| --server, -s | Server URL to diagnose | http://127.0.0.1:8000 |
--server, -s
http://127.0.0.1:8000
| --json | Output results as JSON | false |
--json
Checks: health, provider, gateway, features, config, datastore, channels.
Run integration tests against a running server.
| Suite | Description |
|-------|-------------|
| chat | Chat WebSocket send/receive |
| memory | Memory CRUD operations |
memory
| sessions | Session management |
sessions
| endpoints | API endpoint availability |
endpoints
| all | Run all test suites |
all
All management commands connect to a running server (default http://127.0.0.1:8000). Use --server URL to target a different server.
--server URL
Check server health. Can also be invoked as aiui health for convenience.
aiui health
Extended session operations:
| Code | Meaning |
|------|---------|
| 0 | Success |
0
| 1 | Configuration error |
| 2 | File not found |
2
| 3 | Build error |
3
| Variable | Description | Default |
|----------|-------------|---------|
| OPENAI_API_KEY | OpenAI API key | — |
OPENAI_API_KEY
| PRAISONAI_MODEL | Default model | gpt-4o-mini |
PRAISONAI_MODEL
gpt-4o-mini
| AIUI_DATA_DIR | Data directory | ~/.praisonaiui |
AIUI_DATA_DIR
~/.praisonaiui
| AIUI_CONFIG | Config file path | aiui.template.yaml |
AIUI_CONFIG
| AIUI_OUTPUT | Build output dir | aiui |
AIUI_OUTPUT