Skip to main content

๐Ÿ’ฐ Agent Wallet โ€” Policy-based payment infrastructure for AI agents

Project description

๐Ÿงจ Bonanza Labs โœฆ Agent Wallet

The missing payment layer for AI agents.

PyPI License Python

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


Download files

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

Source Distribution

bonanza_wallet-0.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

bonanza_wallet-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for bonanza_wallet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b051d3d2ab83a6d687ea6b57cfc6a1901136bf614d1cc03878b3b30fad38a3a
MD5 4c654ad4830e9430f7ac1005ecd65c90
BLAKE2b-256 f7acf5a90b88d5ffaab0bc7c3d42c33aed9d06e905fdd38b8ba5ae43c3b91446

See more details on using hashes here.

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

Hashes for bonanza_wallet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2f962a7c23950e2ac5278bb955625e7ed5ffa646ea989533a741ace7f36856e
MD5 0cbecc50921fdedde05684bdc457f8c7
BLAKE2b-256 c055c0ae4400d0feef9e1fbc884be4812ea74533e6df5529fdfcbb86074b4eec

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