█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

CrewAI

Role-playing AI agents की टीमें बनाएं जो काम बांटें और एक लक्ष्य के लिए मिलकर काम करें

Multi-Agent Systemsओपन सोर्स
भाषा
Python
लाइसेंस
MIT
कवरेज
1 story
$uv pip install crewai
संक्षेप में

CrewAI क्या है?

CrewAI Role-playing AI agents की टीमें बनाएं जो काम बांटें और एक लक्ष्य के लिए मिलकर काम करें. यह Agents & Automation टूल्स की Multi-Agent Systems श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: crewAI इंस्टॉल करें.

सारांश

CrewAI multi-agent सिस्टम बनाने के लिए एक Python framework है। आप हर agent को एक role, एक goal और एक backstory देते हैं, फिर कई agents को मिलाकर एक "crew" बनाते हैं, जो किसी काम को tasks में बांटती है और उन पर मिलकर काम करती है। यह शुरू से लिखा गया है और LangChain या दूसरे agent frameworks पर निर्भर नहीं है।

यह उन Python developers के लिए है जिन्हें एक LLM call से ज़्यादा चाहिए, लेकिन जो agent orchestration को खुद जोड़ना नहीं चाहते। CrewAI के दो मुख्य building blocks हैं: Crews, जो agent की autonomy और collaboration पर ज़ोर देते हैं, और Flows, एक event-driven model जो ज़्यादा सटीक, step-by-step control देता है।

एक multi-agent framework के तौर पर, यह low-level LLM SDKs और पूरे hosted platforms के बीच आता है। आप CLI से project scaffold करते हैं, agents और tasks को YAML में लिखते हैं, और crew को लोकल चलाते हैं या उसे अपने model और tools से जोड़ते हैं।

यह क्या करता है

  • Role, goal और backstory से परिभाषित role-based agents
  • Crews, जो कई agents को tasks के एक सेट पर समन्वित करती हैं
  • Flows, जो single LLM calls के साथ event-driven, step-by-step orchestration देते हैं
  • project scaffold करने और चलाने के लिए CLI: crewai create और crewai run
  • agents और tasks के लिए YAML configuration, जो Python code से अलग रखी जाती है
  • Standalone framework, LangChain या दूसरी agent libraries से स्वतंत्र

शुरू करें

आपको Python >=3.10 <3.14 चाहिए। package इंस्टॉल करें, CLI से project बनाएं, फिर अपनी crew चलाएं।

CrewAI इंस्टॉल करें

uv से core package इंस्टॉल करें। अगर bundled tools चाहिए तो वैकल्पिक tools extra भी जोड़ें।

bashbash
uv pip install crewai
# with optional tools:
uv pip install 'crewai[tools]'

नया project बनाएं

agents और tasks के साथ project का ढांचा बनाएं। इससे YAML config files और एक crew.py बनती है।

bashbash
crewai create crew <project_name>

Agents और tasks परिभाषित करें

Agents और tasks YAML में कॉन्फ़िगर किए जाते हैं और crew.py में CrewBase decorators की मदद से जोड़े जाते हैं।

pythonpython
@CrewBase
class ExampleCrew():
    @agent
    def researcher(self) -> Agent:
        return Agent(config=self.agents_config['researcher'])

    @task
    def research_task(self) -> Task:
        return Task(config=self.tasks_config['research_task'])

    @crew
    def crew(self) -> Crew:
        return Crew(agents=self.agents, tasks=self.tasks)

Crew चलाएं

अपने project root से CLI के साथ चलाएं, या अपनी main script को सीधे call करें।

bashbash
crewai run
# or:
python src/my_project/main.py

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • एक researcher agent और एक writer agent के बीच research-और-लिखने वाले workflow को बांटना
  • कई विशेष agents की ज़रूरत वाली multi-step business processes को automate करना
  • हर step पर सटीक नियंत्रण चाहिए तो Flows के साथ event-driven pipelines बनाना
  • अपने model और tools से जोड़ने से पहले multi-agent ideas को लोकल पर prototype करना

How CrewAI compares

CrewAI alongside other open-source multi-agent systems tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Paperclip★ 119kएक सेल्फ-होस्टेड कंट्रोल प्लेन, जो AI एजेंट्स की टीम को कंपनी की तरह चलाता है, जिसमें ऑर्गनाइज़ेशन चार्ट, टास्क, बजट और अप्रूवल शामिल हैं
Ruflo★ 82.8kClaude Code और Codex के लिए एक एजेंट मेटा-हार्नेस
MetaGPT★ 71.6kएक multi-agent framework जो एक ही prompt से पूरी LLM-आधारित software company का काम करता है
AutoGen★ 62kऐसे multi-agent AI apps बनाएं जिनमें agents एक-दूसरे, tools और इंसानों के साथ बातचीत करें
CrewAI★ 61.4kRole-playing AI agents की टीमें बनाएं जो काम बांटें और एक लक्ष्य के लिए मिलकर काम करें
AgentScope★ 37.1kप्रोडक्शन में चलने वाले मल्टी-एजेंट ऐप्स बनाने के लिए एक Python फ़्रेमवर्क
OpenAI Agents SDK★ 31kMulti-agent workflows बनाने के लिए tools, handoffs और guardrails वाला हल्का Python SDK
A2A★ 26.8kअलग-अलग frameworks के बीच agent discovery और collaboration के लिए खुला Agent2Agent protocol