praisonai command in the terminal; the CLI loads config and drives the agent to completion.
How It Works
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.
Quick Start
Usage Examples
Simple Command
Simple Command
Run a simple command directly:
With LLM Option
With LLM Option
Specify a different LLM model:
Using YAML Config
Using YAML Config
Run agents defined in a YAML file:
Configuration
- Create Config
- Auto Mode
Initialize a new agents.yaml file for your project:This will create an
agents.yaml file with predefined configuration for your task.If no LLM provider is configured,
--init prints provider-setup guidance (supporting OpenAI, Anthropic, Google/Gemini, Groq, Cohere, Ollama, OpenRouter and 100+ models via LiteLLM) and exits. Run praisonai setup first to configure a provider.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.
Model Catalogue
Discover, describe, and validate LLM models from the CLI.
Validate CLI
Validate YAML configuration files before running:| Subcommand | Purpose |
|---|---|
validate <file> | Validate a single YAML config |
validate check [dir] | Scan a directory for YAML errors |
validate schema | Print schema fields, types, and required markers |
Discovering Models
Browse the full model catalogue, inspect capabilities and costs, or validate a model ID before running an agent:Model Catalogue
Full reference for
praisonai models list, describe, and validateWorkflow CLI
Manage and execute YAML workflows directly from the command line:Workflow CLI Options
| Flag | Description |
|---|---|
--var key=value | Set variable for YAML workflows |
--pattern <pattern> | Pattern for auto-generation (sequential, parallel, routing, loop) |
--output <file> | Output file for templates/auto-generation |
--planning | Enable planning mode |
--reasoning | Enable reasoning mode |
--verbose | Enable verbose output |
--save | Save output to file |
Next Steps
YAML Workflows
Learn about YAML workflow configuration and patterns
Workflow Patterns
Explore routing, parallel, loop, and repeat patterns
API Reference
View the complete API documentation
Best Practices
Validate YAML before running
Validate YAML before running
Catch schema errors early with
praisonai validate agents.yaml (or praisonai validate check . --strict for a whole directory) before executing a workflow. In CI, add --json for machine-readable output so a broken config fails the pipeline instead of the agent run.Pin the model per command
Pin the model per command
A bare Confirm an ID exists first with
praisonai "..." uses the default provider. Pass --llm to make each invocation reproducible and cost-predictable:praisonai models validate gpt-4o-mini to avoid silent typos.Start with --init, graduate to YAML
Start with --init, graduate to YAML
Use
praisonai --init "task" to scaffold an agents.yaml, then edit and re-run with praisonai agents.yaml. This keeps one-off prompts fast while giving repeatable, version-controlled configs for anything you run more than once.Use --var to keep workflows reusable
Use --var to keep workflows reusable
Parameterise workflow YAML instead of hard-coding values so one file serves many runs:
Related
Structure agents and tasks in a reusable YAML config file.
Discover, describe, and validate LLM models from the terminal.

