Install
openclaw skills install bailian-searchReal-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service. Use when: user asks for latest news, real-time information, current events, or...
openclaw skills install bailian-searchReal-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service.
This skill integrates with Alibaba Cloud Bailian's Web Search MCP (Model Context Protocol) service, enabling AI assistants to retrieve real-time information from the internet, improving response accuracy and timeliness.
openclaw skill install bailian-search
# or
clawhub install bailian-search
# Clone to OpenClaw workspace
git clone <repository-url> ~/.openclaw/workspace/skills/bailian-search
# Or download and extract to:
# ~/.openclaw/workspace/skills/bailian-search/
Option 1: Temporary (current session)
export DASHSCOPE_API_KEY="your-dashscope-api-key"
Option 2: Permanent (recommended)
Add to your shell profile (~/.zshrc or ~/.bashrc):
echo 'export DASHSCOPE_API_KEY="your-dashscope-api-key"' >> ~/.zshrc
source ~/.zshrc
Option 3: OpenClaw Config
openclaw config set env.DASHSCOPE_API_KEY "your-dashscope-api-key"
# After setting environment variable
./search.sh "latest tech news"
# Or one-liner
DASHSCOPE_API_KEY="your-key" ./search.sh "OpenAI GPT-5 release"
Once configured, simply ask your AI assistant:
The AI will automatically use this skill to fetch real-time information.
This skill connects to Alibaba Cloud Bailian's MCP SSE (Server-Sent Events) service:
For use with other MCP-compatible clients (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"WebSearch": {
"type": "sse",
"name": "Alibaba Cloud Bailian Web Search",
"description": "Real-time web search powered by Tongyi Lab's Text-Embedding, GTE-reRank, Query Rewriting, and Search Judgment models.",
"baseUrl": "https://dashscope.aliyuncs.com/api/v1/mcps/WebSearch/sse",
"headers": {
"Authorization": "Bearer ${DASHSCOPE_API_KEY}"
}
}
}
}
| Variable | Required | Description |
|---|---|---|
DASHSCOPE_API_KEY | Yes | Alibaba Cloud DashScope API Key |
./search.sh <query>
| Argument | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query string |
Error: "DASHSCOPE_API_KEY environment variable is not set"
Solution: Ensure the environment variable is set:
export DASHSCOPE_API_KEY="your-key"
Empty results or timeout
How to get DashScope API Key?
MIT License - See LICENSE file for details
Contributions are welcome! Please submit issues or pull requests via ClawHub.
bailian_web_search instead of websearch