Qwen Web Agent
/install qwen-web-agent
Qwen Web Agent
Browser automation for 通义千问 (qianwen.com) using Playwright. Login session persists at ~/.qwen_session/.
Quick Start
Single-turn
python scripts/qwen_agent.py "你的问题"
echo "你的问题" | python scripts/qwen_agent.py
Multi-turn
printf "问题1\
问题2\
关闭" | python scripts/qwen_multi_agent.py
First Run (Manual Login Required)
The first launch opens a Chromium window — complete login in the browser, then the script continues automatically. Subsequent runs reuse the saved session.
Scripts
scripts/qwen_agent.py
Single-turn Q&A. Sends one query, waits for the streaming response to stabilize, saves to last_output.md, then cleans up the conversation.
Parameters:
--timeout N: Override timeout in seconds (default 120)
scripts/qwen_multi_agent.py
Multi-turn conversation. Reads queries from stdin line by line, maintains conversation context, writes all turns to qwen_session_history.md.
Exit commands: 关闭, exit, quit, or EOF
Environment Requirements
- Python 3.x
pip install playwright python-dotenvplaywright install chromium- Display server (X11/Wayland) or Xvfb for headed mode
Architecture
Both scripts use Playwright async API with a persistent browser context. The response capture logic polls DOM selectors (#qk-markdown-react, .chat-answers-card-wrap, etc.) until the text stabilizes (streaming detection). Multi-turn additionally tracks response element count to distinguish new responses from cached ones.
References
See references/使用说明.md for detailed usage documentation.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install qwen-web-agent - 安装完成后,直接呼叫该 Skill 的名称或使用
/qwen-web-agent触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Qwen Web Agent 是什么?
Browser automation for 通义千问 (Qwen) web interface at qianwen.com. Use when the agent needs to ask questions to Qwen AI and get back responses via browser auto... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。
如何安装 Qwen Web Agent?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install qwen-web-agent」即可一键安装,无需额外配置。
Qwen Web Agent 是免费的吗?
是的,Qwen Web Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Qwen Web Agent 支持哪些平台?
Qwen Web Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Qwen Web Agent?
由 Derek Song(@dereksongyang)开发并维护,当前版本 v1.0.0。