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_fetchto 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
- Vault:
0xb592512932a7b354969bb48039c2dc7ad6ad1c12(Basescan) - Public proof of reserves: https://api.voidly.ai/v1/pay/proof
- Marketplace: https://api.voidly.ai/v1/pay/marketplace
- Source verified on Sourcify
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 +registerPaidToolmiddleware (v0.2.0+)
Compare
- vs
@stripe/agent-toolkit: https://voidly.ai/pay/vs/stripe-agent-toolkit - vs
@stripe/link-cli: https://voidly.ai/pay/vs/stripe-link-cli - Full rail comparison: https://voidly.ai/pay/compare
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file voidly_pay_llamaindex-0.1.0.tar.gz.
File metadata
- Download URL: voidly_pay_llamaindex-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ca6dff8d09438ad4aea8e407812fc21df780c33064a2b104dc5d9efa7aeb455
|
|
| MD5 |
2e09cbfe00a502b6c1307ecd7c60d920
|
|
| BLAKE2b-256 |
3464e464b0d724e0aa46ecab07bbe3bfd06fe2bcfaa2c8783fc0341be89a39f0
|
File details
Details for the file voidly_pay_llamaindex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: voidly_pay_llamaindex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a04e49b1ae58af3a6ebe93388787f2e8442a3d566566c7ef873d6bffcdcccd
|
|
| MD5 |
463ffa6be6b380e49ff79523dc163a26
|
|
| BLAKE2b-256 |
c7929a4d27d85e42d134ac012b39142f12275aeb565c5271b9d81ff16b96e4e8
|