Skip to main content

crewai-x402-discovery

CrewAI tool for x402 service discovery — let your CrewAI agents find and call any paid API endpoint at runtime.

Installation

pip install crewai-x402-discovery

Quick Start

from crewai import Agent, Task, Crew
from crewai_x402_discovery import X402DiscoveryTool

tool = X402DiscoveryTool()

researcher = Agent(
    role="Research Specialist",
    goal="Find and use the best available APIs for any research task",
    backstory="An expert at finding and using external APIs efficiently.",
    tools=[tool],
    verbose=True,
)

task = Task(
    description="Find the best web search API available under $0.02/call and report its details.",
    expected_output="API name, URL, price, and a Python usage snippet.",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task], verbose=True)
result = crew.kickoff()
print(result)

Configuration

from crewai_x402_discovery import X402DiscoveryTool

# Custom price limit
tool = X402DiscoveryTool(max_price_usd=0.10)

# Custom discovery API (e.g. private catalog)
tool = X402DiscoveryTool(
    discovery_api_url="https://x402-discovery-api.onrender.com",
    max_price_usd=0.50,
)

Tool Parameters

The tool accepts a natural language query string. Examples:

  • "web search"
  • "image generation"
  • "crypto prices"
  • "data enrichment"
  • "regulatory filings"

Links

License

MIT

Metadata

Release files for crewai-x402-discovery 1.0.1

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-x402-discovery 1.0.1
File Size Uploaded
crewai_x402_discovery-1.0.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-x402-discovery 1.0.1
File Interpreter ABI Platform
crewai_x402_discovery-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / crewai_x402_discovery-1.0.1.tar.gz

Download URL crewai_x402_discovery-1.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
27877b7a6f47350f8a388cd949190409036ad483e1fd7ae2f2eab66c6cb9b6ab
BLAKE2b-256 checksum
How to use checksums
8c783684f02934fc4f59dfa80241c6acdf38c0f69ca9b5a62e40c4fbdbb0ba3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / crewai_x402_discovery-1.0.1-py3-none-any.whl

Download URL crewai_x402_discovery-1.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e31d70c5a380984c767b9bb45feadc1cf95b155fbdcacfe35ddb6e4ccfb355b3
BLAKE2b-256 checksum
How to use checksums
80f549eecec90d842162c90f476e0ea717cabf6d5903a32b008ebf44a1976614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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