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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install qwen-web-agent - After installation, invoke the skill by name or use
/qwen-web-agent - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.
How do I install Qwen Web Agent?
Run "/install qwen-web-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Qwen Web Agent free?
Yes, Qwen Web Agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Qwen Web Agent support?
Qwen Web Agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Qwen Web Agent?
It is built and maintained by Derek Song (@dereksongyang); the current version is v1.0.0.