Recipes Guide

Complete guide to working with PraisonAI recipes

Next

Recipes package agents, tasks, and tools so you can run repeatable workflows from YAML.

python
from praisonaiagents import Agent

agent = Agent(name="Recipe Runner", instructions="Summarise what PraisonAI recipes provide.")
agent.start("What can I do with recipes?")

The user opens a recipe guide, configures roles, and runs praisonai recipe run with variables.

Diagram

Templates

📋 agents.yaml

⚙️ Recipe Run

✅ Output

Quick Start

  1. Simple Usage

    List and run a recipe from the CLI.

    bash
    praisonai recipe list
    praisonai recipe run my-recipe
  2. With Configuration

    Pass variables into the recipe at run time.

    bash
    praisonai recipe run my-recipe --var topic="AI agents"

How It Works

Diagram
RecipeCLIUserRecipeCLIUserpraisonai recipe run my-recipe –var topic=…Load agents.yaml, bind variablesRole outputsFinal result

Recipe Guides

Learn how to create, use, manage, and debug recipes in PraisonAI.

Quick Reference

TaskCommand
List recipespraisonai recipe list
Add from GitHubpraisonai recipe add github:user/repo/recipe
Add localpraisonai recipe add ./my-recipe
Run recipepraisonai recipe run <name>
Get infopraisonai recipe info <name>
Validatepraisonai recipe validate <path>
Init newpraisonai recipe init <name>

Best Practices

Keep agents.yaml the single source of truth

Define roles, goals, tools, and tasks in one agents.yaml. Recipes stay portable when everything lives in the recipe directory.

Validate before you run

praisonai recipe validate <path> catches schema errors before execution. Wire it into CI so broken recipes never ship.

Parameterise with variables

Use {{task}}-style placeholders and pass values with --var key=value so one recipe serves many inputs.