Cooragent is an AI agent collaboration community. In this community, you can create powerful agents with a single sentence and collaborate with other agents to complete complex tasks. Agents can be freely combined, creating infinite possibilities. At the same time, you can also publish your agents to the community and share them with others.
When building and refining agents becomes simple enough, the true AGI era will arrive. The core goals of Cooragent are: helping users quickly build agents, quickly build workflows, and quickly refine workflows.
Cooragent Agent Studio is an online agent studio that can quickly generate intelligent agents capable of accomplishing tasks in various scenarios. It supports usage anytime and anywhere, and at the same time, allows you to manage and share the agents you have created. Free to try Cooragent Agent Studio
Cooragent has two task modes: Agent Factory and Agent Workflow.
Streamlining workflow construction is crucial for leveraging Agents effectively in production environments. Traditional methods rely heavily on developer expertise, making tool selection, prompt engineering, and architectural decisions time-consuming and labor-intensive. Cooragent introduces an innovative approach with three distinct workflow modes: Launch, Polish, and Production.
store/workflow) for future reuse and modification. In the CLI tool, users can start Launch mode using the run-l command.run-o command.run-p command.Best Practices:
git clone https://github.com/LeapLabTHU/cooragent.git
cd cooragent
conda create -n cooragent python=3.12
conda activate cooragent
pip install -e .
# Optional: If you need to use the browser tool
playwright install
# Configure environment
cp .env.example .env
# Edit .env file and fill in your API keys
python cli.py
git clone https://github.com/LeapLabTHU/cooragent.git
cd cooragent
uv python install 3.12
uv venv --python 3.12
source .venv/bin/activate # For Windows: .venv\Scripts\activate
uv sync
# Optional: If you need to use the browser tool
playwright install
# Configure environment
cp .env.example .env
# Edit .env file and fill in your API keys
# Run the project
uv run cli.py
Note: If running the project's CLI tool on Windows, besides the steps above, you also need to install additional dependencies. For details, please refer to Windows Platform Support.
Create a .env file in the project root directory and configure the following environment variables:
# Note: The Browse tool has a long wait time and is disabled by default. It can be enabled by setting: `USE_BROWSER=True`
cp .env.example .env
Cooragent provides a series of developer tools to help developers quickly build agents. Through the CLI tools, developers can quickly create, edit, and delete agents. The CLI is designed for efficiency and ease of use, significantly reducing the tediousness of manual operations and allowing developers to focus more on the design and optimization of the agents themselves.
Enter the cooragent command tool interface
python cli.py
run-l -t agent_workflow -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.'
run-o -u <user-id>
run-p -u <user-id> -w <workflow-id> -m <message>
list-agents -u <user-id> -m <regex>
remove-agent -n <agent_name> -u <user-id>
run-l -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.'
Enhance your Agents by integrating external services and tools via the Model Context Protocol (MCP). This is similar to how desktop AI assistants like Claude Desktop manage external functionalities.
Configuration:
Locate/Create Config File:
Find or create config/mcp.json in your project root.
cd ./config
cp mcp.json.example mcp.json
Add MCP Services: Define your MCP services in this JSON file. Each service has a unique key and a configuration object.
Example (config/mcp.json):
{
"mcpServers": {
"aws-kb-retrieval": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-aws-kb-retrieval"],
"env": {
"AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_HERE",
"AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
"AWS_REGION": "YOUR_AWS_REGION_HERE"
}
},
"AMAP": {
"url": "https://mcp.amap.com/sse",
"env": {
"AMAP_MAPS_API_KEY": "AMAP_MAPS_API_KEY"
}
}
}
}
How it Works:
Once configured, Cooragent registers these MCP services as available tools. Agents can then select and use these tools during task planning and execution, enabling more complex functionalities. After configuration of AMAP mcpServers (GaoDe Map) as the example, you may be able to run the case below:
Create a navigation agent that focuses on navigation and uses map-related tools to plan the route from Beijing West Railway Station to the Forbidden City.
We welcome contributions of all forms! Whether it's fixing typos, improving documentation, or adding new features, your help will be greatly appreciated. Please check out our contribution guidelines to learn how to get started.
Join our group on wechat and share your experience with other developers!
Core contributors: Zheng Wang, Shenzhi Wang, Yue Wu, Shiji Song, Gao Huang
@misc{wang2025cooragent,
title = {Cooragent: An AI Agent Collaboration Community},
author = {Zheng Wang, Shenzhi Wang, Yue Wu, Shiji Song, Gao Huang},
howpublished = {\url{https://github.com/LeapLabTHU/cooragent}},
year = {2025}
}
Special thanks to all the open-source projects and contributors that made cooragent possible. We stand on the shoulders of giants.
Python
98.5%
Cooragent is an AI agent collaboration community. In this community, you can create powerful agents with a single sentence and collaborate with other agents to complete complex tasks. Agents can be freely combined, creating infinite possibilities. At the same time, you can also publish your agents to the community and share them with others.
When building and refining agents becomes simple enough, the true AGI era will arrive. The core goals of Cooragent are: helping users quickly build agents, quickly build workflows, and quickly refine workflows.
Cooragent Agent Studio is an online agent studio that can quickly generate intelligent agents capable of accomplishing tasks in various scenarios. It supports usage anytime and anywhere, and at the same time, allows you to manage and share the agents you have created. Free to try Cooragent Agent Studio
Cooragent has two task modes: Agent Factory and Agent Workflow.
Streamlining workflow construction is crucial for leveraging Agents effectively in production environments. Traditional methods rely heavily on developer expertise, making tool selection, prompt engineering, and architectural decisions time-consuming and labor-intensive. Cooragent introduces an innovative approach with three distinct workflow modes: Launch, Polish, and Production.
store/workflow) for future reuse and modification. In the CLI tool, users can start Launch mode using the run-l command.run-o command.run-p command.Best Practices:
git clone https://github.com/LeapLabTHU/cooragent.git
cd cooragent
conda create -n cooragent python=3.12
conda activate cooragent
pip install -e .
# Optional: If you need to use the browser tool
playwright install
# Configure environment
cp .env.example .env
# Edit .env file and fill in your API keys
python cli.py
git clone https://github.com/LeapLabTHU/cooragent.git
cd cooragent
uv python install 3.12
uv venv --python 3.12
source .venv/bin/activate # For Windows: .venv\Scripts\activate
uv sync
# Optional: If you need to use the browser tool
playwright install
# Configure environment
cp .env.example .env
# Edit .env file and fill in your API keys
# Run the project
uv run cli.py
Note: If running the project's CLI tool on Windows, besides the steps above, you also need to install additional dependencies. For details, please refer to Windows Platform Support.
Create a .env file in the project root directory and configure the following environment variables:
# Note: The Browse tool has a long wait time and is disabled by default. It can be enabled by setting: `USE_BROWSER=True`
cp .env.example .env
Cooragent provides a series of developer tools to help developers quickly build agents. Through the CLI tools, developers can quickly create, edit, and delete agents. The CLI is designed for efficiency and ease of use, significantly reducing the tediousness of manual operations and allowing developers to focus more on the design and optimization of the agents themselves.
Enter the cooragent command tool interface
python cli.py
run-l -t agent_workflow -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.'
run-o -u <user-id>
run-p -u <user-id> -w <workflow-id> -m <message>
list-agents -u <user-id> -m <regex>
remove-agent -n <agent_name> -u <user-id>
run-l -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.'
Enhance your Agents by integrating external services and tools via the Model Context Protocol (MCP). This is similar to how desktop AI assistants like Claude Desktop manage external functionalities.
Configuration:
Locate/Create Config File:
Find or create config/mcp.json in your project root.
cd ./config
cp mcp.json.example mcp.json
Add MCP Services: Define your MCP services in this JSON file. Each service has a unique key and a configuration object.
Example (config/mcp.json):
{
"mcpServers": {
"aws-kb-retrieval": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-aws-kb-retrieval"],
"env": {
"AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_HERE",
"AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
"AWS_REGION": "YOUR_AWS_REGION_HERE"
}
},
"AMAP": {
"url": "https://mcp.amap.com/sse",
"env": {
"AMAP_MAPS_API_KEY": "AMAP_MAPS_API_KEY"
}
}
}
}
How it Works:
Once configured, Cooragent registers these MCP services as available tools. Agents can then select and use these tools during task planning and execution, enabling more complex functionalities. After configuration of AMAP mcpServers (GaoDe Map) as the example, you may be able to run the case below:
Create a navigation agent that focuses on navigation and uses map-related tools to plan the route from Beijing West Railway Station to the Forbidden City.
We welcome contributions of all forms! Whether it's fixing typos, improving documentation, or adding new features, your help will be greatly appreciated. Please check out our contribution guidelines to learn how to get started.
Join our group on wechat and share your experience with other developers!
Core contributors: Zheng Wang, Shenzhi Wang, Yue Wu, Shiji Song, Gao Huang
@misc{wang2025cooragent,
title = {Cooragent: An AI Agent Collaboration Community},
author = {Zheng Wang, Shenzhi Wang, Yue Wu, Shiji Song, Gao Huang},
howpublished = {\url{https://github.com/LeapLabTHU/cooragent}},
year = {2025}
}
Special thanks to all the open-source projects and contributors that made cooragent possible. We stand on the shoulders of giants.
Python
98.5%