AgentScope: A Flexible yet Robust Multi-Agent Platform.
Project description
中文主页 | Documentation | Roadmap
What is AgentScope 2.0?
AgentScope 2.0 is a production-ready, easy-to-use agent framework with essential abstractions that work with rising model capability and built-in support for .
- Event System → A unified event bus to the frontend and human-in-the-loop support.
- Permission System → Fine-grained, configurable control over tools and resources.
- Multi-tenancy & Multi-session Service → Production-grade serving with isolation across tenants and sessions.
- Workspace / Sandbox Support → Run tools and code in isolated environments, with built-in backends for local, Docker, and E2B.
- Extensible Middleware System → Composable hooks to customize and extend the agent's reasoning-acting loop.
We design for increasingly agentic LLMs. Our approach leverages the models' reasoning and tool use abilities rather than constraining them with strict prompts and opinionated orchestrations.
News
Community
Welcome to join our community on
| Discord | DingTalk |
|---|---|
Quickstart
Installation
AgentScope requires Python 3.11 or higher.
From PyPI
uv pip install agentscope
# or
# pip install agentscope
From source
# Pull the source code from GitHub
git clone -b main https://github.com/agentscope-ai/agentscope.git
# Install the package in editable mode
cd agentscope
uv pip install -e .
# or
# pip install -e .
Hello AgentScope!
Start your first agent with AgentScope 2.0:
from agentscope.agent import Agent
from agentscope.tool import Toolkit, Bash, Grep, Glob, Read, Write, Edit
from agentscope.credential import DashScopeCredential
from agentscope.model import DashScopeChatModel
from agentscope.message import UserMsg
from agentscope.event import EventType
import os, asyncio
async def main() -> None:
agent = Agent(
name="Friday",
system_prompt="You're a helpful assistant named Friday.",
model=DashScopeChatModel(
credential=DashScopeCredential(
api_key=os.environ["DASHSCOPE_API_KEY"]
),
model="qwen3.6-plus",
),
toolkit=Toolkit(
tools=[
Bash(),
Grep(),
Glob(),
Read(),
Write(),
Edit(),
]
),
)
async for evt in agent.reply_stream(UserMsg("Tony", "Hi, Friday!")):
# Handle the event stream, e.g., print the message, update UI, etc.
match evt.type:
case EventType.REPLY_START:
...
case EventType.MODEL_CALL_START:
...
case EventType.TEXT_BLOCK_START:
...
case EventType.TEXT_BLOCK_DELTA:
...
case EventType.TEXT_BLOCK_END:
...
# Handle other event types
asyncio.run(main())
Hello Agent Service!
An extensible FastAPI based multi-tenancy, multi-session agent service with pre-built Web UI in examples/web_ui
|
Agent team — a leader agent spawns workers and coordinates them through the built-in team tools. |
|
Task planning — the agent breaks complex work into a tracked plan and updates it as it goes. |
|
Permission control in bypass mode — the agent runs end-to-end without pausing for tool-call confirmations. |
|
Background task offloading — a long-running tool moves to the background; its result later wakes the agent up and the conversation resumes. |
Run the following commands to start the agent service backend and the web UI:
git clone -b main https://github.com/agentscope-ai/agentscope.git
cd agentscope/examples/agent_service
# start the agent service backend
python main.py
Then open another terminal to start the web UI:
cd agentscope/examples/web_ui
# start the webui
pnpm install
pnpm dev
Contributing
We welcome contributions from the community! Please refer to our CONTRIBUTING.md for guidelines on how to contribute.
License
AgentScope is released under Apache License 2.0.
Publications
If you find our work helpful for your research or application, please cite our papers.
@article{agentscope_v1,
author = {Dawei Gao, Zitao Li, Yuexiang Xie, Weirui Kuang, Liuyi Yao, Bingchen Qian, Zhijian Ma, Yue Cui, Haohao Luo, Shen Li, Lu Yi, Yi Yu, Shiqi He, Zhiling Luo, Wenmeng Zhou, Zhicheng Zhang, Xuguang He, Ziqian Chen, Weikai Liao, Farruh Isakulovich Kushnazarov, Yaliang Li, Bolin Ding, Jingren Zhou}
title = {AgentScope 1.0: A Developer-Centric Framework for Building Agentic Applications},
journal = {CoRR},
volume = {abs/2508.16279},
year = {2025},
}
@article{agentscope,
author = {Dawei Gao, Zitao Li, Xuchen Pan, Weirui Kuang, Zhijian Ma, Bingchen Qian, Fei Wei, Wenhao Zhang, Yuexiang Xie, Daoyuan Chen, Liuyi Yao, Hongyi Peng, Zeyu Zhang, Lin Zhu, Chen Cheng, Hongzhu Shi, Yaliang Li, Bolin Ding, Jingren Zhou}
title = {AgentScope: A Flexible yet Robust Multi-Agent Platform},
journal = {CoRR},
volume = {abs/2402.14034},
year = {2024},
}
Contributors
All thanks to our contributors:
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 agentscope-2.0.1.tar.gz.
File metadata
- Download URL: agentscope-2.0.1.tar.gz
- Upload date:
- Size: 351.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f6035eb67a71a433f3a679cf8d79415185150d5f2be2e7e1d8ee1e2f1f0637a
|
|
| MD5 |
bf2b02332a0f15b0c14e9375622b3aed
|
|
| BLAKE2b-256 |
36278c66102f6afbda017a946304a4e9c5fcf8f6e53b78b968be010929ece8d8
|
File details
Details for the file agentscope-2.0.1-py3-none-any.whl.
File metadata
- Download URL: agentscope-2.0.1-py3-none-any.whl
- Upload date:
- Size: 478.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec54aa13c0fae0944116d3e2875528d126f86588085b801d46907c22c253db5
|
|
| MD5 |
fbea33b18589faad240d365285dbd4c7
|
|
| BLAKE2b-256 |
16f2e4c8c1c97c8cf18d9d8b81d3ecabcfe02392b9c4f6811f57203e3665f013
|