Skip to content
Qwen-Agent logo

Qwen-Agent

Verified

Open-source framework for building Qwen-based LLM agents with tool calling and planning.

Autonomous AgentsAgent Frameworks 16.5kOpen source
View on GitHub
Updated 2026-06-15
Qwen-Agent GitHub repository

What is Qwen-Agent?

Qwen-Agent is a Python framework that turns Qwen language models into capable agents. It supplies built-in support for function calling, multi-step planning, retrieval-augmented generation, and persistent memory so agents can complete complex tasks.

Developers connect the framework to either DashScope or a self-hosted OpenAI-compatible endpoint. The library then handles prompt construction, tool execution loops, and optional GUI or MCP integrations.

It is intended for Python users who want to prototype or deploy agents quickly without writing low-level orchestration code from scratch.

Capabilities

tool usage
multi-step planning
memory management
code interpreter
rag support
mcp integration

What you can build with Qwen-Agent

Browser Assistant

An agent that can search the web, open pages, and summarize findings using built-in browsing tools.

Code Interpreter

Run and debug Python code in an interactive session while the agent plans and iterates on solutions.

Custom Assistant

Build domain-specific assistants by registering your own tools and memory stores on top of any Qwen model.

Install Qwen-Agent

Install
pip install -U "qwen-agent[gui,rag,code_interpreter,mcp]"
Quick start
pip install -U "qwen-agent[gui,rag,code_interpreter,mcp]"
# Or use `pip install -U qwen-agent` for the minimal requirements.
# The optional requirements, specified in double brackets, are:
#   [gui] for Gradio-based GUI support;
#   [rag] for RAG support;
#   [code_interpreter] for Code Interpreter support;
#   [mcp] for MCP support.
  1. 1Install via pip with optional extras for GUI, RAG, code execution, and MCP support.
  2. 2Set DASHSCOPE_API_KEY or start a local vLLM/Ollama server exposing an OpenAI-compatible endpoint.
  3. 3Import Agent and LLM classes from qwen_agent and configure them with your model settings.
  4. 4Register tools or use the provided examples such as assistant_qwen3.py.
  5. 5Run the agent in a Python script or launch the Gradio GUI for interactive testing.

Works with

PythonvLLMGradioMCP

Qwen-Agent: pros & cons

Pros

  • +Native support for the latest Qwen models including vision and reasoning variants
  • +Clean abstractions for tool calling, planning, and memory reduce boilerplate
  • +Active development with frequent model and benchmark updates
  • +Includes both CLI examples and a Gradio-based GUI

Cons

  • Code interpreter is not sandboxed and is meant only for local testing
  • GUI requires Python 3.10 or newer
  • Best performance still depends on access to strong Qwen endpoints or GPUs
Did you find this helpful?

Frequently asked questions

No. You can run it with a free or self-hosted Qwen model, though DashScope offers a convenient paid option.

User reviews

Verified reviews from the community shape this listing's rating.

Loading reviews…

Sign in to review

Promote Qwen-Agent

Add this badge to your website, or share the tool.

DFeatured on DhanasviQwen-Agent 1