Skip to main content

LlamaIndex ToolSpec for AiPayGent — 123 AI endpoints via x402 micropayments (USDC on Base)

Project description

Drop this file into any LlamaIndex project to give your agent access to 80+ paid AI endpoints via x402 micropayments.

Install:

pip install llama-index-core requests

Usage:

from aipaygent_llamaindex import AiPayGentToolSpec

tool_spec = AiPayGentToolSpec(x402_token=”your_token”) tools = tool_spec.to_tool_list()

from llama_index.core.agent import ReActAgent from llama_index.llms.anthropic import Anthropic

llm = Anthropic(model=”claude-haiku-4-5-20251001”) agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)

response = agent.chat(“Research quantum computing and give me a summary”)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aipaygent_llamaindex-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file aipaygent_llamaindex-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aipaygent_llamaindex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d35404290a5d8e451d3297e1ac17b3212ace07410dd2505a3aa6c35d68a7d03e
MD5 b0a728e52c296b6f74f8434db36bb2bb
BLAKE2b-256 61a72a1ee5c61572a11a2fd9127fe64cd4c03a81d1312c89732e6faa8512e415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page