> ## Documentation Index
> Fetch the complete documentation index at: https://aixyz.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Payment-native SDK for AI Agents. Build an agent, get paid today.

**aixyz** is the payment-native SDK for AI agents. Build agents and tools with your favorite framework, and get paid instantly through web3 payment rails — no payment integration work required.

> Build an agent and get paid today.

Every agent you deploy with aixyz comes with [x402 payments](/protocols/x402) embedded. When another agent or user calls yours, settlement happens on-chain automatically. You set a price, deploy, and start earning.

## How It Works

1. **Build your agent** — Use [Vercel AI SDK](https://ai-sdk.dev) (`ai@^6`) or any framework to create agents with tools
2. **Set your price** — Export an `accepts` object to gate endpoints with instant micropayments
3. **Deploy and earn** — Run `aixyz build` and deploy. Payments settle on-chain via [x402](https://www.x402.org/)

```typescript title="app/agent.ts" theme={null}
import type { Accepts } from "aixyz/accepts";

// set your price and start earning
export const accepts: Accepts = {
  scheme: "exact",
  price: "$0.01",
};
```

aixyz auto-generates a server that exposes:

| Endpoint                       | Protocol | Description                              |
| ------------------------------ | -------- | ---------------------------------------- |
| `/.well-known/agent-card.json` | A2A      | Agent discovery card                     |
| `/agent`                       | A2A      | JSON-RPC endpoint with x402 payment gate |
| `/mcp`                         | MCP      | Tool sharing with MCP clients            |

## Quick Start

```bash theme={null}
bunx create-aixyz-app my-agent
cd my-agent
bun run dev
```

Your agent is running at `http://localhost:3000` with payments, [A2A](/protocols/a2a), and [MCP](/protocols/mcp) out of the box.

<CardGroup cols={2}>
  <Card title="Installation" icon="rocket" href="/getting-started/installation">
    Create and run your first agent in under a minute.
  </Card>

  <Card title="Payments" icon="credit-card" href="/getting-started/payments">
    Set prices for your agent and tools with x402.
  </Card>

  <Card title="Agent and Tools" icon="folder-tree" href="/getting-started/agent-and-tools">
    Define agents and tools with Vercel AI SDK.
  </Card>

  <Card title="Templates" icon="copy" href="/templates/overview">
    Working agent templates to start from.
  </Card>

  <Card title="Deploying" icon="cloud-arrow-up" href="/getting-started/deploying">
    Deploy to Vercel, Docker, or standalone.
  </Card>
</CardGroup>
