AuditAgent is the first production-ready implementation of autonomous agents on Solana that handle micropayments for premium APIs. Built on the HTTP 402 Payment Required standard with Visa TAP integration
AuditAgent- is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on solana, x402-agent. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like tdm-sdk, Task-router-x402, Ros-X402-Node, dna-x402, x402-Solana-demo, P-Link-MCP.
Autonomous payment infrastructure for the x402 economy
AuditAgent is the first production-ready implementation of autonomous agents on Solana that handle micropayments for premium APIs. Built on the HTTP 402 Payment Required standard with Visa TAP integration.
Traditional API monetization is broken:
AuditAgent solves this with:
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Web UI │◄────►│ AuditAgent │◄────►│ Solana PDA │
│ Dashboard │ │ Orchestrator │ │ Wallet │
└──────────────┘ └──────────────┘ └──────────────┘
│
├──► Premium x402 APIs
├──► VisaTAP Module
└──► On-chain Telemetry
solana-program/) - Rust program managing PDA wallet stateweb/) - Next.js UI with agent orchestrationsdk/) - Reusable TypeScript clientdemo/) - Standalone CLI demoscripts/) - Deployment and management toolsSee SETUP.md for complete instructions.
# 1. Deploy Solana program
./scripts/deploy-program.sh
# 2. Configure environment
cp web/.env.example web/.env.local
# Edit web/.env.local with your program ID and authority secret
# 3. Initialize agent
cd scripts && npx ts-node initialize-agent.ts
# 4. Fund agent with devnet USDC
./scripts/fund-agent.sh
# 5. Run dashboard
cd web && npm run dev
Visit http://localhost:3000 and click "Trigger Agent" to see it in action!
AuditAgent/
├── solana-program/ # Rust on-chain program
│ ├── src/lib.rs # PDA wallet logic
│ └── Cargo.toml
├── web/ # Next.js dashboard
│ ├── src/
│ │ ├── app/ # Pages and API routes
│ │ ├── components/ # React components
│ │ └── lib/ # Agent orchestration
│ └── package.json
├── sdk/ # TypeScript SDK
│ ├── src/index.ts # AuditAgentClient
│ └── package.json
├── demo/ # CLI demo
│ └── src/demo.ts
├── scripts/ # Deployment tools
│ ├── deploy-program.sh
│ ├── initialize-agent.ts
│ └── fund-agent.sh
└── docs/ # Documentation
└── TAP-architecture.md
Agent Initialization
"aax4-agent"Payment Flow
Dashboard Updates
# Install dependencies
npm install
# Run tests
npm run test
# Format code
npm run format
# Lint
npm run lint
# Build all workspaces
npm run build
The project includes comprehensive tests:
Run tests:
npm run test
See TESTING.md for details.
import { AuditAgentClient } from '@auditagent/sdk';
const client = new AuditAgentClient({
programId: process.env.SOLANA_AGENT_PROGRAM_ID!,
authoritySecret: process.env.SOLANA_AGENT_AUTHORITY_SECRET!,
usdcMint: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
premiumApiBase: 'http://localhost:3000',
});
const result = await client.runAudit({
resourcePath: '/api/premium-data'
});
console.log('Transaction:', result.signature);
console.log('Data:', result.primary);
console.log('TAP Proof:', result.tapProof);
// GET /api/premium-data
// Without payment → 402 Payment Required
{
"x402Version": 1,
"resource": "http://localhost:3000/api/premium-data",
"accepts": [{
"method": "solana-pay",
"network": "devnet",
"asset": "USDC",
"amount": 1,
"payTo": "<agent-pda>"
}]
}
// With payment → 200 OK
{
"data": { ... },
"nextResource": "/api/premium-insights", // optional chaining
"nextResourceLabel": "premium-x402-insights"
}
Follow SETUP.md
Update environment to mainnet:
NEXT_PUBLIC_SOLANA_CLUSTER=mainnet-beta
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
NEXT_PUBLIC_SOLANA_USDC_MINT=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Deploy program to mainnet:
solana config set --url mainnet-beta
solana program deploy solana-program/target/deploy/solana_program.so
Fund with real USDC
⚠️ Warning: Use proper key management and security practices for mainnet deployment.
See CHANGELOG.md for release history.
This is a hackathon project. Contributions welcome!
MIT License - see LICENSE for details
Built on proven, production-ready infrastructure:
/docs for guidesInterested in production deployment or integration support?
Create an issue labeled enterprise or email the maintainers.
For questions or issues:
Built with ❤️ for the Solana ecosystem
Open contract-facing SDK for payable routes and gateway-backed integrations. Thin public surface for authorize, checkout, and session flows.
Task-router-x402 is a Node.js/Express service for orchestrating robots and agents with x402 payment integration.
A ROS 1 (Noetic) package that turns robot capabilities into paid API endpoints - using Solana’s x402 protocol for pay-to-access control — and includes tools for making and verifying payments to external services.
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
Solana x402 demo
x402 client implementation (x402-fetch), HTTP 402 server implementation and Model Context Protocol (MCP) for P-Link.io : pay, send and receive money with agents
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