← 返回 Skills 市场
jinghan23

Claude Code WebSearch

作者 jinghan23 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
253
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claudecode-websearch
功能描述
Free web search using Claude Code CLI or Codex CLI's built-in WebSearch tool — no Tavily, Brave, or Exa API key required. Activate when the user says "websea...
使用说明 (SKILL.md)

Claude WebSearch Skill

Use the bundled script to search the web via Claude Code CLI (primary) or Codex CLI (fallback). Both CLIs expose a native WebSearch tool — no third-party search API key needed.

When to Use

  • Tavily / Brave / Exa quota is exhausted
  • User says "websearch搜一下X", "search for X", "查一下X"
  • Any web search need where no API key is configured

Quick Usage

# Primary (Claude Code CLI — fast, recommended)
scripts/websearch.sh "your query"

# With result count
scripts/websearch.sh "your query" --max 3

# Explicit backend
scripts/websearch.sh "your query" --backend codex

Or use the global alias (if installed):

ccws "your query"

How It Works

Backend CLI flag Notes
claude (default) --allowedTools "WebSearch" Fast (~5s), clean output
codex --search + reasoning_effort=low Slower (~30-60s), use as fallback

The script auto-detects which CLI is available; claude is preferred when both exist.

Setup (one-time)

Install the global alias ccws for quick access:

ln -sf "$(pwd)/scripts/websearch.sh" ~/.local/bin/ccws

Troubleshooting

Problem Fix
claude: command not found Install Claude Code CLI: npm install -g @anthropic-ai/claude-code
codex: command not found Install Codex CLI: npm install -g @openai/codex
Claude returns empty output Check claude auth status; re-login if expired
Codex times out Normal — use --backend claude instead
Not inside a trusted directory (Codex) Script handles this by running from a temp dir
安全使用建议
Summary of risks and recommendations before installing: - The skill itself is a small wrapper script and is consistent with its description. It does not exfiltrate files or request unrelated credentials. - The script invokes your installed Claude Code or Codex CLI; those CLIs will perform network requests and use any authentication already configured on your machine. Ensure you trust the installed CLIs and that they were obtained from official sources. - The README suggests creating a symlink (~/.local/bin/ccws). Creating such an alias can shadow existing commands in your PATH — only do it if you’re comfortable. - If you want extra caution: inspect the local claude/codex binaries you have installed, avoid creating the symlink, or run the script manually instead of giving it automatic invocation. Also verify the skill's source (the registry metadata owner/slug) if provenance matters to you.
功能分析
Type: OpenClaw Skill Name: claudecode-websearch Version: 1.0.0 The skill is a legitimate utility designed to provide web search capabilities by leveraging the 'WebSearch' tools built into the Claude Code and Codex CLIs. The primary script (scripts/websearch.sh) handles user queries by passing them as quoted arguments to the respective binaries, avoiding shell injection vulnerabilities. The documentation and setup instructions (SKILL.md and README.md) describe standard practices, such as creating a symlink for a global alias, and do not contain malicious instructions or evidence of data exfiltration.
能力评估
Purpose & Capability
The name/description ask for a free web search via Claude Code or Codex CLI and the skill only requires those CLIs (anyBins: claude or codex). There are no unrelated credentials, binaries, or config paths requested.
Instruction Scope
SKILL.md and the included scripts confine themselves to invoking the detected CLI with a search prompt, optional alias creation, and (for Codex) running from a temp directory. The instructions do not read arbitrary files, environment variables, or post data to third-party endpoints beyond the CLIs' normal network activity.
Install Mechanism
No install spec (instruction-only) and the included script is small and readable. The README suggests installing the CLIs via npm and creating a symlink in ~/.local/bin for an alias — both are normal but users should be aware a symlink can shadow existing commands in PATH.
Credentials
The skill requests no environment variables or secrets. It does rely on whatever authentication the installed Claude/Codex CLIs already have configured — that is expected for this purpose but means those CLIs (not the skill) will use any stored tokens.
Persistence & Privilege
The skill is not always-enabled, does not request elevated privileges, and does not modify other skills or system-wide agent settings. The only persistent change it suggests is an optional symlink in the user's home directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claudecode-websearch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claudecode-websearch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: free web search via Claude Code CLI or Codex CLI WebSearch tool
元数据
Slug claudecode-websearch
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Claude Code WebSearch 是什么?

Free web search using Claude Code CLI or Codex CLI's built-in WebSearch tool — no Tavily, Brave, or Exa API key required. Activate when the user says "websea... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 253 次。

如何安装 Claude Code WebSearch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claudecode-websearch」即可一键安装,无需额外配置。

Claude Code WebSearch 是免费的吗?

是的,Claude Code WebSearch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claude Code WebSearch 支持哪些平台?

Claude Code WebSearch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claude Code WebSearch?

由 jinghan23(@jinghan23)开发并维护,当前版本 v1.0.0。

💬 留言讨论