CLI Reference
PraisonAI TypeScript CLI – Complete command reference
The praisonai-ts CLI provides a comprehensive interface for interacting with AI agents.
graph LR
User([User]) --> CLI[CLI]
CLI --> Agent[Agent]
classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
classDef tool fill:#189AB4,stroke:#7C90A0,color:#fff
class Agent agent
class User,CLI tool
classDef agent fill:#8B0000,color:#fff
classDef tool fill:#189AB4,color:#fffQuick Start
- Simple Usage
bash npm install -g praisonai praisonai-ts chat "Hello" - With Configuration
bash export OPENAI_API_KEY=your-key praisonai-ts chat "Explain AI" --model openai/gpt-4o-mini
All Commands
There is no serve or gateway command in the TypeScript CLI — the TS CLI is the single praisonai-ts executable. Run praisonai-ts help for the full list.
| Category | Commands |
|---|---|
| Agent | chat, run, agent, auto, research, interactive |
| Multi-Agent | agents run, workflow, flow, handoff, router |
| Tools | tools list, tools info, skills list, skills discover |
| Memory | memory list, memory add, memory search, memory clear, session, knowledge |
| MCP | mcp list, mcp add, mcp remove, mcp start, mcp stop |
| Quality | eval accuracy, eval performance, eval reliability, guardrail check, benchmark |
| Models | providers, llm providers, llm test, llm validate, embed, image |
| Other | query-rewrite, prompt-expand, context, planning, telemetry, vector, observability, voice, db, cache, version, help |
praisonai-ts chat "Hello"
praisonai-ts agents run "Research and summarise AI news"
praisonai-ts helpCore Commands
Chat
praisonai-ts chat "Your prompt here"
praisonai-ts chat "Write a poem" --stream
praisonai-ts chat "Explain AI" --model anthropic/claude-sonnet-4-20250514Providers
praisonai-ts providers
praisonai-ts providers --jsonGlobal Options
| Option | Description |
|---|---|
-v, --verbose | Enable verbose output |
-c, --config | Path to config file |
-o, --output | Output format (pretty, json, text) |
--json | Shorthand for --output json |
Environment Variables
export OPENAI_API_KEY=your-key
export ANTHROPIC_API_KEY=your-key
export GOOGLE_API_KEY=your-key
export PRAISONAI_MODEL=openai/gpt-4o-miniLoading a .env file
praisonai-ts no longer calls dotenv.config() for you (as of v-next, PR #4416). If you keep credentials in a .env file, load it yourself at the top of your entrypoint. Shell exports above keep working with no code changes.
// If you keep credentials in a .env file, load it yourself.
import 'dotenv/config'; // or: import dotenv from 'dotenv'; dotenv.config();
import { Agent } from 'praisonai';
const agent = new Agent({ instructions: 'You are a helpful assistant' });
await agent.start('Hello');Prefer no dotenv at all? See JS Import Safety & Runtimes for per-agent credentials in browsers and webviews.