KosmoKrator

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, configure, and verify
# 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call brave-search.brave_search_web '{}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_web '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_web_rich '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_web_rich '{}' --json

brave-search.brave_search_llm_context

Retrieve LLM-ready extracted web context with GET.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_llm_context '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_llm_context_post '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_llm_context_post '{}' --json

brave-search.brave_search_images

Search Brave image results.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_images '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_images '{}' --json

brave-search.brave_search_news

Search Brave news results.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_news '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_news '{}' --json

brave-search.brave_search_videos

Search Brave video results.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_videos '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_videos '{}' --json

brave-search.brave_search_places

Search Brave places and points of interest.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_places '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_places '{}' --json

brave-search.brave_search_local_pois

Fetch details for ephemeral Brave local place IDs.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_local_pois '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_local_descriptions '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_local_descriptions '{}' --json

brave-search.brave_search_suggest

Get Brave query suggestions.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_suggest '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_suggest '{}' --json

brave-search.brave_search_spellcheck

Get Brave spelling corrections for a query.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_spellcheck '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_spellcheck '{}' --json

brave-search.brave_search_answer

Create a Brave grounded answer through the OpenAI-compatible endpoint.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_answer '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_answer '{}' --json

brave-search.brave_search_summarizer

Fetch a legacy summarizer search result by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_summarizer '{}' --json

brave-search.brave_search_summarizer_summary

Fetch just the legacy summarizer summary by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer_summary '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_summarizer_summary '{}' --json

brave-search.brave_search_summarizer_title

Fetch just the legacy summarizer title by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer_title '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_summarizer_title '{}' --json

brave-search.brave_search_summarizer_enrichments

Fetch legacy summarizer enrichments by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer_enrichments '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_summarizer_enrichments '{}' --json

brave-search.brave_search_summarizer_followups

Fetch legacy summarizer follow-up questions by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer_followups '{}' --json
Shortcut
kosmo integrations:brave-search brave_search_summarizer_followups '{}' --json

brave-search.brave_search_summarizer_entity_info

Fetch legacy summarizer entity information by key.

Read read
Parameters
none
Generic call
kosmo integrations:call brave-search.brave_search_summarizer_entity_info '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema brave-search.brave_search_web --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_web_rich 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_web_rich --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_llm_context 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_llm_context --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_llm_context_post 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_llm_context_post --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_images 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_images --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_news 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_news --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_videos 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_videos --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_places 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_places --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_local_pois 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_local_pois --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_local_descriptions 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_local_descriptions --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_suggest 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_suggest --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_spellcheck 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_spellcheck --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_answer 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_answer --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer_summary 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer_summary --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer_title 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer_title --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer_enrichments 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer_enrichments --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer_followups 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer_followups --json
ParameterTypeRequiredDescription
No parameters.
brave-search.brave_search_summarizer_entity_info 0 parameters
Schema command
kosmo integrations:schema brave-search.brave_search_summarizer_entity_info --json
ParameterTypeRequiredDescription
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.