ScriptsApr 2, 2026·2 min read
Qwen-Agent — Build AI Agents on Qwen Models
Agent framework by Alibaba with function calling, code interpreter, RAG, and MCP support. Built for Qwen 3.0+. 15K+ stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
pip install -U "qwen-agent[gui,rag,code_interpreter,mcp]"
```
```python
from qwen_agent.agents import Assistant
# Create an agent with tools
agent = Assistant(
llm={"model": "qwen-max", "api_key": "YOUR_KEY"},
function_list=["code_interpreter", "web_search"],
system_message="You are a helpful data analyst."
)
# Run a task
messages = [{"role": "user", "content": "Analyze the trend of AI funding in 2025"}]
for response in agent.run(messages):
print(response)
```
---
Intro
Qwen-Agent is an open-source agent framework by the Alibaba Qwen team, designed to build LLM-powered applications on top of Qwen models (3.0+). With 15,800+ GitHub stars, it provides native function calling, a sandboxed code interpreter running in Docker, RAG pipelines for document understanding, MCP tool discovery, and a built-in Gradio GUI for rapid prototyping. It's the official way to build agents with Qwen — the leading open-weight LLM family from China.
Works with: Qwen models (qwen-max, qwen-plus, qwen-turbo), DashScope API, local Qwen deployments. Best for developers building AI agents on the Qwen ecosystem. Setup time: under 5 minutes.
---
🙏
Source & Thanks
> Created by [QwenLM](https://github.com/QwenLM) (Alibaba Qwen Team). Licensed under Apache-2.0.
>
> [Qwen-Agent](https://github.com/QwenLM/Qwen-Agent) — ⭐ 15,800+
Thanks to the Qwen team at Alibaba for open-sourcing both the models and the agent framework.
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.
Related Assets
PocketBase — Backend in One File for AI Apps
Open-source backend with database, auth, file storage, and admin UI in a single executable. Perfect for AI app backends. 57K+ stars.
TokRepo精选
LLM — CLI Swiss Army Knife for Language Models
Run prompts from the terminal, log everything to SQLite, manage 50+ providers via plugins. By Django co-creator. 11K+ stars.
TokRepo精选
Zed — High-Performance AI Code Editor
GPU-accelerated editor built in Rust with multiplayer editing and built-in AI assistant. By the creators of Atom. 78K+ stars.
TokRepo精选