Install
openclaw skills install web-llm-chatChat with web-based LLMs through the Chrome Relay extension. Provides free access to powerful web search and RAG capabilities without API costs. Currently supports Qwen AI (chat.qwen.ai). Use for web search, deep research, multi-turn investigations, getting a second opinion, comparing AI responses, or delegating complex reasoning tasks. Requires Chrome extension relay connected with an LLM chat tab open. Triggers on phrases like "ask Qwen", "search with Qwen", "Qwen search", "deep research with Qwen", "Qwen research", "web LLM search", "browser AI chat", "free AI search", "Qwen怎么说", "去问Qwen", "Qwen 搜索", "Qwen 研究", "用 Qwen 深度研究".
openclaw skills install web-llm-chatInteract with web-based LLMs through the Chrome Relay extension. This skill enables automated conversations with AI models, supporting both simple queries and multi-turn research workflows.
Currently supported: Qwen AI (chat.qwen.ai) — more models coming soon.
Modern web-based LLMs (like Qwen) offer:
This skill leverages OpenClaw's Chrome Relay to:
Bottom line: Use OpenClaw to orchestrate powerful web-based LLMs at a fraction of the API cost, with better research quality than raw search APIs.
| Model | Status | Notes |
|---|---|---|
| Qwen AI (chat.qwen.ai) | ✅ Supported | Full support for search, RAG, and multi-turn conversations |
| More models | 🚧 Coming soon | Open an issue to request support for other web-based LLMs |
chat.qwen.ai/*)127.0.0.1:18789 (default)ws package installedInstall the ws package using your preferred package manager:
# npm
npm install ws
# yarn
yarn add ws
# pnpm
pnpm add ws
node scripts/qwen_chat.js status
# Plain text (default)
node scripts/qwen_chat.js send "What is machine learning?"
# With custom wait time (for long responses)
node scripts/qwen_chat.js send "Explain RAG in detail" --wait 120
# Get response in Markdown format (preserves formatting)
node scripts/qwen_chat.js send "Write a Python function" --format markdown
# Get raw HTML
node scripts/qwen_chat.js send "Create a table" --format html
node scripts/qwen_chat.js read
statusCheck if Chrome Relay is connected and Qwen tab is active.
node scripts/qwen_chat.js status
Output:
Extension: ✅ Connected
Qwen tab: ✅ Qwen Chat
URL: https://chat.qwen.ai/c/...
sendSend a message to Qwen and receive the response.
node scripts/qwen_chat.js send "your message" [options]
Options:
| Option | Description | Default |
|---|---|---|
--wait N | Maximum wait time in seconds | 45 |
--format text|markdown|html | Output format | text |
--debug-extract | Show extraction debugging info | off |
Output Formats:
text — Plain text outputmarkdown — Preserves code blocks, tables, lists, headers, and formattinghtml — Raw HTML from the pagereadRead the current page content (useful for debugging or reviewing conversation history).
node scripts/qwen_chat.js read
researchRun multi-round research on a topic (fixed stages, consider using agent-orchestrated mode instead).
node scripts/qwen_chat.js research "AI safety" --rounds 10 --wait 120
The script uses a robust extraction strategy:
bodyLen unpredictablyFor multi-turn research, use agent-orchestrated mode instead of the fixed research command. This allows the agent to dynamically control the conversation based on Qwen's responses.
1. Determine research topic
2. Ask first question (open-ended, let Qwen expand)
3. Read Qwen's response
4. Analyze the response:
- Which point deserves deeper exploration?
- Which claim needs cross-validation?
- Any contradictions or gaps?
5. Ask follow-up question based on analysis
6. Repeat steps 3-5 for 5-10 rounds
7. Final round: Ask Qwen to summarize, agent also compiles its own summary
# Agent sends question and waits for response
node scripts/qwen_chat.js send "What are the key challenges in RLHF?" --wait 120
# Agent can read full page if needed
node scripts/qwen_chat.js read
Good follow-ups come from Qwen's response:
| Response Pattern | Follow-up Direction |
|---|---|
| Mentions data/statistics | "What's the original source? Sample size?" |
| Gives opinion without evidence | "Any research supporting this claim?" |
| Mentions controversy | "What are the counter-arguments?" |
| Uses "possibly/maybe" | "Under what conditions does this hold?" |
| Lists multiple factors | "Which one is most critical? Why?" |
| Mentions case study | "Has this case been challenged by other researchers?" |
| Goes off-topic | "Back to the core question, specifically..." |
--wait 180 for search-heavy questions, --wait 60 for simple onesnode scripts/qwen_chat.js send "test message" --wait 90 --debug-extract
This shows:
| Issue | Solution |
|---|---|
| Extension disconnected | Check Chrome extension badge shows ON |
| No Qwen tab found | Open chat.qwen.ai and attach extension |
| Response not captured | Increase --wait time, use --debug-extract to diagnose |
| Markdown formatting broken | Code blocks use Monaco Editor; extraction handles this automatically |
The script auto-derives the relay token from the OpenClaw config. Config priority:
E:\.openclaw\.openclaw\openclaw.json (Windows)~/.openclaw/.openclaw/openclaw.json (Unix)1878918792 (Gateway + 3)research command uses fixed stages — use agent-orchestrated mode insteadqwen-chat/
├── SKILL.md # This file
├── scripts/
│ ├── qwen_chat.js # Main script
│ ├── _diagnose_selectors.js # Diagnostic tools
│ └── _analyze_format.js # Format analysis
└── references/
└── chrome-relay.md # Chrome Relay setup guide
See LICENSE file for details.