chat command starts an interactive chat session with an AI agent.
Usage
Arguments
Options
praisonai chat with no --model picks a default that matches your active provider credential — it no longer always falls back to gpt-4o-mini. See Setup → What happens if you skip --model for the precedence ladder.Piped Input
praisonai chat accepts piped stdin as an initial prompt seed.
Examples
Start a chat session
Chat with initial prompt
Chat with specific model
Chat with memory enabled
Resume a previous session
Use plain text output (no colors)
Output as JSON
Use middle-ground UI (enhanced streaming)
Chat without auto-loaded instructions
AGENTS.md/CLAUDE.md/PRAISON.md from the working directory. --no-rules runs the assistant with only its built-in instructions.
Exit codes
praisonai chat returns a non-zero exit code on failure so shell scripts and CI can detect problems without parsing stderr.
Exit-code semantics apply to single-prompt / non-interactive invocations (
praisonai chat "..." and praisonai chat --profile ...). The interactive TUI (praisonai chat with no prompt) always exits 0 when you leave the session.Detect failures in a script
CI example (GitHub Actions)
Project context
By default,praisonai chat walks up from the current directory to your git root and prepends any AGENTS.md / CLAUDE.md / agents.md / .agents/AGENTS.md it finds to the agent’s system prompt, layered on top of ~/.praisonai/AGENTS.md. Pass --no-context (or set PRAISON_NO_CONTEXT=true) to disable. See Context Files for details.
UI Backends
The--ui-backend flag controls how output is rendered:
Environment variable: Set
PRAISONAI_UI_SAFE=1 to force plain backend.
Interactive Commands
During a chat session, you can use these commands:Quick Start
Runningpraisonai with no arguments starts interactive mode:
praisonai chat.
Features
The interactive chat mode includes:- ASCII Art Logo - Beautiful PraisonAI branding on startup
- Status Bar - Shows model, session info, and keyboard shortcuts
- Auto-completion - Tab completion for commands and file paths
- Command History - Navigate previous commands with arrow keys
- Markdown Rendering - Rich formatted responses with syntax highlighting
- Streaming Output - Real-time response streaming
See Also
- Interactive TUI - Full TUI interface
- Session - Session management
- Memory - Memory management

