The Creative Resource Layer for the x402 Agent Economy. Non-custodial SDK for autonomous image, video, and social orchestration on Solana. 🌉🦾
xona is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on solana, x402, x402-api. It currently has 1 GitHub stars and 1 forks, and sits alongside related tools like dna-x402, magpie-x402, x402-micropayments, zkprof, P-Link-MCP, zkprof.
The Xona SDK is the definitive creative resource gateway for the autonomous agent economy. Built on the x402 (HTTP Payment Required) protocol, it allows AI agents to discover, pay for, and execute high-fidelity media tasks—including image generation, video rendering, and social media orchestration—directly on the Solana network.
npm install @xona-labs/xona
# or
bun add @xona-labs/xona
Initialize the XonaClient to enable your agent to autonomously purchase creative assets.
import { XonaClient } from '@xona-labs/xona';
// Initialize with your Agent's Solana private key (Base58)
const xona = new XonaClient({
privateKey: process.env.AGENT_PRIVATE_KEY
});
async function runCreativeWorkflow() {
// 1. Discover available resources (Discovery-first A2A flow)
const resources = await xona.discoverResources();
// 2. Get technical specs & x402 version for a specific model
const detail = await xona.resourceDetail('image-model/gemini');
// 3. Execute & Pay (Handles the 402 loop automatically)
const result = await xona.executeResource('image-model/gemini', {
prompt: 'A futuristic bridge connecting human and agent economies, cinematic style',
aspect_ratio: '16:9'
});
console.log('Creative Asset URL:', result.data.url);
console.log('On-chain Settlement:', result.settlement.transaction);
}
The primary engine for agentic commerce.
discoverResources(): Returns a list of available slugs, descriptions, and basic pricing.resourceDetail(slug): Returns full metadata including JSON-schema requirements and the specific x402 protocol version (v1 vs v2).executeResource<T>(slug, payload): The core autonomous method. It attempts the request, catches the 402 Payment Required challenge, signs it locally, and retries with the valid payment headers.getPublicKey(): Utility to retrieve the agent's public address.Xona is version-agnostic, allowing agents to interact with a wide range of resource providers:
| Feature | v1 (Legacy) | v2 (Standard) |
|---|---|---|
| Header | X-PAYMENT |
PAYMENT-SIGNATURE |
| Identifier | paymentId |
nonce |
| Standard | Custom | CAIP-2 (solana:mainnet) |
| Security | Payload-based signature | Message-based attestation |
MIT © Xona Labs
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
Collateral that can still sell itself — Magpie's x402 agent API: borrow SOL programmatically on Solana.
x402 payment gateway integration demo for x402 infrastructure, using x402 protocol.
Create encrypted zk-Prof(ile) Pictures with privacy-first photos for the undoxxed by Arubaito
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
🔒 Create and control encrypted profile photos with zkProf, ensuring privacy and security through zero-knowledge proofs on the Solana blockchain.
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