
最近在GitHub上发现了一个宝藏项目——PraisonAI,连科技界大佬马斯克都曾转发点赞过它的Grok 3客户支持教程!

PraisonAI 是一个面向生产环境的全功能多智能体运行框架,由开发者Mervin Praison开源。
它的核心理念是用极简的方式,让无论是新手还是企业技术团队,都能快速构建具备推理、记忆、自我改进与协作能力的复杂AI系统。

这个项目已经积累了 7.3K+ GitHub 星标,社区活跃度高。更惊人的是,它的智能体实例化时间仅为3.77微秒,比人类眨眼速度快1000倍!
这种极致性能,让大规模多智能体部署成为可能。
1、低代码+无代码
PraisonAI最吸引人的地方,就是它的开发门槛极低。你可以选择:
这种双重模式,让不同技术背景的开发者都能找到适合自己的方式。
2、100+大模型支持,无缝切换
支持OpenAI、Anthropic、Google、Ollama、Groq、DeepSeek等24个主流大模型提供商,总计100+LLM模型。
你可以根据成本、性能、功能需求自由切换,不用被任何一家供应商绑定。
3、完整的智能体能力
4、可视化拖拽编排
配合LangFlow集成,你可以像搭积木一样,用拖拽方式构建多智能体工作流,不用写一行代码就能完成复杂的编排设计。
5、一键接入聊天平台
通过Claw Dashboard,你可以一键把智能体接入Telegram、Discord、Slack、WhatsApp等聊天平台,让它们变成24小时在线的助手。
PraisonAI提供了多种安装方式:
一键安装(推荐):
curl -fsSL https://praison.ai/install.sh | bashpip安装:
pip install praisonaiagents完整安装(包含所有组件):
pip install "praisonai[all]"设置你的API密钥(以OpenAI为例):
export OPENAI_API_KEY="your-api-key"比如:用Python代码快速创建一个数据分析师:
from praisonaiagents import Agent
# 创建一个智能体,设定角色
agent = Agent(instructions="You are a senior data analyst.")
# 启动任务
agent.start("Analyze the top 3 tech trends of 2026 and format as a markdown table.")就这么简单!运行这段代码,智能体会自动开始工作,输出2026年科技趋势分析。
单智能体已经很强大,但PraisonAI真正的威力在于多智能体协作。让我们创建一个研究+写作的团队:
from praisonaiagents import Agent, AgentTeam
# 研究员智能体
researcher = Agent(
name="Researcher",
instructions="Research topics thoroughly and gather comprehensive information"
)
# 作家智能体
writer = Agent(
name="Writer",
instructions="Write engaging, well-structured content based on research findings"
)
# 组建团队
team = AgentTeam(agents=[researcher, writer])
# 启动任务
team.start("Create a comprehensive blog post about the future of AI agents")还可以用YAML创建智能体:
如果你不想写代码,PraisonAI也支持用YAML文件配置智能体。创建一个agents.yaml文件:
framework: praisonai
topic: "Write a blog post about AI trends"
agents:
researcher:
role: Research Analyst
goal: Research AI trends and gather information
instructions: "Find accurate, up-to-date information about the latest AI trends"
writer:
role: Content Writer
goal: Write engaging blog posts
instructions: "Write clear, engaging content based on the research findings"然后直接运行:
praisonai agents.yaml两个智能体会自动协作,完成整个任务流程!
可视化编排:拖拽创建工作流
PraisonAI提供了Flow Visual Builder:
pip install "praisonai[flow]"
praisonai flow打开浏览器访问 http://localhost:7861,你就能用拖拽组件的方式,创建复杂的多智能体工作流。
Claw Dashboard:管理你的AI军团
Claw是PraisonAI的仪表盘界面,提供完整的管理功能:
pip install "praisonai[claw]"
praisonai claw访问 http://localhost:8082,你可以:
你还可以轻松创建自定义工具:
from praisonaiagents import Agent, tool
@tool
def search(query: str) -> str:
"""Search the web for information."""
return f"Results for: {query}"
agent = Agent(instructions="You are a helpful assistant", tools=[search])支持PostgreSQL、MySQL、SQLite、MongoDB、Redis等20+数据库:
from praisonaiagents import Agent, db
agent = Agent(
name="Assistant",
db=db(database_url="postgresql://localhost/mydb"),
session_id="my-session"
)PraisonAI 彻底改变了多智能体开发的游戏规则。
它让AI从只能聊天问答,变成真正能跑完一整套工作流程的生产力工具。
无论你是想快速做一个原型,还是要构建企业级的AI系统,PraisonAI都是值得尝试的选择。
GitHub: https://github.com/MervinPraison/PraisonAI
如果本文对您有帮助,也请帮忙点个 赞👍 + 在看 哈!❤️
在看你就赞赞我!