Skip to content
badlogic avatar

Brave Search

Lightweight web search and page extraction through the Brave Search API, with no browser required.

CCM score
68 of 100
skills.sh installs
1.4K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers web search with result counts, country targeting, and freshness filters, plus readable markdown extraction from any given URL
  • Includes search.js with options for -n (up to 20 results), --content, --country, and --freshness values from past day to custom date ranges
  • Provides content.js to fetch a single URL and return its readable body as markdown
  • Designed for looking up documentation, facts, and current information when interactive browsing is unnecessary

Install

$ npx -y skills add badlogic/pi-skills --skill brave-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Brave Search

Web search and content extraction using the official Brave Search API. No browser required.

Setup

Requires a Brave Search API account with a free subscription. A credit card is required to create the free subscription (you won't be charged).

  1. Create an account at https://api-dashboard.search.brave.com/register
  2. Create a "Free AI" subscription
  3. Create an API key for the subscription
  4. Add to your shell profile (~/.profile or ~/.zprofile for zsh):
    export BRAVE_API_KEY="your-api-key-here"
    
  5. Install dependencies (run once):
    cd {baseDir}
    npm install
    

Search

{baseDir}/search.js "query"                         # Basic search (5 results)
{baseDir}/search.js "query" -n 10                   # More results (max 20)
{baseDir}/search.js "query" --content               # Include page content as markdown
{baseDir}/search.js "query" --freshness pw          # Results from last week
{baseDir}/search.js "query" --freshness 2024-01-01to2024-06-30  # Date range
{baseDir}/search.js "query" --country DE            # Results from Germany
{baseDir}/search.js "query" -n 3 --content          # Combined options

Details

Repository
github.com/badlogic/pi-skills
Categories
Browser Automation & Scraping, Research & Academic
First seen
Jun 3, 2026

Questions

What does the brave-search skill do?

The brave-search skill runs web searches and extracts page content through the official Brave Search API. It needs no browser, so it stays lightweight for looking up documentation, facts, or other web content.

What do I need before using brave-search?

You need a Brave Search API account with a free subscription, which requires a credit card but charges nothing. Create a Free AI subscription, generate an API key, export it as BRAVE_API_KEY in your shell profile, and run npm install in the skill folder. Node.js is needed for the scripts.

How do I install the brave-search skill?

Run npx -y skills add badlogic/pi-skills --skill brave-search -y in your project to install it. Once installed, the agent can search the web and extract readable markdown from a given URL.

Where does brave-search stand in the Browser Automation & Scraping category?

brave-search sits in the Browser Automation & Scraping category alongside agent-browser, playwright-cli, anti-detect-browser and browser-act. It stands apart because it searches with the Brave API and reads pages without launching a browser.

More from badlogic/pi-skills

All 4

Similar to Brave Search

More Browser Automation & Scraping