langchain-cloro Python package wraps cloro’s sync monitor endpoints as LangChain tools, so your agents can query AI engines and Google Search and reason over structured results with sources. It’s listed in the LangChain integrations docs, and the source lives in the langchain-cloro repository.
Prerequisites
- Python with LangChain installed
- A cloro API key from the dashboard (see Authentication)
Install the package
Configure your API key
Set the key as an environment variable:Available tools
| Tool | Endpoint |
|---|---|
CloroGoogleSearch | POST /v1/monitor/google |
CloroChatGPT | POST /v1/monitor/chatgpt |
CloroGemini | POST /v1/monitor/gemini |
CloroPerplexity | POST /v1/monitor/perplexity |
CloroGrok | POST /v1/monitor/grok |
CloroCopilot | POST /v1/monitor/copilot |
country (ISO 3166-1 alpha-2, defaults to "US"), include_html, and include_markdown. CloroGoogleSearch takes a query plus device ("desktop" or "mobile"), pages (1–20), include_aioverview, and aioverview_markdown; the assistant tools take a prompt, and CloroChatGPT additionally supports include_raw_response and include_search_queries (query fan-out).
The package also exports a get_countries() utility that fetches the supported countries, optionally filtered by provider.
CloroGrok is still exported, but the provider is temporarily unavailable — calls to it will fail until Grok access is restored.Invoke a tool directly
Use with an agent
Tool calls run synchronously and count against your concurrency limits. For large batches (tracking many prompts across engines), use the async API directly instead of looping tool calls. Each call consumes credits at the standard per-provider rates — see Providers and Credits & limits.