Skip to main content
PraisonAI provides optional dependency groups (extras) for specific features like bot integrations, gateway servers, and storage backends.
Package split. Framework integrations (CrewAI, AutoGen, AG2) are now distributed through a separate package:
The user installs optional extras, then runs agents with the features those extras unlock.

How It Works

Quick Start

1

Choose Your Use Case

Select installation based on your requirements:
praisonaiagents[all] also installs the [autonomy] and [os] optional groups (verification hooks, OS/gateway helpers). The wrapper extra praisonai[all] focuses on bots, gateway, and tools — add pip install "praisonaiagents[autonomy]" or "praisonaiagents[os]" when you need only those slices.
2

Verify Installation

Test that required dependencies are available:
3

Handle Missing Dependencies

If you encounter import errors, install the required extra:

Available Extras

Bot Integration ([bot])

Enables chat platform integrations:
Includes:
  • python-telegram-bot - Telegram bot API
  • discord.py - Discord bot integration
  • slack-sdk - Slack app development
  • twilio - WhatsApp Business API
  • requests - HTTP client for webhooks
Use cases:
  • Telegram bot deployment
  • Discord server integration
  • Slack workspace apps
  • WhatsApp Business messaging
  • Multi-platform chat bots
Example:

API Server ([api])

Enables gateway and web server functionality:
Includes:
  • uvicorn - ASGI server
  • fastapi - Web framework
  • starlette - WebSocket support
  • python-multipart - File upload handling
  • websockets - WebSocket protocol
Use cases:
  • PraisonAI Gateway deployment
  • REST API endpoints
  • WebSocket real-time communication
  • Agent-as-a-Service hosting
  • Dashboard and UI backends
Example:

Tools Collection ([tools])

Specialized tools and integrations:
Includes:
  • tavily-python - Web search API
  • requests - HTTP requests
  • beautifulsoup4 - HTML parsing
  • PyPDF2 - PDF processing
  • python-docx - Word document handling
Use cases:
  • Web search capabilities
  • Document processing
  • File format conversion
  • Data extraction and parsing
  • Research and analysis

Storage Backends ([storage])

Database and vector store integrations:
Includes:
  • chromadb - Vector database
  • qdrant-client - Qdrant vector store
  • pinecone-client - Pinecone vector database
  • redis - Redis caching
  • pymongo - MongoDB integration
Use cases:
  • Knowledge base storage
  • Vector similarity search
  • Session state persistence
  • Caching and performance
  • Multi-agent coordination

Visual Flow Builder ([flow])

Launch Langflow with PraisonAI Agent and AgentTeam components pre-loaded:
Includes:
  • langflow>=1.0.0 — visual workflow builder
  • requests>=2.31.0 — Langflow REST client
Use cases:
  • Launch the Langflow UI with PraisonAI components in the sidebar
  • Import/export YAML ↔ Langflow JSON
  • Visual multi-agent workflow design
Example:
See Flow CLI and Visual Workflow Builder.

Training (praisonai-train)

LLM fine-tuning and iterative agent training ship in the standalone praisonai-train package (Tier 2c).
pip install "praisonai[train]" previously installed nothing (empty extra). It now pulls praisonai-train[llm], so it installs the Unsloth stack.
See Train and praisonai-train Package.

Complete Installation ([all])

All optional dependencies included:
Includes: All extras above plus additional integrations. Best for:
  • Development environments
  • Full-featured deployments
  • Experimenting with all features
  • Production systems using multiple capabilities

Common Use Cases

Gateway Deployment

Requirement: Multi-channel bot gateway with WebSocket support
Why both extras:
  • [bot] provides Telegram, Discord, Slack integration
  • [api] provides gateway WebSocket server and REST endpoints
Configuration:

Agent Development

Requirement: Basic agent creation and testing
Example:

Production Bot

Requirement: Robust bot with search, storage, and monitoring
Features enabled:
  • Bot platform integration
  • Web search and document processing
  • Vector knowledge storage
  • REST API for monitoring
  • All available tools and integrations

Installation Troubleshooting

Common Import Errors

Error:
Solution:
Error:
Solution:
This happens when trying to use Telegram integration without the bot extra.
Error:
Solution:
Vector storage requires the storage extra.
Symptoms: Package installation fails on WindowsSolutions:For encoding issues:
For build errors:
Error:
Solution:

Dependency Conflicts

Handle version conflicts between extras:

Minimal Installation

For resource-constrained environments:

Extra Dependency Reference

Complete dependency listing by extra:

Platform-Specific Notes

Windows:
  • Some packages may require Visual Studio Build Tools
  • UTF-8 encoding setup recommended: $env:PYTHONUTF8 = "1"
  • Consider using conda for complex dependencies
macOS:
  • May require Xcode Command Line Tools
  • Install via Homebrew Python for best compatibility
Linux:
  • Usually installs without issues
  • May need system packages for some features (e.g., libssl-dev)

Best Practices

Always isolate PraisonAI installations:
Use specific versions for reproducible builds:
Minimize dependency footprint:
Keep dependencies updated:

Gateway Overview

Gateway requires [api] extra

Bot Integrations

Bot platforms require [bot] extra

praisonai-train Package

Training ships in praisonai-train

Package Tiers

How the six packages stack