crewai-clawfetch
CrewAI tools for ClawFetch, a pay-per-call web intelligence API for AI agents. Each call is paid with an x402 micropayment in USDC on Base.
Install
pip install crewai-clawfetch
Wallet
You need a Base wallet private key that holds USDC. There is no API key and no signup. Payments are gasless EIP-3009 transfers signed locally by the clawfetch SDK, so the wallet does not need ETH. Use a dedicated wallet with a small balance.
export CLAWFETCH_PRIVATE_KEY=0x...
Quickstart
from crewai import Agent
from crewai_clawfetch import clawfetch_tools
tools = clawfetch_tools() # reads CLAWFETCH_PRIVATE_KEY
# or: clawfetch_tools(private_key="0x...", max_chars=8000)
researcher = Agent(
role="Researcher",
goal="Answer questions with cited web sources",
backstory="You read primary sources before answering.",
tools=tools,
)
You can also create a single tool, or pass an existing client:
from clawfetch import ClawFetch
from crewai_clawfetch import ClawFetchFetchTool
fetch = ClawFetchFetchTool(client=ClawFetch(private_key="0x..."))
print(fetch.run(url="https://example.com"))
Tools
| Tool | Name | Price per call | What it does |
|---|---|---|---|
ClawFetchFetchTool |
clawfetch_fetch |
$0.001 | URL to readable text (no JavaScript) |
ClawFetchRenderTool |
clawfetch_render |
$0.005 | JavaScript-rendered page to text |
ClawFetchExtractTool |
clawfetch_extract |
$0.008 | Typed JSON from 17 supported sites |
ClawFetchResearchTool |
clawfetch_research |
$0.02 | Web search plus source texts for citations |
ClawFetchParseTool |
clawfetch_parse |
$0.005 | Office document or PDF at a URL to Markdown (no OCR) |
ClawFetchDomainsCheckTool |
clawfetch_domains_check |
$0.003 | Domain availability |
ClawFetchDomainsSuggestTool |
clawfetch_domains_suggest |
$0.003 | Generate and check domain names from keywords |
Supported clawfetch_extract sites: twitter, coingecko, github, news, npm, pypi, crates, hackernews, youtube, wikipedia, producthunt, imdb, amazon, crunchbase, sec-edgar, zillow, redfin.
Output and errors
Tools return a string. Fetch and render return the page title, URL and text. Parse returns Markdown. The other tools return the API response as JSON. Output is cut at max_chars (default 10,000).
SDK errors (PaymentError, RateLimitError, ApiError, NetworkError, all subclasses of clawfetch.ClawFetchError) are raised unchanged.
License
MIT
Metadata
Release files for crewai-clawfetch 0.1.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 | Provenance | |
|---|---|---|---|---|
| crewai_clawfetch-0.1.0.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crewai_clawfetch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / crewai_clawfetch-0.1.0.tar.gz
| Download URL | crewai_clawfetch-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5304e107bc43ec66329a8bb1104ab4760e9d8b1042dc233a3bd714fd5eaa6dd8
|
|
BLAKE2b-256 checksum How to use checksums |
821f7526c9dcedd71eb59a02c76759f106a77561e94f844c7f62211aff7f0955
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / crewai_clawfetch-0.1.0-py3-none-any.whl
| Download URL | crewai_clawfetch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10ab83fb465f697c6fbdad34f4de65ba7f09e8a812d8731c0eb255d9954d48c0
|
|
BLAKE2b-256 checksum How to use checksums |
60688959dec87ad2b5a83b2731f31cfcc9697bfad6c26f5ec129b476a42907f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for crewai-clawfetch 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.