🚀
CLI Command
AI Agent
Config/YAML
🏁

PraisonAI CLI provides a simple way to interact with AI agents directly from your terminal. You can run quick commands, specify LLM options, or use YAML configuration files for more complex scenarios.

PraisonAI CLI Demo

Quick Start

1

Install Package

Install the PraisonAI package:

pip install praisonai
2

Set API Key

Set your OpenAI API key as an environment variable:

export OPENAI_API_KEY=your_api_key_here

Usage Examples

Run a simple command directly:

praisonai "write a movie script in 3 lines"

Specify a different LLM model:

praisonai "write a movie script in 3 lines" --llm gpt-4o-mini

Run agents defined in a YAML file:

praisonai agents.yaml

Configuration

Initialize a new agents.yaml file for your project:

praisonai --init "Create a movie script about AI"

This will create an agents.yaml file with predefined configuration for your task.

Features

Simple Commands

Run AI tasks directly from your terminal with simple commands.

LLM Options

Choose from different LLM models for your specific needs.

YAML Support

Use YAML files for complex agent configurations and workflows.

Auto Configuration

Automatic agent setup based on task requirements.

Next Steps

Was this page helpful?