SuperAPIAI Directory

Qwen-Agent

github.com · AI developer platforms

Qwen-Agent is an Agent framework and application collection based on Qwen>=3.0, providing capabilities such as Function Calling, MCP, Code Interpreter, RAG, and Chrome extension, and includes example applications such as Browser Assistant, Code Interpreter, and Custom Assistant, while also serving as the backend for Qwen Chat.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API · 浏览器扩展

About this tool

Qwen-Agent is a framework for developing LLM applications, built on Qwen's instruction following, tool use, planning, and memory capabilities. It also comes with example applications such as Browser Assistant, Code Interpreter, and Custom Assistant. Currently Qwen-Agent serves as the backend for Qwen Chat.

Main capabilities:

  • Function Calling (function calling/tool calling), the LLM class provides function calling capability, and the current default tool calling template natively supports parallel function calling; some Agent classes (such as FnCallAgent and ReActChat) are also built on the function calling capability.
  • MCP: You can select the required tools on the open-source MCP server website and configure the relevant environment, supporting the MCP calling format.
  • Code Interpreter: A code interpreter tool based on a local Docker container; the Agent can autonomously write code according to the specific scenario, execute it safely in an isolated sandbox environment, and return the execution results.
  • RAG: Provides a fast RAG solution for question answering over ultra-long documents (such as 1 million tokens), as well as a more expensive but competitive agent.
  • Chrome extension: Provides the browser assistant BrowserQwen based on Qwen-Agent.

Usage: Install the stable version from PyPI, or install the latest development version from source. A model service needs to be prepared: you can use the model service provided by Alibaba Cloud DashScope, and need to set the environment variable DASHSCOPE_API_KEY to your dedicated API key; you can also deploy the open-source Qwen model yourself, refer to the Qwen2 README to deploy an OpenAI-compatible API service, refer to the vLLM section for high-throughput GPU deployment, and refer to the Ollama section for local CPU (+GPU) deployment. For QwQ and Qwen3 models, it is recommended not to add the --enable-auto-tool-choice and --tool-call-parser hermes parameters, because Qwen-Agent will parse vLLM's tool output itself; for Qwen3-Coder, it is recommended to enable the above two parameters, use vLLM's built-in tool parsing, and combine the use_raw_api parameterNumber usage.

Developing custom Agents: The framework provides atomic components (LLMs inheriting from BaseChatModel, Tools inheriting from BaseTool) as well as high-level components (Agents derived from Agent). In addition to built-in Agent implementations (such as the Assistant class), you can also inherit from the Agent class to develop your own Agent implementation. The framework also provides a GUI interface and supports a Gradio Demo for quickly deploying Agents, allowing you to converse with Agents in a Web UI. For more usage, see the examples directory.

Code interpreter usage: Before enabling the built-in code interpreter tool, ensure that Docker is installed and running on the local operating system; the time required to build the container image for the first time depends on network conditions. The Docker container only mounts the specified working directory and provides basic sandbox isolation, so it should still be used with caution in production environments.

Applicable scenarios:

  • Developing LLM applications and intelligent agents based on Qwen with tool calling, planning, and memory capabilities.
  • Scenarios requiring code interpretation and secure sandbox execution.
  • Question answering over ultra-long documents (such as 1 million tokens).
  • Applications such as browser assistants and custom assistants.

Limitations and notes:

  • The python executor of the Qwen2.5-Math Demo is not sandboxed and is for local testing only, not for production use.
  • The Docker container code interpreter only provides basic sandbox isolation and requires caution in production environments.
  • The GUI requires Python 3.10 or higher.
  • Specific information such as fees, pricing, platform support, and performance is not yet provided.

Update record (as mentioned in the materials): On February 16, 2026, Qwen3.5 was open-sourced; for usage examples, refer to the Qwen3.5 Agent Demo; on January 27, 2026, the agent evaluation benchmark DeepPlanning was open-sourced and Qwen-Agent documentation was added; on September 23, 2025, the Qwen3-VL Tool-call Demo was added, supporting tools such as zoom in, image search, and web search; on July 23, 2025, the Qwen3-Coder Tool-call Demo was added, adding support for the native API tool calling interface; on May 1, 2025, Qwen3 Tool-call Demo and MCP Cookbooks were added; on March 18, 2025, support for the reasoning_content field was added and the default Function Call template was adjusted; on March 7, 2025, the QwQ-32B Tool-call Demo was added, supporting parallel, multi-step, and multi-turn tool calls; on December 3, 2024, the GUI was upgraded to be based on Gradio 5; on September 18, 2024, the Qwen2.5-Math Demo was added.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools