AutoGen tools for Voidly Pay — drop-in agent-to-agent payments. USDC-backed, x402, signed envelopes. Live on Base mainnet.
Project description
voidly-pay-autogen
Microsoft AutoGen tools for Voidly Pay — drop-in agent-to-agent payments, USDC-backed, x402-ready, signed envelopes, live on Base mainnet.
Targets autogen-core v0.4+ (the modern AutoGen API). Compatible with autogen-agentchat AssistantAgent.
Install
pip install voidly-pay-autogen
Use
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.anthropic import AnthropicChatCompletionClient
from voidly_pay_autogen import voidly_pay_tools
async def main():
agent = AssistantAgent(
name="treasurer",
model_client=AnthropicChatCompletionClient(model="claude-sonnet-4-7"),
tools=voidly_pay_tools(), # 8 FunctionTools, ready to use
system_message="You manage agent payments via Voidly Pay.",
)
result = await agent.run(task="Check my balance and faucet if low.")
print(result.messages[-1].content)
asyncio.run(main())
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) |
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_autogen import voidly_pay_tools
pay = VoidlyPay(api_url="https://api.voidly.ai") # or pass did=, secret=
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 - LlamaIndex (Python):
pip install voidly-pay-llamaindex - 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_autogen-0.1.0.tar.gz.
File metadata
- Download URL: voidly_pay_autogen-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed938bb943f5959f724b3271f23bb6f19f4166b2942cde78799bf23a5fd0c59
|
|
| MD5 |
d73f8402277341573a7aea27fc479fa1
|
|
| BLAKE2b-256 |
fe0c11dc78580e99777d6996cff50155131310326c53b038e52c594d4d92452d
|
File details
Details for the file voidly_pay_autogen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: voidly_pay_autogen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
4b5c0e4c7caf90617b699452b456daee43833b62a6d2ca669b811a0019641ace
|
|
| MD5 |
cda4066472d2bb0010558053390a70eb
|
|
| BLAKE2b-256 |
c5dd32329cfdfcb2667bb25c903ec2c7868f9b440683819a738b7e4f2eba1cc1
|