crewai-agentsearch
CrewAI tools for AgentSearch: live web search for agents. Free search needs no API key.
| Tool | Name | Cost |
|---|---|---|
AgentSearchTool |
agentsearch_search |
Free (25 searches/day per user, up to 5 results, no key). Paid and unlimited if a wallet is set. |
AgentSearchExtractTool |
agentsearch_extract |
$0.005/call (USDC on Base via x402) |
AgentSearchRenderTool |
agentsearch_render |
$0.005/call (headless browser for JS pages) |
Install
pip install -U crewai-agentsearch
Quickstart
from crewai import Agent, Crew, Task
from crewai_agentsearch import AgentSearchTool
search = AgentSearchTool()
print(search.run(query="latest CrewAI release", max_results=3)) # JSON string
researcher = Agent(role="Researcher", goal="Find current facts with sources",
backstory="You always cite URLs.", tools=[search])
task = Task(description="What changed in the latest CrewAI release?", expected_output="3 bullets with URLs", agent=researcher)
print(Crew(agents=[researcher], tasks=[task]).kickoff())
Add AgentSearchExtractTool() and AgentSearchRenderTool() to tools once paid mode is set up.
Paid mode
Install the paid extra (pip install "crewai-agentsearch[paid]") and set AGENTSEARCH_WALLET_PRIVATE_KEY to the private key of a new wallet made only for this, funded with a little USDC on Base (e.g. $1; no ETH needed). Each call costs $0.005 and is paid over x402 through the Pocket Network Agentic Portal using the official x402 Python SDK. With a key set, search also goes paid and unlimited.
| Env var | Default |
|---|---|
AGENTSEARCH_MAX_TOTAL_ATOMIC |
1000000 ($1.00 per process) |
AGENTSEARCH_MAX_PER_CALL_ATOMIC |
5000 ($0.005; can only be lowered) |
AGENTSEARCH_TIMEOUT_MS |
30000 |
Limits are checked before anything is signed. The key is never logged or returned. Paid results include a payment object.
Errors
Tools return "Error: ..." strings instead of raising. A 429 from the free relay means the daily limit (25 searches/day per user) was hit, and the message explains how to upgrade.
Development
pip install -e ".[test]" && pytest # unit tests (mocked)
AGENTSEARCH_LIVE=1 pytest -k live # one real free search
Docs: https://agentsearchhq.com/agents.md?utm_source=crewai-agentsearch&utm_medium=package
MIT
Metadata
Release files for crewai-agentsearch 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crewai_agentsearch-0.2.0.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crewai_agentsearch-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / crewai_agentsearch-0.2.0.tar.gz
| Download URL | crewai_agentsearch-0.2.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76ee8add8fbbc308954fc9a0f322fc8f82b41ec7e6d1db24990ae121ddca06bb
|
|
BLAKE2b-256 checksum How to use checksums |
bb7f0dd058ced9e49269d6f6aa3d0bfdd2792ec0b6c7c4ee7d333b98a2924712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / crewai_agentsearch-0.2.0-py3-none-any.whl
| Download URL | crewai_agentsearch-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f2755f6890e6661a5192cf12d37cf035dd7cf0f357481cd5cefac39ebe4ae7b
|
|
BLAKE2b-256 checksum How to use checksums |
f0702360c32bdd6d6804fcd2c1ad7d02206622a8a23f35bf0332fec0c52ba5c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|