research-tool
Search the web using LLMs via OpenRouter. Use for current web data, API docs, market research, news, fact-checking, or any question that benefits from live internet access and reasoning.
Best use case
research-tool is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Search the web using LLMs via OpenRouter. Use for current web data, API docs, market research, news, fact-checking, or any question that benefits from live internet access and reasoning.
Teams using research-tool should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/openclaw-search-tool/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How research-tool Compares
| Feature / Agent | research-tool | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Search the web using LLMs via OpenRouter. Use for current web data, API docs, market research, news, fact-checking, or any question that benefits from live internet access and reasoning.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agent for Product Research
Browse AI agent skills for product research, competitive analysis, customer discovery, and structured product decision support.
AI Agent for SaaS Idea Validation
Use AI agent skills for SaaS idea validation, market research, customer discovery, competitor analysis, and documenting startup hypotheses.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
SKILL.md Source
# OpenClaw Research Tool Web search for OpenClaw agents, powered by OpenRouter. Ask questions in natural language, get accurate answers with cited sources. Defaults to GPT-5.2 which excels at documentation lookups and citation-heavy research. > **Note:** Even low-effort queries may take **1 minute or more** to complete. High/xhigh reasoning can take **10+ minutes** depending on complexity. This is normal — the model is searching the web, reading pages, and synthesizing an answer. > > **Recommended:** Run research-tool in a **sub-agent** so your main session stays responsive: > ``` > sessions_spawn task:"research-tool 'your query here'" > ``` > > **⚠️ Never set a timeout on exec when running research-tool.** Queries routinely take 1-10+ minutes. Use `yieldMs` to background it, then poll — but do NOT set `timeout` or the process will be killed mid-search. The `:online` model suffix gives any model **live web access** — it searches the web, reads pages, cites URLs, and synthesizes an answer. ## Install ```bash cargo install openclaw-search-tool ``` Requires `OPENROUTER_API_KEY` env var. Get a key at https://openrouter.ai/keys ## Quick start ```bash research-tool "What are the x.com API rate limits?" research-tool "How do I set reasoning effort parameters on OpenRouter?" ``` ### From an OpenClaw agent ```python # Best: run in a sub-agent (main session stays responsive) sessions_spawn task:"research-tool 'your query here'" # Or via exec — NEVER set timeout, use yieldMs to background: exec command:"research-tool 'your query'" yieldMs:5000 # then poll the session until complete ``` ## Flags ### `--effort`, `-e` (default: `low`) Controls how much the model reasons before answering. Higher effort means better analysis but slower and more tokens. ```bash research-tool --effort low "What year was Rust 1.0 released?" research-tool --effort medium "Explain how OpenRouter routes requests to different model providers" research-tool --effort high "Compare tradeoffs between Opus 4.6 and gpt-5.3-codex for programming" research-tool --effort xhigh "Deep analysis of React Server Components vs traditional SSR approaches" ``` | Level | Speed | When to use | |-------|-------|-------------| | `low` | ~1-3 min | Quick fact lookups, simple questions | | `medium` | ~2-5 min | Standard research, moderate analysis | | `high` | ~3-10 min | Deep analysis with careful reasoning | | `xhigh` | ~5-20+ min | Maximum reasoning, complex multi-source synthesis | Can also be set via env var `RESEARCH_EFFORT`. ### `--model`, `-m` (default: `openai/gpt-5.2:online`) Which model to use. Defaults to GPT-5.2 with the `:online` suffix because it excels at questions where citations and accurate documentation lookups matter. The `:online` suffix enables live web search and works with **any model on OpenRouter**. ```bash # Default: GPT-5.2 with web search (great for docs and cited answers) research-tool "current weather in San Francisco" # Claude with web search research-tool -m "anthropic/claude-sonnet-4-20250514:online" "Summarize recent changes to the OpenAI API" # GPT-5.2 without web search (training data only) research-tool -m "openai/gpt-5.2" "Explain the React Server Components architecture" # Any OpenRouter model research-tool -m "google/gemini-2.5-pro:online" "Compare React vs Svelte in 2026" ``` Can also be set via env var `RESEARCH_MODEL`. ### `--system`, `-s` Override the system prompt to give the model a specific persona or instructions. ```bash research-tool -s "You are a senior infrastructure engineer" "Best practices for zero-downtime Kubernetes deployments" research-tool -s "You are a Rust systems programmer" "Best async patterns for WebSocket servers" ``` ### `--stdin` Read the query from stdin. Useful for long or multiline queries. ```bash echo "Explain the OpenRouter model routing architecture" | research-tool --stdin cat detailed-prompt.txt | research-tool --stdin ``` ### `--max-tokens` (default: `12800`) Maximum tokens in the response. ### `--timeout` (optional, no default) No timeout by default — queries run until the model finishes. Set this only if you need a hard upper bound (e.g. `--timeout 300`). ## Output format - **stdout**: Response text only (markdown with citations) — pipe-friendly - **stderr**: Progress status, reasoning traces, and token usage ``` 🔍 Researching with openai/gpt-5.2:online (effort: high)... ✅ Connected — waiting for response... [response text on stdout] 📊 Tokens: 4470 prompt + 184 completion = 4654 total | ⏱ 5s ``` ## Status indicators - `🔍 Researching...` — request sent to OpenRouter - `✅ Connected — waiting for response...` — server accepted the request, model is searching/thinking - `⏳ 15s... ⏳ 30s...` — elapsed time ticks (only in interactive terminals, not in agent exec) - `❌ Connection to OpenRouter failed` — couldn't reach OpenRouter (network issue) - `❌ Connection to OpenRouter lost` — connection dropped while waiting. Retry? ## Tips for better results - **Write in natural language.** "What are the best practices for Rust error handling and when should you use anyhow vs thiserror?" works better than keyword-style queries. - **Provide maximum context.** The model starts from zero. Include background, what you already know, and all related sub-questions. Detailed prompts massively outperform vague ones. - **Use effort levels appropriately.** `low` for quick facts, `high` for real research, `xhigh` only for complex multi-source analysis. - **Use `-s` for domain expertise.** A specific persona produces noticeably better domain-specific answers. ## Cost ~$0.01–0.05 per query. Token usage is printed to stderr after each query.
Related Skills
AI Coding Toolkit — Master Every AI Coding Assistant
> The complete methodology for 10X productivity with AI-assisted development. Covers Cursor, Windsurf, Cline, Aider, Claude Code, GitHub Copilot, and more — tool-agnostic principles that work everywhere.
china-tools-sourcing
Comprehensive tools industry sourcing guide for international buyers – provides detailed information about China's hand tools, power tools, garden tools, measuring tools, and industrial tool manufacturing clusters, supply chain structure, regional specializations, and industry trends (2026 updated).
github-tools
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
autoresearch-pro
Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).
X/Twitter Research Skill
Research trending topics, ideas, and conversations on X (Twitter) using twitterapi.io.
token-research
Comprehensive token research for EVM chains (Base, ETH, Arbitrum) and Solana. Use this skill when you want to research crypto tokens, deep-dive projects or monitor tokens.
pdf-tool
PDF文字提取工具 — 支持从PDF文件中提取文字内容,用于解析简历。by Barry
local-researcher
完全本地的深度研究助手 Skill。使用 Ollama 或 LMStudio 本地 LLM 进行迭代式网络研究,生成带引用来源的 Markdown 报告。当用户需要进行隐私优先的研究、本地文档分析或生成结构化研究报告时触发。
devtools-secrets
Knowledge and guardrails for the mise + fnox + infisical secrets toolchain. Use when the user asks to "configure secrets", "set up fnox", "infisical", "mise env", "secrets management", "environment variables for secrets", or mentions secret injection, secret providers, or env var hygiene.
searxng-tool-for-openclaw
Install an OpenClaw plugin that adds SearXNG-powered web search without paid search APIs.
auto-researcher
自主研究助手 - 深度调研、交叉验证、生成引用报告
Feishu SuperToolkit
飞书超级工具包 - 集成文件发送(含音频卡片)、日历、审批、多维表格、通讯录、考勤六大模块