Skip to main content
The PraisonAI TypeScript CLI provides commands for chatting with and running agents directly from the command line.

Quick Start

1

Simple Usage

2

With Configuration


Commands Overview

chat

Interactive chat with an agent.

Basic Usage

With Model Selection

With Streaming

Options

Examples

JSON Output Format

run

Run an agent with a specific task.

Basic Usage

Options

Examples

Environment Variables

Set these environment variables for API access:

Database Persistence

Use the --db flag to persist memory, sessions, and knowledge across CLI invocations.

Supported Databases

Memory Persistence

Session Persistence

Knowledge Persistence

Environment Variable

Instead of passing --db on every command, set the environment variable:

Scripting Examples

Bash Script

Pipeline Usage

Error Handling

Missing API Key

Invalid Model

Agent

Agent class documentation

Agents CLI

Multi-agent CLI commands

AgentOS

Deploy agents as a service