data
Brave Search CLI for AI Agents
Use the Brave Search CLI from KosmoKrator to call Brave Search tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Brave Search CLI Setup
Brave Search can be configured headlessly with `kosmokrator integrations:configure brave-search`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure brave-search --set api_key="$BRAVE_SEARCH_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor brave-search --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | BRAVE_SEARCH_API_KEY | Secret secret | yes | API Key |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call brave-search.brave_search_web '{}' --json kosmo integrations:brave-search brave_search_web '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs brave-search --json
kosmo integrations:docs brave-search.brave_search_web --json
kosmo integrations:schema brave-search.brave_search_web --json
kosmo integrations:search "Brave Search" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
brave-search.brave_search_web
Search Brave web results.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_web '{}' --json kosmo integrations:brave-search brave_search_web '{}' --json brave-search.brave_search_web_rich
Fetch rich result details from a web search callback key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_web_rich '{}' --json kosmo integrations:brave-search brave_search_web_rich '{}' --json brave-search.brave_search_llm_context
Retrieve LLM-ready extracted web context with GET.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_llm_context '{}' --json kosmo integrations:brave-search brave_search_llm_context '{}' --json brave-search.brave_search_llm_context_post
Retrieve LLM-ready extracted web context with POST.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_llm_context_post '{}' --json kosmo integrations:brave-search brave_search_llm_context_post '{}' --json brave-search.brave_search_images
Search Brave image results.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_images '{}' --json kosmo integrations:brave-search brave_search_images '{}' --json brave-search.brave_search_news
Search Brave news results.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_news '{}' --json kosmo integrations:brave-search brave_search_news '{}' --json brave-search.brave_search_videos
Search Brave video results.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_videos '{}' --json kosmo integrations:brave-search brave_search_videos '{}' --json brave-search.brave_search_places
Search Brave places and points of interest.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_places '{}' --json kosmo integrations:brave-search brave_search_places '{}' --json brave-search.brave_search_local_pois
Fetch details for ephemeral Brave local place IDs.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_local_pois '{}' --json kosmo integrations:brave-search brave_search_local_pois '{}' --json brave-search.brave_search_local_descriptions
Fetch AI-generated descriptions for ephemeral Brave local place IDs.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_local_descriptions '{}' --json kosmo integrations:brave-search brave_search_local_descriptions '{}' --json brave-search.brave_search_suggest
Get Brave query suggestions.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_suggest '{}' --json kosmo integrations:brave-search brave_search_suggest '{}' --json brave-search.brave_search_spellcheck
Get Brave spelling corrections for a query.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_spellcheck '{}' --json kosmo integrations:brave-search brave_search_spellcheck '{}' --json brave-search.brave_search_answer
Create a Brave grounded answer through the OpenAI-compatible endpoint.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_answer '{}' --json kosmo integrations:brave-search brave_search_answer '{}' --json brave-search.brave_search_summarizer
Fetch a legacy summarizer search result by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer '{}' --json kosmo integrations:brave-search brave_search_summarizer '{}' --json brave-search.brave_search_summarizer_summary
Fetch just the legacy summarizer summary by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer_summary '{}' --json kosmo integrations:brave-search brave_search_summarizer_summary '{}' --json brave-search.brave_search_summarizer_title
Fetch just the legacy summarizer title by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer_title '{}' --json kosmo integrations:brave-search brave_search_summarizer_title '{}' --json brave-search.brave_search_summarizer_enrichments
Fetch legacy summarizer enrichments by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer_enrichments '{}' --json kosmo integrations:brave-search brave_search_summarizer_enrichments '{}' --json brave-search.brave_search_summarizer_followups
Fetch legacy summarizer follow-up questions by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer_followups '{}' --json kosmo integrations:brave-search brave_search_summarizer_followups '{}' --json brave-search.brave_search_summarizer_entity_info
Fetch legacy summarizer entity information by key.
read - Parameters
- none
kosmo integrations:call brave-search.brave_search_summarizer_entity_info '{}' --json kosmo integrations:brave-search brave_search_summarizer_entity_info '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
brave-search.brave_search_web 0 parameters
kosmo integrations:schema brave-search.brave_search_web --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_web_rich 0 parameters
kosmo integrations:schema brave-search.brave_search_web_rich --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_llm_context 0 parameters
kosmo integrations:schema brave-search.brave_search_llm_context --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_llm_context_post 0 parameters
kosmo integrations:schema brave-search.brave_search_llm_context_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_images 0 parameters
kosmo integrations:schema brave-search.brave_search_images --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_news 0 parameters
kosmo integrations:schema brave-search.brave_search_news --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_videos 0 parameters
kosmo integrations:schema brave-search.brave_search_videos --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_places 0 parameters
kosmo integrations:schema brave-search.brave_search_places --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_local_pois 0 parameters
kosmo integrations:schema brave-search.brave_search_local_pois --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_local_descriptions 0 parameters
kosmo integrations:schema brave-search.brave_search_local_descriptions --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_suggest 0 parameters
kosmo integrations:schema brave-search.brave_search_suggest --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_spellcheck 0 parameters
kosmo integrations:schema brave-search.brave_search_spellcheck --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_answer 0 parameters
kosmo integrations:schema brave-search.brave_search_answer --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer_summary 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer_summary --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer_title 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer_title --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer_enrichments 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer_enrichments --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer_followups 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer_followups --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
brave-search.brave_search_summarizer_entity_info 0 parameters
kosmo integrations:schema brave-search.brave_search_summarizer_entity_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.