Skip to main content

crewai-cloro

CrewAI tools for cloro. cloro loads the live page of a search engine or an AI assistant for a query and a country, and returns the result as structured data.

Tool cloro endpoint The agent gets Credits per call
CloroGoogleSearchTool POST /v1/monitor/google Google organic results: title, URL and snippet. With include_ai_overview=True, the Google AI Overview and its sources first. 5, or 7 with the AI Overview
CloroBingSearchTool POST /v1/monitor/bing Bing organic results: title, URL and snippet. With include_ai_overview=True, the Bing AI Overview and its sources first. 5, or 7 with the AI Overview
CloroAIAnswerTool(engine="google_ai_mode") POST /v1/monitor/aimode The Google AI Mode answer as Markdown, with its sources 6
CloroAIAnswerTool(engine="bing_ai_mode") POST /v1/monitor/bing/aimode The Bing AI Mode (Copilot Search in Bing) answer, with its sources 6
CloroAIAnswerTool(engine="chatgpt") POST /v1/monitor/chatgpt The ChatGPT answer that users see, with its sources 7
CloroAIAnswerTool(engine="gemini") POST /v1/monitor/gemini The Gemini answer, with its sources 6
CloroAIAnswerTool(engine="meta_ai") POST /v1/monitor/meta-ai The Meta AI answer, with its sources 6

Installation

pip install crewai-cloro

Get an API key at dashboard.cloro.dev. The free plan includes 500 credits each month. Set the key as CLORO_API_KEY, or pass api_key=... to a tool.

Usage

from crewai import Agent, Crew, Task
from crewai_cloro import CloroAIAnswerTool, CloroGoogleSearchTool

researcher = Agent(
    role="Search analyst",
    goal="Compare what Google and AI assistants say about a topic.",
    backstory="You check live sources and cite the URLs you use.",
    tools=[
        CloroGoogleSearchTool(max_results=5, include_ai_overview=True),
        CloroAIAnswerTool(engine="chatgpt"),
        CloroAIAnswerTool(engine="google_ai_mode"),
    ],
)

task = Task(
    description="Which SERP APIs do Google, ChatGPT and Google AI Mode recommend for AI agents?",
    expected_output="A short comparison with the cited URLs.",
    agent=researcher,
)

print(Crew(agents=[researcher], tasks=[task]).kickoff())

Each CloroAIAnswerTool gets its own tool name, cloro_<engine>, so one agent can hold several engines. Pass name= to change it.

A direct call returns the same text the agent gets:

print(CloroGoogleSearchTool().run(query="retrieval-augmented generation", country="GB"))

Parameters

All tools take:

  • api_key: the cloro API key. Defaults to the CLORO_API_KEY environment variable.
  • country: ISO 3166-1 alpha-2 country code for the search location (default US). The agent can also pass country per call.
  • timeout: request timeout in seconds (default 180). An AI answer can take 15 to 60 seconds.

CloroGoogleSearchTool and CloroBingSearchTool also take max_results (default 10), include_ai_overview (default False) and include_ads (default False). Results with an empty link or a Google redirect link are skipped.

With include_ads=True, the ads on the page come after the organic results. Each ad starts with Google ad or Bing ad, then its type, block and position. The ads cost no more credits and do not count towards max_results.

CloroAIAnswerTool also takes engine: google_ai_mode (default), bing_ai_mode, chatgpt, gemini or meta_ai.

Limits

  • Bing Search and Bing AI Mode accept a query of up to 3,500 characters after URL encoding. Non-Latin scripts allow fewer characters. The tools refuse a longer query before they send the request.
  • The Bing Search tool gets the first results page. The country sets the Bing market. Bing Search and Bing AI Mode accept all countries except CN, KR and RU.
  • Meta AI accepts a prompt of up to 10,000 characters and all countries except CN and RU. Meta AI gives no answer to some "best X" product prompts. The tool then raises CloroError, and a retry does not help.
  • Your plan sets how many requests can run at the same time. A request sent while all slots are busy gets a 429 (CONCURRENCY_LIMIT_EXCEEDED).
  • An API error raises CloroError with the HTTP status, the cloro error code and the message.

Development

uv run --python 3.12 --with crewai --with httpx --with pytest -- env PYTHONPATH=src python -m pytest tests

The tests mock the network. The API reference is at cloro.dev/docs.

License

MIT

Metadata

Release files for crewai-cloro 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-cloro 0.4.0
File Size Uploaded Provenance Actions
crewai_cloro-0.4.0.tar.gz 8.5 kB With provenance Details for crewai_cloro-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-cloro 0.4.0
File Interpreter ABI Platform Actions
crewai_cloro-0.4.0-py3-none-any.whl Python 3 none any Details for crewai_cloro-0.4.0-py3-none-any.whl

Total release size: 16.1 kB

Release files / crewai_cloro-0.4.0.tar.gz

Download URL crewai_cloro-0.4.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
17931407786c401e29677a1e9e04c25834b066ee09a857ee9ac25b98151ec7b3
BLAKE2b-256 checksum
How to use checksums
56dbb10376d44524034cf7c8cbc31f5287dcdc5f76f3a2aaee0cbed610afc92e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / crewai_cloro-0.4.0-py3-none-any.whl

Download URL crewai_cloro-0.4.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8805615f90385055ca30070b5c8b0a80068f62d1f409b2c0e07166427708539a
BLAKE2b-256 checksum
How to use checksums
0f60b9c129eaea7eb916a083b2afd761087791cfce3de8a0320d259699cd050b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for crewai-cloro 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for crewai_cloro-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page