PHPackages                             coquibot/coqui-toolkit-brave-search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. coquibot/coqui-toolkit-brave-search

ActiveLibrary[API Development](/categories/api)

coquibot/coqui-toolkit-brave-search
===================================

Brave Search toolkit for Coqui — web and news search via the Brave Search API

v0.1.3(4mo ago)06MITPHPPHP ^8.4CI passing

Since Feb 15Pushed 3mo agoCompare

[ Source](https://github.com/carmelosantana/coqui-toolkit-brave-search)[ Packagist](https://packagist.org/packages/coquibot/coqui-toolkit-brave-search)[ RSS](/packages/coquibot-coqui-toolkit-brave-search/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (8)Versions (7)Used By (0)

Coqui Brave Search
==================

[](#coqui-brave-search)

A [Brave Search API](https://brave.com/search/api/) toolkit for [Coqui](https://github.com/coquibot/coqui). Provides web search and news search tools that agents can use to find up-to-date information.

Requirements
------------

[](#requirements)

- PHP 8.4+
- A [Brave Search API key](https://brave.com/search/api/) (free tier: 2,000 queries/month)

Installation
------------

[](#installation)

```
composer require coquibot/coqui-toolkit-brave-search
```

When installed alongside Coqui, the toolkit is **auto-discovered** via Composer's `extra.php-agents.toolkits` — no manual registration needed.

Configuration
-------------

[](#configuration)

Set your API key as an environment variable:

```
export BRAVE_SEARCH_API_KEY=your-api-key-here
```

Or add it to your `.env` file:

```
BRAVE_SEARCH_API_KEY=your-api-key-here

```

Tools Provided
--------------

[](#tools-provided)

### `brave_search`

[](#brave_search)

Search the web using Brave Search. Returns titles, URLs, and descriptions.

ParameterTypeRequiredDescription`query`stringYesThe search query`count`integerNoNumber of results (1–20, default 5)`country`stringNoCountry code (e.g. `us`, `gb`, `de`)`search_lang`stringNoLanguage code (e.g. `en`, `fr`, `es`)### `brave_news`

[](#brave_news)

Search for recent news articles. Returns titles, URLs, descriptions, and publication age.

ParameterTypeRequiredDescription`query`stringYesThe news search query`count`integerNoNumber of results (1–20, default 5)Standalone Usage
----------------

[](#standalone-usage)

You can use the toolkit outside of Coqui:

```
