A Python package for building intelligent multi-agent systems using CrewAI
Project description
CrewAIMaster
A Python package for building intelligent multi-agent systems using CrewAI
CrewAIMaster is an advanced framework that automatically generates, manages, and executes multi-agent crews based on natural language task descriptions. It provides a CLI interface and comprehensive backend system for creating intelligent AI agents with memory, tools, and safety guardrails.
๐ฆ Installation
# install from PyPI (when available)
pip install crewaimaster
# Or Install from source (recommended for development)
git clone https://github.com/VishApp/crewaimaster
cd crewaimaster
python -m venv venv
source venv/bin/activate
pip install -e .
๐ฌ Demo
๐น Video Walkthrough
Click the image above to watch a complete walkthrough of CrewAIMaster in action
๐ธ Screenshots
CLI Interface
CrewAIMaster Providers
CrewAIMaster Help
๐ Quick Start
Prerequisites
# Install Python 3.10+
python --version
# Configure your LLM provider (see supported providers)
crewaimaster providers
# Quick setup with OpenAI (most common)
crewaimaster providers --configure openai --api-key "your-openai-key" --model "gpt-4"
1. Create Your First Crew with AI Orchestration
# Create an intelligent crew using AI analysis
crewaimaster create "Write a comprehensive market analysis report for electric vehicles in 2024" --name electric_vehicles_market_analysis_crew
2. Execute the Crew
# Run the crew (requires configured LLM provider)
crewaimaster run electric_vehicles_market_analysis_crew
# With additional context:
crewaimaster run electric_vehicles_market_analysis_crew --input "Focus on Tesla, BMW, and Volkswagen specifically"
3. Alternative Execution (Direct Script)
Generated crews can also be executed directly using environment variables:
# Navigate to the generated crew directory
cd crews/electric_vehicles_market_analysis_crew
# Run using standard environment variables
export OPENAI_API_KEY="your-openai-key"
./run.sh "your input"
# Or run using CrewAIMaster-specific environment variables
export CREWAIMASTER_LLM_PROVIDER="openai"
export CREWAIMASTER_LLM_MODEL="gpt-4"
export CREWAIMASTER_LLM_API_KEY="your-openai-key"
export CREWAIMASTER_LLM_BASE_URL="https://api.openai.com/v1"
๐ Development Workflow
Typical CrewAIMaster Workflow
flowchart LR
A["`**1. Task Definition**
Natural Language Task`"] --> B["`**2. AI Analysis**
๐ค Task Complexity
๐ฏ Agent Requirements
๐ ๏ธ Tool Selection`"]
B --> C["`**3. Crew Creation**
๐ฅ Agent Design
๐ง Tool Assignment
๐ Task Orchestration`"]
C --> D["`**4. Execution**
๐ Multi-Agent Coordination
๐ Real-time Processing
๐ Progress Monitoring`"]
D --> E["`**5. Results & Analytics**
๐ Output Generation
๐ Performance Metrics
๐พ Persistent Storage`"]
E --> F["`**6. Optimization**
๐ง Crew Modification
โก Performance Tuning
๐ค Export/Backup`"]
F --> G["`**7. Reuse & Scale**
๐ Crew Reusability
๐ Knowledge Building
๐ Production Deployment`"]
classDef stepStyle fill:#f9f9f9,stroke:#333,stroke-width:2px,color:#333
class A,B,C,D,E,F,G stepStyle
๐๏ธ Architecture
CrewAIMaster follows a clean, layered architecture designed for intelligent multi-agent system creation and execution:
flowchart TD
%% User Entry Point
User[๐ค User Input<br/>Natural Language Task] --> CLI[๐ฅ๏ธ CLI Interface<br/>crewaimaster create/run/providers]
%% Configuration Layer
CLI --> Config[โ๏ธ Configuration<br/>config.yaml<br/>LLM Providers]
%% AI Orchestration Core
CLI --> MasterAgent[๐ง Master Agent<br/>Intelligent Orchestrator]
%% AI Analysis Pipeline
MasterAgent --> TaskAnalyzer[๐ Task Analyzer<br/>โข Complexity Assessment<br/>โข Requirements Extraction<br/>โข Agent Planning]
TaskAnalyzer --> AgentDesigner[๐ฅ Agent Designer<br/>โข Role Definition<br/>โข Tool Selection<br/>โข Capability Mapping]
AgentDesigner --> CrewOrchestrator[๐ญ Crew Orchestrator<br/>โข Team Assembly<br/>โข Process Selection<br/>โข Workflow Design]
%% Core Generation Engine
CrewOrchestrator --> CrewDesigner[๐ง Crew Designer<br/>File-Based Generator]
Config --> CrewDesigner
CrewDesigner --> FileGen[๐ File Generator<br/>โข Project Structure<br/>โข Python Modules<br/>โข YAML Configs]
%% Output Generation
FileGen --> GeneratedFiles{๐ Generated Crew Project}
%% Generated Project Structure
GeneratedFiles --> AgentYAML[agents.yaml<br/>Agent Definitions]
GeneratedFiles --> TaskYAML[tasks.yaml<br/>Task Specifications]
GeneratedFiles --> CrewPY[crew.py<br/>CrewAI Implementation]
GeneratedFiles --> MainPY[main.py<br/>Execution Entry Point]
%% Execution Runtime
MainPY --> CrewAI[๐ CrewAI Runtime<br/>Multi-Agent Execution]
CrewAI --> AgentA[๐ค Agent A<br/>Specialized Role]
CrewAI --> AgentB[๐ค Agent B<br/>Specialized Role]
CrewAI --> AgentC[๐ค Agent C<br/>Specialized Role]
%% Tool Integration
AgentA --> Tools[๐ ๏ธ Tool Registry<br/>โข Web Search<br/>โข File Operations<br/>โข Code Execution<br/>โข Custom Tools]
AgentB --> Tools
AgentC --> Tools
%% LLM Integration
Config --> LLMProvider[๐ LLM Provider<br/>โข OpenAI<br/>โข Anthropic<br/>โข Google<br/>โข Custom APIs]
LLMProvider --> AgentA
LLMProvider --> AgentB
LLMProvider --> AgentC
LLMProvider --> MasterAgent
%% Memory & Knowledge
CrewAI --> Memory[๐ง Memory System<br/>โข Agent Memory<br/>โข Shared Context<br/>โข Knowledge Base]
%% Safety & Guardrails
Tools --> Guardrails[๐ก๏ธ Guardrails<br/>โข Safety Checks<br/>โข Content Filtering<br/>โข Validation]
%% Final Output
CrewAI --> Results[๐ Results<br/>Task Completion<br/>Generated Content]
%% Styling
classDef userLayer fill:#e8f5e8,stroke:#1b5e20,stroke-width:3px,color:#000
classDef cliLayer fill:#e1f5fe,stroke:#01579b,stroke-width:2px,color:#000
classDef aiLayer fill:#f3e5f5,stroke:#4a148c,stroke-width:2px,color:#000
classDef coreLayer fill:#fff8e1,stroke:#ff8f00,stroke-width:2px,color:#000
classDef fileLayer fill:#fce4ec,stroke:#880e4f,stroke-width:2px,color:#000
classDef runtimeLayer fill:#fff3e0,stroke:#e65100,stroke-width:2px,color:#000
classDef toolLayer fill:#f1f8e9,stroke:#33691e,stroke-width:2px,color:#000
class User userLayer
class CLI,Config cliLayer
class MasterAgent,TaskAnalyzer,AgentDesigner,CrewOrchestrator aiLayer
class CrewDesigner,FileGen,LLMProvider coreLayer
class GeneratedFiles,AgentYAML,TaskYAML,CrewPY,MainPY fileLayer
class CrewAI,AgentA,AgentB,AgentC,Memory,Results runtimeLayer
class Tools,Guardrails toolLayer
๐ Data Flow Explanation
- User Input: Natural language task description via CLI
- AI Analysis: Master Agent analyzes complexity and requirements
- Intelligent Design: AI agents design optimal crew composition
- Code Generation: Automated creation of CrewAI project files
- Execution: Generated crew runs with real-time coordination
- Results: Task completion with generated content and insights
๐๏ธ Architecture Overview
CrewAIMaster's architecture is designed for scalability, modularity, and intelligent automation:
๐ฏ User Interface Layer
- CLI Interface: Rich terminal experience with typer and rich libraries
- Command Processing: Handles user commands and provides interactive feedback
- Input Validation: Ensures commands are properly formatted and validated
๐ค AI Orchestration Layer (Core Innovation)
- MasterAgentCrew: Main orchestrator using AI agents for intelligent decision-making
- TaskAnalyzerAgent: Advanced NLP analysis of user tasks and requirements
- AgentDesignerAgent: Intelligent design of agents based on task requirements
- CrewOrchestratorAgent: Optimizes crew composition and execution strategies
โ๏ธ Core Processing Layer
- CrewDesigner: Handles CrewAI integration and agent instantiation
- TaskAnalyzer: Legacy fallback for task analysis with pattern matching
๐ ๏ธ Tool Ecosystem
- Tool Registry: Centralized management of all available tools
- Available Tools: Comprehensive library of built-in and custom tools
- Guardrails: Safety and validation systems for secure operation
๐ Execution Engine
- CrewAI Engine: Core execution engine for running multi-agent crews
- Agent Memory: Sophisticated memory management for agent learning and context
๐ Data Flow
- User Input โ CLI processes commands and validates input
- AI Analysis โ MasterAgentCrew analyzes task using specialized AI agents
- Crew Creation โ CrewDesigner instantiates agents with appropriate tools
- Execution โ CrewAI Engine runs the crew with real-time monitoring
๐ ๏ธ Configuration
LLM Provider Setup
CrewAIMaster uses a .crewaimaster/config.yaml configuration file for all settings. Environment variables are no longer supported - all configuration must be done via CLI commands or direct config file editing.
๐ View Available Providers
# See all supported providers and configuration examples
crewaimaster providers
๐ CLI Configuration (All Providers)
Configure any supported provider using the CLI:
OpenAI:
crewaimaster providers --configure openai --api-key "your-openai-key" --model "gpt-4"
# Automatically sets base_url to https://api.openai.com/v1
Anthropic:
crewaimaster providers --configure anthropic --api-key "your-anthropic-key" --model "claude-3-sonnet-20240229"
# Automatically sets base_url to https://api.anthropic.com/v1
Google:
crewaimaster providers --configure google --api-key "your-google-key" --model "gemini-pro"
# Automatically sets base_url to https://generativelanguage.googleapis.com/v1beta
DeepSeek:
crewaimaster providers --configure deepseek --api-key "your-deepseek-key" --model "deepseek-chat"
# Automatically sets base_url to https://api.deepseek.com/v1
Custom Provider:
crewaimaster providers --configure custom --api-key "your-key" --base-url "https://api.example.com/v1" --model "gpt-4o-mini"
# Requires explicit base_url for custom endpoints
๐ค Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run tests:
pytest tests/ - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
Development Setup
# Clone and setup development environment
git clone https://github.com/VishApp/crewaimaster
cd crewaimaster
# Install development dependencies
pip install -e .
๐ License
CrewAIMaster is released under the MIT License. See LICENSE for details.
๐ Acknowledgments
- CrewAI - Core multi-agent framework
- LangChain - LLM integration tools
- Sentence Transformers - Text embeddings
- FAISS - Vector similarity search
๐ Links
Built with โค๏ธ for the AI community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewaimaster-0.1.3.tar.gz.
File metadata
- Download URL: crewaimaster-0.1.3.tar.gz
- Upload date:
- Size: 376.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac5d56b73f53c2de7e3d32eab21e88019e12ee86c746c040ac9343ed7c01637
|
|
| MD5 |
244eb8ebac8de2d99d329da62efe0602
|
|
| BLAKE2b-256 |
b19f11d9a70fdb91fba1674292369afa167a2d60f0d5ec0cf7286053e1792bf3
|
File details
Details for the file crewaimaster-0.1.3-py3-none-any.whl.
File metadata
- Download URL: crewaimaster-0.1.3-py3-none-any.whl
- Upload date:
- Size: 123.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3f111f41153be3f996b651d32581cee137b22445f5e0cae137623dc95cde72
|
|
| MD5 |
3ca2cf7751ae00ac034a6f7fc9b49d3b
|
|
| BLAKE2b-256 |
0218851f8dfad90b9c30f675c41adbe7c8a5742098cc1709a58ba9c21fab8222
|