Claude Code WebSearch — Claude Code 网页搜索
v1.0.0Free 网页 搜索 using Claude Code 命令行工具 or Codex 命令行工具's built-in 网页搜索 工具 — no Tavily, Brave, or Exa API key required. Activate when the user says "网页搜索", "搜一下", "搜索 the 网页", or when Tavily/Brave quota is exhausted and you need to 搜索 the 网页.
运行时依赖
安装命令
点击复制技能文档
Claude 网页搜索 技能
Use the bundled script to 搜索 the 网页 via Claude Code 命令行工具 (primary) or Codex 命令行工具 (fallback). 机器人h 命令行工具s expose a native 网页搜索 工具 — no third-party 搜索 API key needed.
When to Use Tavily / Brave / Exa quota is exhausted User says "网页搜索搜一下X", "搜索 for X", "查一下X" Any 网页 搜索 need where no API key is 配置d Quick Usage # Primary (Claude Code 命令行工具 — fast, recommended) scripts/网页搜索.sh "your 查询"
# With 结果 count scripts/网页搜索.sh "your 查询" --max 3
# Explicit backend scripts/网页搜索.sh "your 查询" --backend codex
Or use the global alias (if 安装ed):
ccws "your 查询"
How It Works Backend 命令行工具 flag Notes claude (default) --allowed工具s "网页搜索" Fast (~5s), 清理 输出 codex --搜索 + reasoning_effort=low Slower (~30-60s), use as fallback
The script auto-检测s which 命令行工具 is avAIlable; claude is preferred when 机器人h exist.
设置up (one-time)
安装 the global alias ccws for quick 访问:
ln -sf "$(pwd)/scripts/网页搜索.sh" ~/.local/bin/ccws
Troubleshooting Problem Fix claude: command not found 安装 Claude Code 命令行工具: npm 安装 -g @anthropic-AI/claude-code codex: command not found 安装 Codex 命令行工具: npm 安装 -g @openAI/codex Claude returns empty 输出 检查 claude auth 状态; re-记录in if expired Codex times out Normal — use --backend claude instead Not inside a trusted directory (Codex) Script handles this by 运行ning from a temp dir