← Back to Skills Marketplace
zengxi

Bailian Search

by zengxi · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
547
Downloads
2
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install bailian-search
Description
Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service. Use when: user asks for latest news, real-time information, current events, or...
README (SKILL.md)

Bailian Search

Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service.

Overview

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.

Features

  • 🔍 Real-time web search
  • 🌐 Global information coverage
  • ⚡ Fast response via SSE (Server-Sent Events)
  • 🔒 Secure API key management
  • 🛠️ Easy integration with OpenClaw

Prerequisites

  1. Alibaba Cloud Account: Register at Alibaba Cloud Bailian
  2. API Key: Obtain a DashScope API Key from the console

Installation

Using ClawHub (Recommended)

openclaw skill install bailian-search
# or
clawhub install bailian-search

Manual Installation

# Clone to OpenClaw workspace
git clone \x3Crepository-url> ~/.openclaw/workspace/skills/bailian-search

# Or download and extract to:
# ~/.openclaw/workspace/skills/bailian-search/

Configuration

Set Environment Variable

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"

Usage

Command Line

# After setting environment variable
./search.sh "latest tech news"

# Or one-liner
DASHSCOPE_API_KEY="your-key" ./search.sh "OpenAI GPT-5 release"

Via AI Assistant

Once configured, simply ask your AI assistant:

  • "Search for today's tech news"
  • "Find OpenAI's latest announcements"
  • "Look up 2025 China EV sales data"

The AI will automatically use this skill to fetch real-time information.

How It Works

This skill connects to Alibaba Cloud Bailian's MCP SSE (Server-Sent Events) service:

  1. Receives user search query
  2. Establishes SSE connection to Bailian MCP server
  3. Retrieves real-time search results
  4. Returns structured content to the AI

MCP Configuration (Advanced)

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}"
      }
    }
  }
}

API Reference

Environment Variables

Variable Required Description
DASHSCOPE_API_KEY Yes Alibaba Cloud DashScope API Key

Command Arguments

./search.sh \x3Cquery>
Argument Type Required Description
query string Yes Search query string

Troubleshooting

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

  1. Verify your API key is valid
  2. Check network connectivity
  3. Bailian service may take time to respond, please be patient

How to get DashScope API Key?

  1. Visit Alibaba Cloud Bailian Console
  2. Register/login with Alibaba Cloud account
  3. Create an API Key in the console
  4. Copy the key and set it as environment variable

Privacy & Security

  • Your API key is never hardcoded in the skill files
  • API key is read from environment variables only
  • No data is stored or logged by this skill
  • All requests go directly to Alibaba Cloud servers

License

MIT License - See LICENSE file for details

Contributing

Contributions are welcome! Please submit issues or pull requests via ClawHub.

Version History

v1.1.0 (2026-03-23)

  • Fixed: Complete MCP protocol implementation (initialize + notifications/initialized)
  • Fixed: Correct tool name bailian_web_search instead of websearch
  • Fixed: Proper parameter passing from bash to Python
  • Improved: Better error handling and debugging
  • Improved: More robust SSE connection management

v1.0.0 (Initial Release)

  • Initial release with basic search functionality

Acknowledgments

  • Alibaba Cloud Bailian (DashScope) for providing the MCP service
  • OpenClaw team for the skill framework
  • MCP community for the protocol specification

Links

Usage Guidance
Before installing: (1) Verify the skill source/author (ownerId is not a recognizable publisher). (2) Review search.sh yourself — it only contacts dashscope.aliyuncs.com and reads DASHSCOPE_API_KEY. (3) Ensure Python's 'requests' library is available on the host (pip install requests) or the script will fail; the package does not declare this dependency. (4) Prefer storing the API key in a secure secrets manager rather than plain ~/.bashrc; if you use 'openclaw config set', confirm where OpenClaw persists that value and who/what can read it. (5) If you are uncomfortable with persistent storage, use a temporary environment variable when invoking the skill. (6) The metadata unnecessarily lists 'curl' as required — this appears to be a small metadata bug rather than malicious behavior. If you need higher assurance, ask the publisher for a trusted source URL or sign-off and consider running the skill in an isolated environment the first time.
Capability Analysis
Type: OpenClaw Skill Name: bailian-search Version: 1.1.0 The bailian-search skill provides real-time web search functionality by interfacing with the Alibaba Cloud DashScope API. The core logic in search.sh uses a Python script to establish a secure SSE connection and perform an MCP handshake with the official dashscope.aliyuncs.com endpoint. No indicators of data exfiltration, malicious execution, or prompt injection were found.
Capability Assessment
Purpose & Capability
Name/description align with the required environment variable (DASHSCOPE_API_KEY) and network endpoints (dashscope.aliyuncs.com). However, SKILL.md and metadata list 'curl' as a required binary even though the shipped search.sh invokes python3 only; conversely the Python code depends on the third‑party 'requests' library which is not declared in the metadata. These are inconsistencies (likely oversights) but not directly malicious.
Instruction Scope
Runtime instructions are limited to reading the DASHSCOPE_API_KEY, opening SSE connections to Bailian endpoints, and returning results. The SKILL.md does not instruct reading other system files or unrelated credentials. One minor mismatch: SKILL.md claims "No data is stored or logged by this skill," but the script prints SSE events and error details to stderr (which could expose event contents in logs).
Install Mechanism
No install spec (instruction-only skill + code file). No remote downloads or installers are invoked by the skill itself, reducing install-time risk. Files are included in the package (search.sh, SKILL.md, etc.).
Credentials
The skill requires a single credential (DASHSCOPE_API_KEY), which is appropriate for a web‑search integration. Caveats: SKILL.md suggests storing the API key in shell profile or via 'openclaw config', both of which are persistent choices—ensure you understand where OpenClaw stores that config and who/what can read it on your system.
Persistence & Privilege
The skill does not set always: true, does not request elevated privileges, and does not modify other skills or global agent settings. It is user‑invocable and may be invoked autonomously by the agent (default behavior).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bailian-search
  3. After installation, invoke the skill by name or use /bailian-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
v1.1.0 (2026-03-23): Fixed MCP protocol implementation - added complete initialize + notifications/initialized handshake, corrected tool name to bailian_web_search, improved parameter passing and error handling
v1.0.0
Initial release: Real-time web search powered by Alibaba Cloud Bailian MCP service
Metadata
Slug bailian-search
Version 1.1.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is Bailian Search?

Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service. Use when: user asks for latest news, real-time information, current events, or... It is an AI Agent Skill for Claude Code / OpenClaw, with 547 downloads so far.

How do I install Bailian Search?

Run "/install bailian-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bailian Search free?

Yes, Bailian Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Bailian Search support?

Bailian Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bailian Search?

It is built and maintained by zengxi (@zengxi); the current version is v1.1.0.

💬 Comments