To use Brave Search in OpenClaw, run `clawhub install brave-search`, get a free API key at api.search.brave.com, and set BRAVE_API_KEY in your OpenClaw config. Brave Search stands apart from Tavily and other skills because it uses its own independent web index — no Google or Bing dependency — making it the best choice when you want untracked, privacy-respecting search results from a genuinely different source of truth.
Privacy-First Search With an Independent Index: Why Brave Search Is Different
Every major search API — including Tavily, Bing, and most other web search tools — draws its underlying index from either Google or Bing's crawl data. Brave Search is the rare exception: Brave built its own independent web crawler from scratch and maintains a proprietary index that does not license data from any other search engine. This is not just a privacy marketing claim — it is an architectural reality that produces genuinely different search results for the same query.
For OpenClaw users, this difference matters in two distinct ways. First, privacy: when you send a query through Tavily or another Google-backed search API, that query ultimately reaches Google's infrastructure. Brave's API routes to Brave's own servers and is explicitly designed to not log or retain search queries. For sensitive business research, competitive intelligence, or any context where you would rather not have search activity associated with your account, Brave Search provides a meaningful privacy improvement.
Second, coverage diversity: because Brave's index is built independently, it surfaces different pages for many queries. Smaller publications, non-mainstream technical content, and pages that rank poorly in Google's algorithm but have genuine value can appear more prominently in Brave results. Professional researchers who use multiple search backends regularly report that Brave captures sources that Google-derived APIs miss. Running both Brave Search and Tavily AI Search on the same query and comparing results is a common pattern for teams doing comprehensive research where missing a key source would be costly.
Integration method
Brave Search integrates with OpenClaw as a ClawHub skill, installed in one command and configured with a dedicated BRAVE_API_KEY — separate from any Tavily credentials. The skill queries Brave's proprietary search index directly, which was built from scratch by Brave without licensing data from Google, Bing, or other major search engines. This independence means you get meaningfully different results compared to skills that use Google-derived indexes, and your queries are never logged or used to build advertising profiles.
Prerequisites
- OpenClaw installed and running on your system
- ClawHub CLI available in your terminal
- A Brave Search API account at api.search.brave.com (separate from any Tavily account)
- Basic familiarity with OpenClaw chat prompts
Step-by-step guide
Install the Brave Search Skill via ClawHub
Install the Brave Search Skill via ClawHub
The brave-search skill is a standalone ClawHub package with its own BRAVE_API_KEY — it does not share credentials with any Tavily skills you may have installed. This means you get a completely separate API quota and a genuinely independent search backend under a single OpenClaw chat interface. Open your terminal and run the install command. ClawHub downloads the skill package from the registry, validates it, and registers it with your local OpenClaw installation. You will see the confirmation message listing the required configuration key: BRAVE_API_KEY. If you already have other search skills installed (tavily-ai-search, tavily-web-search, web-search-by-exa), brave-search installs alongside them without conflict. OpenClaw will have multiple search backends available and can route to the appropriate one based on your prompt context or explicit instructions.
1# Install Brave Search skill2clawhub install brave-search34# Confirm installation5clawhub list | grep brave67# See all available configuration options8clawhub info brave-searchPro tip: Running `clawhub info brave-search` after installation shows all supported configuration parameters with their default values — useful before you start customizing the skill behavior.
Expected result: Terminal shows 'brave-search@X.X.X installed successfully. Required config: BRAVE_API_KEY'. The skill appears in `clawhub list` output.
Get Your Brave Search API Key
Get Your Brave Search API Key
Navigate to api.search.brave.com and sign up for a developer account. Brave's API is separate from the Brave browser account — you can have one without the other. Click 'Subscribe' on the API product page to see available plans. Brave offers a free tier ('Data for Independent Developers') with 2,000 queries per month at no cost. This is the most generous free tier among the major search skills available in OpenClaw, and it covers a useful volume for individual users. Paid plans start at $5/month for 20,000 queries. Once you have subscribed to a plan (the free tier is sufficient to start), navigate to 'API Keys' in your Brave API dashboard and click 'Generate Key'. Copy the API key — it is a long alphanumeric string. Unlike Tavily keys, Brave API keys do not have a distinguishing prefix, so the string may look like a generic token. Keep it safe — you can generate a new one from the dashboard at any time. Note that Brave's API key is specifically for their Search API. It is not the same as a Brave browser sync key or Brave Rewards key.
Pro tip: Brave's free tier resets monthly and provides 2,000 requests — double the 1,000 free requests from Tavily. This makes Brave Search a particularly cost-effective complement to Tavily for teams watching API costs.
Expected result: You have a Brave Search API key (long alphanumeric string) from the Brave API developer dashboard, ready to configure in OpenClaw.
Configure BRAVE_API_KEY in OpenClaw
Configure BRAVE_API_KEY in OpenClaw
Set your Brave API key in OpenClaw's configuration. Unlike the Tavily skills, Brave Search uses its own environment variable name: BRAVE_API_KEY. Both variables can coexist in your OpenClaw .env file without conflict — each skill reads only the variable it expects. Use the clawhub config command to set the key, or add it directly to your ~/.openclaw/.env file. After setting it, reload the OpenClaw configuration to activate the skill. The variable name must match exactly: BRAVE_API_KEY (uppercase, underscore between the words). A common mistake is using BRAVE-API-KEY (hyphens) or BRAVE_SEARCH_KEY (different name), both of which cause the skill to fail authentication silently.
1# Set Brave API key (separate from TAVILY_API_KEY)2clawhub config set BRAVE_API_KEY your-brave-api-key-here34# Or add to ~/.openclaw/.env alongside other keys5# ~/.openclaw/.env6TAVILY_API_KEY=tvly-your-tavily-key7BRAVE_API_KEY=your-brave-api-key89# Reload to activate10clawhub reload1112# Verify13clawhub config get BRAVE_API_KEYPro tip: You can have TAVILY_API_KEY and BRAVE_API_KEY both set in the same .env file. They do not interfere with each other. OpenClaw reads all keys at startup and assigns them to the correct skills automatically.
Expected result: `clawhub config get BRAVE_API_KEY` returns a masked value. OpenClaw confirms brave-search is active and authenticated.
Test Brave Search in OpenClaw Chat
Test Brave Search in OpenClaw Chat
Open OpenClaw chat and run a test query. To verify that OpenClaw is using Brave's independent index rather than a Google-backed skill, you can ask a query on a topic where you know Brave might surface different sources — privacy advocacy sites, independent tech blogs, or international content. Brave Search results include titles, URLs, content snippets, and metadata such as published date and page age. The response format is similar to Tavily Web Search but with Brave's own ranking signal applied — which favors independent, non-sponsored sources and weights editorial quality over SEO optimization. This makes Brave's ranking noticeably different from Google-derived results for many queries. If OpenClaw has multiple search skills installed, explicitly mention 'use Brave' or 'search with Brave' in your prompt to ensure it routes to this skill rather than defaulting to Tavily.
Use Brave Search to find independent blog posts and technical articles about self-hosting LLMs in 2026. Look specifically for content from smaller publications and developer blogs, not just major tech news sites.
Paste this in OpenClaw chat
Pro tip: Compare results for the same query across Brave Search and Tavily AI Search — the differences highlight what each index covers that the other misses. This cross-validation is especially valuable for research tasks with high stakes.
Expected result: OpenClaw returns a list of results from Brave's index. For technical and privacy-related topics, you will likely see sources that don't appear in Google-backed search results — smaller publications, forums, and international content.
Advanced Configuration and Multi-Skill Search Routing
Advanced Configuration and Multi-Skill Search Routing
Brave Search supports configuration options for result count, safe search level, and freshness filtering. For most users the defaults work well, but teams running OpenClaw in professional contexts — especially where content safety matters or where stale content is a problem — benefit from explicit configuration. You can also set up OpenClaw to automatically route certain query types to Brave Search. Privacy-sensitive queries (anything involving personal names, business intelligence, competitive analysis) are natural candidates for Brave. General research queries where synthesis quality matters are better routed to Tavily AI Search. This multi-skill routing strategy lets you get the best of multiple independent indexes. RapidDev can advise teams on advanced multi-skill routing configurations in OpenClaw for research and intelligence workflows that require comprehensive cross-source coverage.
Search Brave for recent academic papers or technical reports on quantum error correction published after January 2026. I want sources from independent research institutions, not just major university press.
Paste this in OpenClaw chat
1# ~/.openclaw/skills/brave-search.yaml2brave-search:3 count: 10 # results per query (default: 10, max: 20)4 safesearch: moderate # off | moderate | strict (default: moderate)5 freshness: pw # pw=past week, pm=past month, py=past year (optional)6 search_lang: en # language code for results (optional)7 country: us # country code for results localization (optional)8 extra_snippets: true # include additional content snippets per resultPro tip: The `freshness` parameter accepts standard codes: `pd` (past day), `pw` (past week), `pm` (past month), `py` (past year). For news monitoring use `pd` or `pw`. For timeless research leave `freshness` unset to get all available content.
Expected result: Brave Search queries return up to 20 results with extended snippets, filtered by freshness if configured. Queries on time-sensitive topics return content published within the specified window.
Common use cases
Privacy-Sensitive Competitive Research
Research competitors, market trends, or sensitive business topics without leaving a query trail in Google-affiliated systems. Brave's API does not log queries or build profiles, making it appropriate for M&A research, patent monitoring, or any search where confidentiality matters.
Search for all publicly known information about Acme Corp's recent patent filings and product roadmap announcements. Use Brave Search and return everything you find.
Copy this prompt to try it in OpenClaw
Cross-Validating Research With a Non-Google Source
After getting results from Tavily AI Search or another Google-backed skill, run the same query through Brave Search to identify sources the first skill missed. Comparing results from independent indexes is standard practice in professional research to ensure comprehensive coverage.
Search Brave for 'Rust async runtime performance comparison 2026' and list all the results. I want to compare these against what Tavily found for the same query.
Copy this prompt to try it in OpenClaw
International Content Discovery
Find content from international sources and smaller regional publications that may not rank well in Google's global algorithm. Brave's independent crawl gives more balanced representation to non-English content and regional web sources.
Search for discussions and blog posts about climate tech startups in Southeast Asia, using Brave Search. Include sources from regional publications and tech communities, not just major English-language outlets.
Copy this prompt to try it in OpenClaw
Troubleshooting
OpenClaw shows '401 Unauthorized' or 'Invalid API key' for Brave Search
Cause: BRAVE_API_KEY is not set, was set under a different variable name (BRAVE-API-KEY or BRAVE_SEARCH_KEY), or the key has not been activated yet — Brave API keys sometimes require a few minutes to become active after generation.
Solution: Run `clawhub config get BRAVE_API_KEY` to verify the key is set and matches what the Brave API dashboard shows. If the key was just generated, wait 2-3 minutes and try again. Ensure the variable name is exactly `BRAVE_API_KEY` (no hyphens, all uppercase). Regenerate the key in the Brave API dashboard if it appears to be expired.
1# Check key is set correctly2clawhub config get BRAVE_API_KEY34# Reset with exact variable name5clawhub config set BRAVE_API_KEY your-brave-api-key-here6clawhub reloadclawhub install brave-search returns '429 Too Many Requests' from the ClawHub registry
Cause: ClawHub's package registry has temporary rate limits during high-traffic periods. This is a ClawHub server-side issue unrelated to Brave's API.
Solution: Wait 2-5 minutes and retry the install. ClawHub rate limits are short-lived. If the problem persists for more than 10 minutes, check the OpenClaw community forum or status page for registry issues.
1# Wait and retry2sleep 180 && clawhub install brave-search34# Force reinstall if needed5clawhub install brave-search --forceBrave Search queries return a '422 Unprocessable Entity' error
Cause: The search query contains characters or patterns that Brave's API does not accept — often very long queries, queries with certain special characters, or queries that hit Brave's content policy filters.
Solution: Shorten the query to under 400 characters. Remove special characters like quotes, colons, or brackets unless they are part of standard search syntax. If the query is flagged by content filters, rephrase it using more neutral language.
1# Keep queries concise and clean2# Bad: very long run-on query with special chars3# Good: concise, targeted query under 400 charactersBrave Search results seem outdated even for recent events
Cause: Brave's independent crawler has different freshness characteristics than Google-backed indexes. Some types of breaking news content may appear in Brave's index with a delay of 24-48 hours compared to Google.
Solution: For real-time news monitoring, Tavily AI Search or Tavily Web Search are faster to index breaking news. Use Brave Search for research queries where depth and independence matter more than recency. You can combine both skills in OpenClaw — Tavily for freshness, Brave for independence.
1# For fresh news, route to Tavily2# For independent research, route to Brave3# Configure freshness in brave-search.yaml:4brave-search:5 freshness: pw # restrict to past week contentBest practices
- Keep BRAVE_API_KEY separate from TAVILY_API_KEY in your OpenClaw .env file — both keys coexist without conflict and give you two independent search quotas, effectively doubling your available searches when both skills are installed.
- Use Brave Search explicitly for any research involving competitive intelligence, personal data lookups, or business-sensitive queries where you prefer your search activity not to flow through Google-affiliated infrastructure.
- Combine Brave Search with Tavily AI Search for high-stakes research: run the same query through both and merge results — this cross-source approach catches relevant content that either index alone would miss.
- Set the `freshness` parameter in your Brave Search config for monitoring workflows where you only want recent content — without it, Brave may surface highly-ranked older pages for queries on fast-moving topics.
- For international research, set `search_lang` and `country` in your Brave Search config to improve result localization — Brave's independent index has particularly good coverage of non-English web content compared to Google-derived APIs.
- Monitor your monthly usage in the Brave API dashboard — the free tier provides 2,000 queries/month and resets on the 1st. Setting up a Brave fallback when Tavily is rate-limited is a common and effective strategy.
- Avoid sending very long or complex boolean search queries to Brave's API — keep queries under 400 characters and use natural language rather than complex operator chains for best results.
- Use Brave Search's `extra_snippets: true` configuration when you need more page content per result for downstream summarization or analysis — this avoids making additional page-fetch requests.
Alternatives
Tavily AI Search delivers AI-ranked, synthesized results with lower latency for breaking news — better when result quality and freshness matter more than search independence.
Exa uses semantic/neural search to find conceptually related content rather than keyword matches — better for exploratory research where you're looking for ideas rather than specific facts.
Perplexity synthesizes a single conversational answer with inline citations rather than returning a list of results — better for quick factual Q&A rather than comprehensive source collection.
Web Search Plus aggregates results from multiple search backends including Brave — better when you want multi-source breadth rather than the privacy-focused single-source purity that Brave offers.
Frequently asked questions
How do I install Brave Search in OpenClaw?
Run `clawhub install brave-search` in your terminal. Then get a free API key from api.search.brave.com (free tier: 2,000 queries/month), and configure it with `clawhub config set BRAVE_API_KEY your-key-here`. Run `clawhub reload` and you can start using Brave Search in OpenClaw chat immediately.
How is Brave Search different from Tavily Search in OpenClaw?
The core difference is the web index source. Tavily uses external search providers (which draw from Google and Bing data). Brave Search uses its own proprietary index built by Brave's own web crawler, with no data licensed from Google or Bing. This means genuinely different results, independent query privacy, and a separate API quota. Most power users install both and use them for different purposes.
What is the BRAVE_API_KEY configuration for OpenClaw?
BRAVE_API_KEY is the environment variable OpenClaw uses to authenticate with Brave's Search API. Set it with `clawhub config set BRAVE_API_KEY your-key-here` or by adding it to ~/.openclaw/.env. It is separate from TAVILY_API_KEY — both can exist in the same config file without conflict.
Is Brave Search free to use in OpenClaw?
Brave offers a free API tier with 2,000 search queries per month — more generous than most competing search APIs. Paid plans start at $5/month for 20,000 queries. The free tier is sufficient for personal use and moderate automated workflows.
ClawHub install Brave Search is not working — what should I do?
First verify the exact skill name is `brave-search` (with a hyphen, all lowercase). If the install fails with a network or timeout error, wait 2-3 minutes and retry. For persistent errors, run `clawhub install brave-search --force` to clear any stale install state. Check your internet connection and confirm ClawHub itself is accessible with `clawhub --version`.
Can RapidDev help configure Brave Search alongside other OpenClaw search skills?
Yes — RapidDev can help design multi-skill search configurations where Brave Search, Tavily, and other skills are used in combination for comprehensive coverage. This is particularly useful for teams building research automation pipelines where no single search index provides complete coverage. Contact RapidDev for team-level configuration support.
Does using Brave Search in OpenClaw actually protect my privacy?
Brave's Search API is designed to not log query data or build user profiles, and the search results come from Brave's own index rather than Google or Bing infrastructure. However, your queries do travel over the internet to Brave's servers — they are not processed locally. For most users this provides meaningful privacy compared to Google-backed search APIs, but complete privacy would require running a local search index, which is a much more complex setup.
Talk to an Expert
Our team has built 600+ apps. Get personalized help with your project.
Book a free consultation