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

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 or gemini.

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.
  • 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.3.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.3.0
File Size Uploaded Provenance Actions
crewai_cloro-0.3.0.tar.gz 8.3 kB With provenance Details for crewai_cloro-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.8 kB

Release files / crewai_cloro-0.3.0.tar.gz

Download URL crewai_cloro-0.3.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a4f84945ef258604ee9ea848e698d646b005fc8b85c4053c3b8e243b4667eb0e
BLAKE2b-256 checksum
How to use checksums
a2549d47d7bb5bad8f593ae2d982efbc5728fa444988390470b948226b21db94
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 22, 2026.

Transparency log

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

Download URL crewai_cloro-0.3.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d5f862683f63faa64eaf737110649a716c9530ed6dcc76c4b760ce56784aa9d
BLAKE2b-256 checksum
How to use checksums
93b6a962551ce7969a9d06e4f8ecb476a4aa6c70ada4211e1bf20b45851cd335
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 22, 2026.

Transparency log

Security for crewai-cloro 0.3.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.3.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 22, 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