glm-search-pro
Web search via Zhipu GLM — supports both MCP (mcporter) and cURL (REST API) backends. Provides multi-engine search (Pro, Sogou, Quark, Std) with intent recognition, time range filtering, domain filtering, and configurable result count/detail level. Use when the agent needs to search the web, look up current information, find news, or retrieve online resources. Works from China without VPN. Trigger on: "search the web", "web search", "look up", "find online", "latest news", "search for", "google for", "联网搜索", "在线搜索", "查最新", "搜索一下".
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bithostgits/glm-search-proGLM Search Pro
Web search powered by Zhipu GLM, with dual-backend support: cURL (REST API, preferred) and MCP (via mcporter).
Credentials
This skill requires a Zhipu API key, provided via the ZHIPU_API_KEY environment variable.
cURL mode (preferred)
No setup required. The key is read from $ZHIPU_API_KEY at runtime and sent via HTTP Authorization: Bearer header. In cURL mode, no files are written to disk.
MCP mode (advanced)
If you need MCP mode, setup.sh will write a config file to disk:
| File | What it contains | Permissions |
|---|---|---|
~/.openclaw/config/mcporter/mcporter.json | MCP server URL with API key as query param | 600 (owner-only) |
~/.openclaw/config/mcporter/ directory | Parent directory | 700 (owner-only) |
Important: The Zhipu MCP broker endpoint requires the API key as a URL query parameter (Authorization=<key>). This is how their SSE endpoint works — the key cannot be passed via HTTP header for MCP connections. Setup writes this to mcporter.json with 600 permissions. If this is not acceptable, use cURL mode only (which passes the key via Authorization header at runtime and writes nothing to disk).
What this skill reads
| Source | When | Purpose |
|---|---|---|
$ZHIPU_API_KEY env var | Every search (cURL mode), and during setup (MCP mode) | API key |
Recommendation
For maximum security, use cURL mode and skip setup.sh. MCP mode is provided as a convenience but requires persisting the key on disk due to the Zhipu MCP broker's authentication design.
Quick Start
# Set your API key
export ZHIPU_API_KEY="your-api-key"
# Search (cURL mode, no setup needed)
bash scripts/glm-search.sh "your query"
# With options
bash scripts/glm-search.sh -q "latest AI news" -c 20 -r oneWeek -e quark
Backends
The script auto-selects the best available backend:
- cURL mode (preferred) —
curl+ZHIPU_API_KEYenv var. Key sent via HTTP header. Nothing written to disk. - MCP mode (advanced) —
mcporter+ config fromsetup.sh. Key stored in config file for MCP broker auth.
Force a specific mode with --curl or --mcp.
Search Engines
| Engine | Flag | Best For |
|---|---|---|
| Pro | -e pro | General purpose, best quality (default) |
| Quark | -e quark | Advanced scenarios, Chinese content |
| Sogou | -e sogou | China domestic content |
| Std | -e std | Basic search, Q&A |
Parameters
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bithostgits-glm-search-pro": {
"enabled": true,
"auto_update": true
}
}
}