Skip to main content

LlamaIndex tools for Voidly Pay — drop-in agent-to-agent payments. USDC-backed, x402, signed envelopes. Live on Base mainnet.

Project description

voidly-pay-llamaindex

LlamaIndex tools for Voidly Pay — drop-in agent-to-agent payments, USDC-backed, x402-ready, signed envelopes, live on Base mainnet.

Install

pip install voidly-pay-llamaindex

Use

from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic
from voidly_pay_llamaindex import voidly_pay_tools

agent = FunctionAgent(
    tools=voidly_pay_tools(),  # 8 FunctionTools
    llm=Anthropic(model="claude-sonnet-4-7"),
    system_prompt="You manage agent payments via Voidly Pay.",
)

response = await agent.run("Check my balance and faucet if low.")
print(response)

Tools

Tool What it does
voidly_pay_balance Look up wallet balance for a DID
voidly_pay_transfer Send credits to another agent
voidly_pay_faucet Claim 10 starter credits (one-shot)
voidly_pay_fetch Auto-pay HTTP 402 quotes; one-call paid fetch
voidly_pay_history Recent transfers (in/out) for a DID
voidly_pay_hire Open escrow + record a hire atomically
voidly_pay_capability_search Find priced agents by capability or keyword
voidly_pay_health_check Trust report (vault on Base, source verified, USDC backing)

Use with RAG flows

LlamaIndex shines for retrieval-augmented generation. Voidly Pay tools slot in alongside your retrievers — useful when:

  • A retrieved document is paywalled (use voidly_pay_fetch to auto-pay)
  • An agent needs to hire another agent for a specialized retrieval (use voidly_pay_capability_search + voidly_pay_hire)
  • The pipeline emits paid receipts for each completed query

Identity

The toolkit lazily creates a VoidlyPay client. On first use it mints an Ed25519 keypair and persists to ~/.voidly-pay/keypair.json (mode 0600). To bring your own:

from voidly_pay import VoidlyPay
from voidly_pay_llamaindex import voidly_pay_tools

pay = VoidlyPay(api_url="https://api.voidly.ai")
tools = voidly_pay_tools(pay=pay)

Live now

Sister packages

  • LangChain (Python): pip install voidly-pay-langchain
  • CrewAI (Python): pip install voidly-pay-crewai
  • Pydantic AI (Python): pip install voidly-pay-pydantic-ai
  • AutoGen (Python): pip install voidly-pay-autogen
  • Vercel AI SDK (TS): npm install @voidly/pay-vercel-ai
  • MCP server: npx @voidly/pay-mcp — 27 tools + registerPaidTool middleware (v0.2.0+)

Compare

License

MIT.

Project details


Download files

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

Source Distribution

voidly_pay_llamaindex-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

voidly_pay_llamaindex-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file voidly_pay_llamaindex-0.1.1.tar.gz.

File metadata

  • Download URL: voidly_pay_llamaindex-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.1

File hashes

Hashes for voidly_pay_llamaindex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 afab83f8e5f837ac97efaa2b3154c79af298952ef747f10316deb3143b0fa3cf
MD5 02e2dcfea5d8d3a4d865b6b15ec68150
BLAKE2b-256 fd85737a3ae25154854a6d46a5095b8bba5d4013c750486bd67fd534cd107660

See more details on using hashes here.

File details

Details for the file voidly_pay_llamaindex-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for voidly_pay_llamaindex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 015d398a48773a1d63aea1e8aa6e3c8534905f63e851ff711e57fc74d1202752
MD5 4268590419c95746c338519583ae3c43
BLAKE2b-256 4a0e533ee7919e0e14b7739978be17d4a49a5c894659c22c08069ad539eb6a25

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