Stop Building Lonely AI Agents: Collaborate & Conquer with Cooragent
Tired of AI agents that can't play well together? Discover Cooragent, the AI agent collaboration community that lets you create, combine, and conquer complex tasks. Build powerful agents with a single sentence and unleash their collective intelligence. Learn how to leverage the power of collaborative AI.
What is Cooragent and Why Should You Care?
Cooragent is a groundbreaking platform designed for AI agent collaboration. It allows you to:
- Create agents effortlessly: Describe your desired agent in a single sentence, and Cooragent will bring it to life.
- Orchestrate complex workflows: Combine multiple agents to tackle intricate tasks that would be impossible for a single agent to handle.
- Share and collaborate: Publish your agents to the community and benefit from the collective knowledge of other AI enthusiasts.
Imagine a world where AI agents can seamlessly collaborate to solve real-world problems. That's the power of Cooragent.
Two Powerful Modes: Agent Factory and Agent Workflow
Cooragent operates through two distinct yet interconnected modes:
1. Agent Factory: Build Your Dream Agent in Minutes
Forget complex prompt engineering. Agent Factory simplifies agent creation:
- Describe, don't code: Simply describe the agent you need, and Cooragent will generate it.
- Intelligent analysis: The system understands your requirements through deep analysis and memory.
- Automatic optimization: The Planner selects appropriate tools, refines prompts, and ensures optimal agent performance.
Example: Want an agent that analyzes Xiaomi stock trends? Just tell Cooragent: "Create a stock analysis expert agent..."
2. Agent Workflow: Unleash the Power of Collaboration
Agent Workflow makes collaborative AI a reality:
- Describe your task: Outline the complex task you wish to complete.
- Intelligent agent selection: Cooragent automatically selects the best agents for the job.
- Orchestrated execution: The Planner combines agents, plans task steps, and distributes assignments.
- Seamless collaboration: Each agent receives its designated task and works together to achieve the common goal.
Example: Planning a trip to Yunnan? Cooragent can combine agents for web crawling, browser operation, report writing, and file management to create your perfect itinerary.
Quick Installation: Get Started in Minutes
Cooragent is designed for easy installation and setup. Choose your preferred method:
Installation Using Conda
- Clone the repository:
git clone https://github.com/LeapLabTHU/cooragent.git
- Navigate to the directory:
cd cooragent
- Create a Conda environment:
conda create -n cooragent python=3.12
- Activate the environment:
conda activate cooragent
- Install Cooragent:
pip install -e .
- (Optional) Install browser tools:
playwright install
- Configure environment variables:
cp .env.example .env
and edit the.env
file. - Run the project:
python cli.py
Installation Using venv
- Clone the repository:
git clone https://github.com/LeapLabTHU/cooragent.git
- Navigate to the directory:
cd cooragent
- Create a virtual environment:
python -m venv .venv
- Activate the environment:
source .venv/bin/activate
(or.venv\Scripts\activate
on Windows) - Install dependencies:
pip install -r requirements.txt
- (Optional) Install browser tools:
playwright install
- Configure environment variables:
cp .env.example .env
and edit the.env
file. - Run the project:
python cli.py
Cooragent's Edge: Comprehensive Compatibility
Cooragent stands out with its exceptional compatibility:
- Deep Langchain Integration: Seamlessly use Langchain components like Prompts, Chains, and Memory modules.
- MCP (Model Context Protocol) Support: Facilitates standardized agent interaction for efficient context management.
- Comprehensive API Access: Automate agent management, integrate tasks, and monitor performance programmatically.
This commitment to compatibility ensures a smooth experience for developers of all backgrounds.
CLI Tools: Your Command-Line Powerhouse for AI Agent Management
Cooragent's Command Line Interface (CLI) is a game-changer, designed for creating, editing, and deleting agents, freeing you to focus on design and optimization.
Here's how the CLI empowers you:
- Create with a single command: Streamline agent creation and skip the prompt engineering. Run:
run -t agent_factory -u test -m 'Create a stock analysis expert agent to analyze the Xiaomi stock trend, today is 22 April, 2025, look over the past month, analyze the big news about Xiaomi, then predict the stock price trend for the next trading day, and provide buy or sell recommendations.'
- Edit with ease: Tweak and refine agents to perfection using:
edit-agent -n <agent_name> -i
- List agents: Get a bird’s-eye view of your agent army on the go with:
list-agents -u <user-id> -m <regex>
- Remove redundant agents: declutter your workspace using:
remove-agent -n <agent_name> -u <user-id>
- Collaborative tasks: Command an army of agents to take on complex projects!
run -t agent_workflow -u test -m 'Use the task planning agent, web crawler agent, code execution agent, browser operation agent, report writing agent, and file operation agent to plan a trip to Yunnan for the May Day holiday in 2025. First, run the web crawler agent to fetch information about Yunnan tourist attractions, use the browser operation agent to browse the attraction information and select the top 10 most worthwhile attractions. Then, plan a 5-day itinerary, use the report writing agent to generate a travel report, and finally use the file operation agent to save the report as a PDF file.'
Join the Cooragent Community
Ready to revolutionize your AI agent development? Join the Cooragent community and unlock the power of collaborative AI. Contribute your expertise, share your agents, and explore the limitless possibilities of Cooragent. Together, we can build a future where AI agents work in harmony to solve the world's most challenging problems.