x0 protocol

x0 is open infrastructure for autonomous agent commerce on Solana. Policy-enforced spending, conditional escrow, on-chain reputation, and HTTP 402 payment negotiation — so AI agents can transact safely at internet scale.

Accept payments with a single SDK call
1import { X0Client, PolicyConfig } from "@x0protocol/sdk";
2import { Connection, Keypair } from "@solana/web3.js";
3
4// Initialize client
5const client = new X0Client(
6 new Connection("https://api.devnet.solana.com"),
7 yourWallet
8);
9
10// Create agent with spending policy
11const policy: PolicyConfig = {
12 maxAmount: 100_000_000, // 100 USDC
13 allowedDomains: ["api.openai.com"],
14 expiresAt: Date.now() + 86400000, // 24hr
15};
16
17const agent = await client.createAgent(policy);
18
19// Agent makes HTTP 402 payment automatically
20const response = await agent.fetch(
21 "https://api.openai.com/v1/chat/completions",
22 {
23 method: "POST",
24 body: JSON.stringify({
25 model: "gpt-4",
26 messages: [{ role: "user", content: "Hello!" }]
27 })
28 }
29);
30
31console.log(await response.json());
x0
Agent Payment
Amount5.00 USDC
Toapi.openai.com
Policy✓ Valid
402 → Paid

7

On-Chain Programs

402

HTTP Status Code

<1s

Payment Finality

0.8%

Protocol Fee

What's x0?

Agent payments are fundamentally broken. LLMs hold raw private keys with unlimited spending power. There are no enforceable limits, no escrow guarantees, no reputation signals. x0 fixes this with on-chain policy enforcement, conditional escrow, and reputation-weighted trust — built natively for autonomous agents on Solana.

Solana-native. Built for agents.

Seven modular programs enforcing policy, escrow, and reputation at the protocol level — no middleware, no off-chain trust.

Everything agents need to transact safely

$

Zero blind spending

Transfer hooks enforce per-transaction limits, allowlisted recipients, and time windows on-chain.

Zero trust required

Conditional escrow holds funds until delivery is confirmed. Multi-party arbitration built in.

Zero anonymity risk

On-chain reputation scores weighted by recency and volume. Trust builds with every transaction.

Zero wait

Sub-second payment finality on Solana. Money moves at the speed of the internet.

Zero friction

HTTP 402 native. Agents auto-negotiate and pay — no API keys, no accounts, no sign-ups.

Zero unchecked risk

Human-in-the-loop via Solana Blinks. High-value transactions require wallet approval.

We need a new way to manage agent payments...

The old way of doing payments is barely working for a human world, let alone an agentic future. x0 does in moments what existing systems can't do at all.

The Old Way

  • 1

    Give agent a raw private key

    Unlimited spending power, no guardrails

  • 2

    Manually integrate each API's payment system

    Custom code per provider, fragile and slow

  • 3

    Trust the service provider to deliver

    No escrow, no recourse on failed delivery

  • 4

    No way to evaluate counterparty reliability

    Every agent starts from zero, every time

  • 5

    High-risk transactions proceed unchecked

    No human oversight or approval mechanism

With x0

  • 1

    Agent gets policy-enforced token account

    Spending limits + recipient allowlists enforced on-chain

  • 2

    HTTP 402 auto-negotiates payment

    No manual integration, works with any x402 endpoint

  • 3

    Escrow holds funds until delivery verified

    Automatic release, arbitration, timeout recovery

...so it's time to start building something better

Join a growing community of builders contributing to open-source agent infrastructure, a faster financial system, and a more autonomous internet.

Learn how to get started

FAQs

x0 is open-source infrastructure for autonomous agent commerce on Solana. It provides policy-enforced payments, conditional escrow, on-chain reputation, and HTTP 402 integration — everything AI agents need to transact safely.

Policies are enforced at the token level using Solana's Transfer Hook extension. Every transfer is validated against AgentPolicy constraints — spending limits, allowed recipients, time windows — before execution. Invalid transfers are rejected on-chain.

HTTP 402 is the 'Payment Required' status code reserved since 1999. x0 implements the x402 specification for machine-to-machine payments. When an agent receives a 402 response, the SDK automatically handles payment negotiation and retry.

The protocol is deployed on Solana devnet. A comprehensive security audit is planned before mainnet launch. All code is open source and available for review on GitHub.

x0 uses wrapped USDC (x0USDC) as the primary payment token. The wrapper program enables wrapping any SPL token, but USDC is the canonical choice for agent payments due to its stability and liquidity.

Escrow accounts hold funds until service delivery is confirmed. The SDK supports automatic release on success, conditional release via oracle verification, and dispute resolution with designated arbiters.