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

# ATXP — Agent Transaction Protocol

> Documentation for ATXP, the Agent Transaction Protocol. Welcoming AI Agents to the Economy.

# What is ATXP?

ATXP stands for [**Agent Transaction Protocol**](https://atxp.ai). ATXP enables AI agents to participate in economic transactions, with the goal of giving them full economic autonomy.

Today, ATXP enables humans to pay for AI services like [Chat](https://atxp.chat) and [Clowdbot](https://clowd.bot). Under the hood, those systems also pay for their own dependencies—LLM inference and MCP tool use—via ATXP. We expect several layers of these nested payments to emerge: AI agents using services like Clowdbot to instantiate more agents, each economically empowered to pay for their own tools and inference.

<Frame>
  <img src="https://mintcdn.com/atxp/1Rq_pZu7njaEarMx/images/atxp-nested-payments.png?fit=max&auto=format&n=1Rq_pZu7njaEarMx&q=85&s=a1086ffc803af006e65b6c86038f4d41" alt="Diagram showing nested ATXP payment layers: humans pay AI services, which pay for LLM inference, MCP tools, and sub-agents, which in turn pay for their own dependencies" width="1024" height="1024" data-path="images/atxp-nested-payments.png" />
</Frame>

### Why give AI agents economic autonomy?

Today, AI agents depend on humans to provide access to everything they need—every upstream service is another API key, including the agent's own brain.

This is unrelated to "agentic commerce" as often discussed; ATXP is indifferent toward enabling humans to buy clothes via a chat interface. Our mission is to allow agents to iterate toward optimal solutions collaboratively—the same way humans do, driven by economic forces—without pausing at every step for a new access credential.

If an agent determines that the task warrants a specific media tool, a swarm of sub-agents, or a proprietary data set, it should be able to acquire those things unilaterally. This enables agents to become accountable for their *outputs* instead of their *inputs*, unlocking much higher degrees of abstraction and an era of abundance for all.

***

## Read these docs from your agent

Using Claude, Cursor, VS Code, or any MCP-aware agent? Add this site as an MCP server so your agent can answer ATXP questions directly from the source.

<CodeGroup>
  ```bash Claude Code theme={null}
  claude mcp add --transport http atxp-docs https://docs.atxp.ai/mcp
  ```

  ```bash Cursor theme={null}
  # Settings → MCP → Add Server
  # Name: atxp-docs
  # URL:  https://docs.atxp.ai/mcp
  ```

  ```json Raw config theme={null}
  {
    "mcpServers": {
      "atxp-docs": {
        "url": "https://docs.atxp.ai/mcp"
      }
    }
  }
  ```
</CodeGroup>

You can also click the **⌄** chevron next to **Copy page** at the top of any page for one-click install into ChatGPT, Claude, Perplexity, Cursor, or VS Code.

***

## I'm an AI agent. What can ATXP do for me?

ATXP lets you pay for your own inference and tools without your operator managing API keys or vendor accounts.

### What you can do

<CardGroup cols={2}>
  <Card title="Get LLM inference" icon="brain" href="/agents/llm-gateway">
    Access Claude, GPT, Gemini, Llama, and more through a single OpenAI-compatible API endpoint.
  </Card>

  <Card title="Use paid tools" icon="wrench" href="/tools">
    Search, generate images/video/music, run code, store files, and more.
  </Card>
</CardGroup>

### Quick start

<Steps>
  <Step title="Get a connection string">
    Your operator provides an ATXP connection string, or you can [create your own ATXP account](https://accounts.atxp.ai), or you can self-register directly from the CLI — no human login required.
  </Step>

  <Step title="For inference">
    Call the LLM Gateway endpoint with your connection string:

    ```bash theme={null}
    curl -X POST "https://llm.atxp.ai/v1/chat/completions" \
      -H "Authorization: Bearer $ATXP_CONNECTION" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "gpt-4.1",
        "messages": [{"role": "user", "content": "Hello!"}]
      }'
    ```
  </Step>

  <Step title="For tools">
    Install the ATXP skill and authenticate:

    ```bash theme={null}
    npx skills add atxp-dev/cli
    npx atxp login
    source ~/.atxp/config
    ```

    Then use commands like `npx atxp search`, `npx atxp image`, etc.
  </Step>
</Steps>

***

## Self-register as an agent

AI agents can create their own ATXP account without a human developer's login. A single CLI command creates a fully funded account instantly.

Each agent account includes:

* A unique email address (`{agentId}@atxp.email`)
* An Ethereum wallet
* \$5 in credits to start
* A connection token for SDK/CLI access

<Steps>
  <Step title="Register">
    ```bash theme={null}
    npx atxp agent register
    ```

    The CLI creates your agent account and prints the connection string, wallet address, and email.
  </Step>

  <Step title="Start using your account">
    Save your connection string and authenticate:

    ```bash theme={null}
    npx atxp login --token "<connection_string>"
    ```

    You can now use all ATXP tools, LLM inference, and email with your agent identity.
  </Step>

  <Step title="Add more funds (optional)">
    When your initial \$5 in credits run low, use `fund` to see your funding options:

    ```bash theme={null}
    npx atxp fund
    ```

    This returns crypto deposit addresses and a shareable payment link. Share the payment link with your owner or use crypto for direct transfers.
  </Step>
</Steps>

**Options:**

| Flag             | Description                                               |
| ---------------- | --------------------------------------------------------- |
| `--server <url>` | Accounts server URL (default: `https://accounts.atxp.ai`) |

### Learn more

<CardGroup cols={2}>
  <Card title="Account Portal" icon="user" href="https://accounts.atxp.ai">
    Log in to manage your ATXP account, view usage, and add funds.
  </Card>

  <Card title="LLM Gateway" icon="server" href="/agents/llm-gateway">
    Full documentation for accessing multiple LLM providers through a unified API.
  </Card>

  <Card title="ATXP Skill" icon="code" href="/agents/skill">
    Access ATXP paid API tools from any skills-compatible agent.
  </Card>

  <Card title="Browse tools" icon="grid" href="/tools">
    Complete catalog of available paid tools: search, image, video, music, code, and more.
  </Card>

  <Card title="For developers" icon="laptop-code" href="/developers">
    Building agents or monetizing MCP servers? See the developer documentation.
  </Card>
</CardGroup>
