litellm? Capability detection (structured outputs, function calling, prompt caching, web search) still works via a built-in static heuristic. See Lean Install (litellm-free) for the exact coverage matrix and when to add pip install litellm.How It Works
Quick Start
Choose Your Use Case
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.Verify Installation
Handle Missing Dependencies
Available Extras
Bot Integration ([bot])
Enables chat platform integrations:
python-telegram-bot- Telegram bot APIdiscord.py- Discord bot integrationslack-sdk- Slack app developmenttwilio- WhatsApp Business APIrequests- HTTP client for webhooks
- Telegram bot deployment
- Discord server integration
- Slack workspace apps
- WhatsApp Business messaging
- Multi-platform chat bots
API Server ([api])
Enables gateway and web server functionality:
uvicorn- ASGI serverfastapi- Web frameworkstarlette- WebSocket supportpython-multipart- File upload handlingwebsockets- WebSocket protocol
- PraisonAI Gateway deployment
- REST API endpoints
- WebSocket real-time communication
- Agent-as-a-Service hosting
- Dashboard and UI backends
Tools Collection ([tools])
Specialized tools and integrations:
tavily-python- Web search APIrequests- HTTP requestsbeautifulsoup4- HTML parsingPyPDF2- PDF processingpython-docx- Word document handling
- Web search capabilities
- Document processing
- File format conversion
- Data extraction and parsing
- Research and analysis
Storage Backends ([storage])
Database and vector store integrations:
chromadb- Vector databaseqdrant-client- Qdrant vector storepinecone-client- Pinecone vector databaseredis- Redis cachingpymongo- MongoDB integration
- 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:
langflow>=1.0.0— visual workflow builderrequests>=2.31.0— Langflow REST clienta2a-sdk[http-server]>=1.0.0— Langflow transitive dep pinned for Python 3.13 (older versions ship withouta2a.server.active_task)fastapi-pagination>=0.12.34— pinned for FastAPI/Starlette compatibility (older versions fail withcannot import name 'EventSourceResponse')
- Launch the Langflow UI with PraisonAI components in the sidebar
- Import/export YAML ↔ Langflow JSON
- Visual multi-agent workflow design
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.setup_conda_env.sh (used by praisonai-train[llm]) now probes the host for a GPU before picking pytorch-cuda=12.4. Nvidia hosts get the CUDA build; AMD hosts get a WARNING pointing at the official PyTorch ROCm instructions; CPU-only Linux hosts get a WARNING that praisonai-train llm refuses to run on CPU (the env is still usable for dataset work and exports). See Train → Conda setup for the decision table.
See Train and praisonai-train Package.
Complete Installation ([all])
All optional dependencies included:
- 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[bot]provides Telegram, Discord, Slack integration[api]provides gateway WebSocket server and REST endpoints
Agent Development
Requirement: Basic agent creation and testingProduction Bot
Requirement: Robust bot with search, storage, and monitoring- 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
crawl4ai alongside the wrapper extras? crawl4ai pulls in unclecode-litellm, a fork that overwrites files in the real litellm. See the get_env_int_in_range entry below if import litellm or any agent LLM call fails after installing crawl4ai.Gateway requires starlette and uvicorn
Gateway requires starlette and uvicorn
No module named 'python-telegram-bot'
No module named 'python-telegram-bot'
No module named 'chromadb'
No module named 'chromadb'
Cannot install on Windows
Cannot install on Windows
Langflow is not installed
Langflow is not installed
ModuleNotFoundError: No module named 'a2a.server.active_task'
ModuleNotFoundError: No module named 'a2a.server.active_task'
a2a-sdk<1.0 (e.g. 0.3.26) is installed. Langflow ≥ 1.10.x imports a2a.server.active_task, which only exists on a2a-sdk>=1.0.Solution:[flow] extra now pins a2a-sdk[http-server]>=1.0.0. It resurfaces only if another extra downgrades a2a-sdk (e.g. [claw] — see the mutual exclusivity warning above).ImportError: cannot import name 'EventSourceResponse' from 'fastapi.responses'
ImportError: cannot import name 'EventSourceResponse' from 'fastapi.responses'
fastapi-pagination<0.12.34 is installed against a newer FastAPI/Starlette.Solution:ImportError: cannot import name 'get_env_int_in_range' from 'litellm.litellm_core_utils.env_utils'
ImportError: cannot import name 'get_env_int_in_range' from 'litellm.litellm_core_utils.env_utils'
crawl4ai (≥ 0.8.6) depends on unclecode-litellm, a fork of litellm that installs into the same litellm/ directory. With both installed, pip or uv leaves a mix of files from both versions, so imports touching a submodule only one version has fail (ImportError, AttributeError, or ModuleNotFoundError under litellm.*).Diagnose:litellm last so its own files win:crawl4ai. Alternatively, keep crawl4ai and litellm-using features in separate virtual environments.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
- May require Xcode Command Line Tools
- Install via Homebrew Python for best compatibility
- Usually installs without issues
- May need system packages for some features (e.g.,
libssl-dev)
Best Practices
Use virtual environments
Use virtual environments
Pin versions in production
Pin versions in production
Install only needed extras
Install only needed extras
Monitor dependency security
Monitor dependency security

