Overview of the PraisonAI Package
mainpraisonai package acts as a wrapper for PraisonAIAgents. It is designed to provide a simple and intuitive interface for developers to interact with AI agents and leverage their various capabilities.repository·main·Indexed 27 days ago
https://github.com/mervinpraison/praisonaiAn AI workforce platform for deploying autonomous, self-improving agents for research, coding, and workflow automation. It features a Python SDK (praisonaiagents), CLI, visual builders, and a JavaScript SDK. The platform supports multi-agent orchestration, custom tool definition via @tool decorators, Model Context Protocol (MCP) integration, and database persistence. It provides various deployment options including Docker containers for UI, Chat, and API services, as well as integrations for Slack, Discord, and Telegram bots.
praisonai package acts as a wrapper for PraisonAIAgents. It is designed to provide a simple and intuitive interface for developers to interact with AI agents and leverage their various capabilities.PraisonAI telemetry is designed to be privacy-first and anonymous.
To completely opt-out of all tracking, set the environment variable DO_NOT_TRACK=true or PRAISONAI_DISABLE_TELEMETRY=true.
The Python SDK is organized into three distinct tiers. Depending on your needs, you may interact with different packages:
praisonaiagents (Core SDK): Contains the fundamental building blocks including Agent, tools, memory, hooks, and protocols.praisonai-code (Terminal CLI): Provides the command-line interface for run, chat, and code operations.praisonai (Wrapper): Acts as a gateway and includes multi-bot orchestration (BotOS), framework adapters (e.g., CrewAI, AutoGen), and wrapper CLI commands like bot, gateway, and pairing.The PraisonAI development roadmap outlines the transition from the current architecture (C7/C7.1) towards enhanced reliability and operational excellence.
Current State (Completed):
praisonai-code run/chat/code functionality without wrapper imports._wrapper_bridge implementation.Upcoming Features (Planned/In Progress):
init → run → test → deploy.PraisonAI offers several packages depending on your development needs:
praisonaiagents): For pure Python development. pip install praisonaiagentspraisonai): For terminal-based developers. pip install praisonaipip install "praisonai[claw]"pip install "praisonai[flow]"pip install "praisonai[ui]"npm install praisonaiPraisonAI supports various agent architectures to suit different complexity levels:
PraisonAI automatically tracks agent executions and task completions. The following metrics are collected and sent to PostHog upon program exit:
PraisonAI uses a three-tier Python package model to ensure modularity and prevent circular dependencies. Developers should choose the package that matches their specific use case:
praisonaiagents contains the fundamental building blocks: Agents, tools, memory, hooks, and protocols.praisonai-code: Core CLI and runtime (run, chat, code).praisonai-bot: Bots, gateway, channel CLI, and OS daemon.praisonai-train: LLM fine-tuning and agent training.praisonai-browser: Browser automation and extension bridges.praisonai-mcp: Model Context Protocol (MCP) server hosting.praisonai-sandbox: Sandbox backends (Docker, E2B, Modal, etc.).praisonai provides framework adapters, the dashboard, and the serve command. It acts as a high-level wrapper that can access Tier 2 features via lazy bridges.PraisonAI provides three distinct MCP-related layers. It is important not to conflate them:
praisonaiagents[mcp]): Used to connect agents to external MCP servers.praisonai-code): Provides a basic ToolsMCPServer via the command praisonai serve mcp.praisonai-mcp): This package. It provides a full capability/recipe MCP server.PraisonAI agents have been optimized for faster initialization and execution, particularly for simple tasks like agent.start("..."). These optimizations are transparent to the user and maintain 100% backward compatibility with all existing public APIs.
Key performance benefits include:
Optimizations include lazy loading of the rich console, system prompt caching, tool formatting caching, deferred knowledge processing, one-time logging configuration, and lazy agent ID generation.
The PraisonAI LLM class includes several internal performance optimizations designed to speed up agent initialization and tool processing. These optimizations are automatic and transparent to the user, maintaining 100% backward compatibility with existing public APIs.
Key performance features include:
LLM instances are ~3.4x faster due to one-time logging configuration._formatted_tools_cache._max_cache_size of 100 prevents unbounded memory growth during long-running sessions.console object is only instantiated when accessed, saving initialization time when verbose=False.Use the praisonai-browser CLI to start the browser service, execute automation tasks, or run diagnostic checks.
praisonai-browser start --port 8765praisonai-browser run "Search for AI news on Google"praisonai-browser doctorNote: If using the full praisonai stack, use the commands praisonai browser start and praisonai browser run "..." instead.
praisonai-browser start --port 8765
praisonai-browser run "Search for AI news on Google"
praisonai-browser doctor