← Back to Skills Marketplace
dereksongyang

Qwen Web Agent

by Derek Song · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
35
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install qwen-web-agent
Description
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...
README (SKILL.md)

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-dotenv
  • playwright 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.

Usage Guidance
Review and likely modify the scripts before installing. In particular, disable or make opt-in the automatic conversation deletion, change the hardcoded /home/derek/... output paths to a location you control, and understand that the skill stores a reusable Qwen login session at ~/.qwen_session/ and sends prompts to qianwen.com.
Capability Analysis
Type: OpenClaw Skill Name: qwen-web-agent Version: 1.0.0 The scripts 'qwen_agent.py' and 'qwen_multi_agent.py' contain hardcoded absolute file paths to a specific user's home directory ('/home/derek/文档/Derek_Obsidian_DB/...'), which is highly irregular for a shared skill bundle and could cause execution failures or unintended file writes on a target system. Additionally, the Playwright configuration uses the '--no-sandbox' flag, which unnecessarily increases the browser's attack surface. While the logic appears intended for Qwen AI automation, these hardcoded paths and security-weakening flags suggest a lack of sanitization and pose a risk to the host environment.
Capability Assessment
Purpose & Capability
The core browser automation purpose is coherent, but the included scripts also perform account-side conversation deletion and hardcoded local persistence that go beyond simply asking Qwen and returning an answer.
Instruction Scope
Prompts are user-directed through argv/stdin, but destructive cleanup is automatic and not gated by an explicit per-run confirmation or disable flag.
Install Mechanism
There is no install spec even though SKILL.md instructs users to install Playwright and a Chromium browser manually; this is expected for the purpose but should be pinned and declared more clearly.
Credentials
The scripts write outputs to a hardcoded absolute path under /home/derek/.../Derek_Obsidian_DB rather than a user-configured or skill-local path.
Persistence & Privilege
The skill persists a logged-in Qwen browser profile and saves query/answer history locally; this is partly purpose-aligned, but combined with automatic deletion it gives the script meaningful account authority.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install qwen-web-agent
  3. After installation, invoke the skill by name or use /qwen-web-agent
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: single-turn and multi-turn browser automation for 通义千问 (qianwen.com)
Metadata
Slug qwen-web-agent
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments