๐ฐ Agent Wallet โ Policy-based payment infrastructure for AI agents
Project description
๐งจ Bonanza Labs โฆ Agent Wallet
The missing payment layer for AI agents.
The Problem
AI agents can browse, code, and create โ but they can't pay for anything. Every API call, every SaaS subscription, every micro-transaction requires a human.
The Solution
Agent Wallet gives AI agents:
- ๐ณ A wallet with budget limits
- ๐ Policy-based approval (auto-approve under $X, human approval above)
- ๐ Spending tracking & analytics
- โก Instant settlements (USDC/USD1 on BSC, Solana)
- ๐ฅ๏ธ REST API + CLI + Dashboard
Quick Start
pip install agent-wallet
# Create a wallet
agent-wallet create --name MyAgent --chain solana --budget 100
# Propose a payment
agent-wallet pay <wallet-id> 3.50 --recipient alice --description "API call"
# Check balance
agent-wallet balance <wallet-id>
# View analytics
agent-wallet analytics <wallet-id>
Policy Engine
Auto-approve small payments, require human approval for large ones:
# policy.yaml
name: default
auto_approve_under: 5.0
human_approval_above: 5.0
daily_limit: 100.0
monthly_limit: 500.0
allowed_chains: [solana, bsc]
blocked_recipients: []
cooldown_seconds: 60
max_transactions_per_day: 50
REST API
pip install agent-wallet[dashboard]
uvicorn agent_wallet.api.server:app --port 8000
| Endpoint | Method | Description |
|---|---|---|
/wallets |
POST | Create wallet |
/wallets |
GET | List wallets |
/wallets/{id} |
GET | Get wallet |
/wallets/{id}/pay |
POST | Propose payment |
/wallets/{id}/transactions/{tid}/approve |
POST | Approve/reject |
/wallets/{id}/analytics |
GET | Spending analytics |
Architecture
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ CLI / API โโโโโถโ Policy Engine โโโโโถโ Settlement โ
โ (FastAPI) โ โ (YAML rules) โ โ (Solana/BSC)โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ
โโโโโโโดโโโโโโ
โ Approval โ
โ Queue โ
โโโโโโโโโโโโโ
Revenue Model
- Free: 1 agent, $50/mo limit
- Pro: $29/mo โ 10 agents, $5K/mo, analytics
- Enterprise: $199/mo โ unlimited, custom policies, SSO
License
Apache 2.0 โ ยฉ Bonanza Labs
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 bonanza_wallet-0.1.0.tar.gz.
File metadata
- Download URL: bonanza_wallet-0.1.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b051d3d2ab83a6d687ea6b57cfc6a1901136bf614d1cc03878b3b30fad38a3a
|
|
| MD5 |
4c654ad4830e9430f7ac1005ecd65c90
|
|
| BLAKE2b-256 |
f7acf5a90b88d5ffaab0bc7c3d42c33aed9d06e905fdd38b8ba5ae43c3b91446
|
File details
Details for the file bonanza_wallet-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bonanza_wallet-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f962a7c23950e2ac5278bb955625e7ed5ffa646ea989533a741ace7f36856e
|
|
| MD5 |
0cbecc50921fdedde05684bdc457f8c7
|
|
| BLAKE2b-256 |
c055c0ae4400d0feef9e1fbc884be4812ea74533e6df5529fdfcbb86074b4eec
|