AgentPay SDK for Solana — self-custodial, policy-aware wallet operations for AI agents
agentpay-solana is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 3 GitHub stars and 0 forks.
Self-custodial, policy-aware wallet operations for AI agents on Solana.
A port of the AgentPay EVM SDK to Solana, enabling AI agents to hold, transfer, and govern USD1 and other SPL tokens under operator-defined spending policies.
solpay) — setup, transfer, balance, status, config, Bitrefillskills/solpay/SKILL.md# Install
git clone https://github.com/tonbistudio/agentpay-solana
cd agentpay-solana
pnpm install
cargo build --workspace --release
npx tsup
# Setup
solpay admin setup
# Fund (devnet)
solana airdrop 2 <wallet-pubkey> --url devnet
# Check balance
solpay balance --json
# Configure policy
solpay admin token set --token usd1 --per-tx 10 --daily 100 --weekly 700
# Transfer
solpay transfer-native --to <addr> --amount 0.001 --broadcast
solpay transfer --token usdc --to <addr> --amount 1 --broadcast
CLI (solpay) → Daemon (Rust, Unix socket) → Solana RPC
│ │
│ Policy Engine
│ Ed25519 Signer
│ Encrypted Vault
│
└── Transaction Builder (TypeScript)
VersionedTransaction V0
Priority fee auto-detect
ATA auto-creation
agentpay-solana/
├── crates/ # 9 Rust crates
│ ├── vault-domain/ # Core Solana types (no IO)
│ ├── vault-policy/ # Stateless policy engine
│ ├── vault-signer/ # Ed25519 software signer
│ ├── vault-daemon/ # Encrypted state, auth, signing pipeline
│ ├── vault-transport-unix/ # Unix socket IPC
│ ├── vault-sdk-agent/ # Agent-side Rust SDK
│ ├── vault-cli-admin/ # solpay-admin binary (clap + ratatui TUI)
│ ├── vault-cli-agent/ # solpay-agent binary
│ └── vault-cli-daemon/ # solpay-daemon + solpay-system-keychain
├── packages/
│ ├── config/ # SolpayConfig, builtins
│ └── rpc/ # @solana/web3.js wrapper
├── src/
│ ├── cli.ts # Commander.js entrypoint
│ ├── lib/ # Core modules
│ └── plugins/ # Plugin system + Bitrefill
├── apps/
│ ├── relay/ # Hono approval relay server
│ └── web/ # React approval console
├── skills/solpay/ # OpenClaw skill pack
├── scripts/ # Installer + build scripts
└── test/ # Integration tests
| Command | Description |
|---|---|
solpay admin setup |
First-run wallet setup |
solpay wallet [--json] |
Show wallet info |
solpay balance [--json] |
Check SOL + token balances |
solpay transfer --token <key> --to <addr> --amount <n> |
SPL transfer |
solpay transfer-native --to <addr> --amount <n> |
SOL transfer |
solpay broadcast --tx <base58> |
Broadcast raw transaction |
solpay admin tui |
Interactive policy editor |
solpay admin token set --token <key> --per-tx <n> |
Set limits |
solpay admin approve --id <uuid> |
Approve pending request |
solpay config show |
Show configuration |
solpay status [--json] |
Health check |
solpay bitrefill search --query <text> |
Bitrefill search |
| Token | Mint | Decimals |
|---|---|---|
| USD1 | USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB |
6 |
| USDC | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
6 |
| SOL | (native) | 9 |
# Build
cargo build --workspace
pnpm install && npx tsup
# Test
cargo test --workspace # Rust tests
node --import tsx --test test/*.ts # TypeScript tests
# Lint
npx biome check .
MIT
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.
Drop-in OpenAI Python client with transparent x402 payment support.
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
Drop-in OpenAI Typescript client with transparent x402 payment support.
Autonomous AI BD Agent for SolCex Exchange: 24/7 Cross-Chain Token Scoring & Payments 2026