> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.0x.org/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.0x.org/_mcp/server.

# Using AI with 0x

> Use built-in AI integrations and copy options in 0x Docs to work efficiently with LLMs

0x Docs includes built-in AI integrations, 0x skills, and an official MCP server so you can work with up-to-date documentation directly inside your AI tools and editor.

See the options available from the **page actions menu** on any documentation page.

![context menu in docs](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/0x.docs.buildwithfern.com/8f209425aab35fd3ab97f85d48426aa33a52b2fb897edab1c50b54be5ce3f813/docs/assets/img/introduction/context-menu.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260809%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260809T201538Z&X-Amz-Expires=604800&X-Amz-Signature=b0c0c04b4b0d794d01c07dc8831ea5a094ee35208b84119f82106f94ca8199f4&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## Get started

#### [Connect to the 0x MCP Server](/docs/introduction/develop-with-ai/mcp-setup)

Connect AI tools to 0x documentation for an enhanced development experience.

#### [Install 0x Agent Skills](/docs/introduction/develop-with-ai/agent-skills)

Give your AI coding agent instant knowledge of the 0x Swap & Gasless API —
swap flows, auth, error handling, and more with a single command.

#### [Trade from the terminal with the 0x CLI](/docs/introduction/develop-with-ai/0x-cli)

An agent-first command-line tool for swaps, gasless trades, and cross-chain
bridging — JSON envelopes, stable exit codes, and a bundled agent skill.

#### [Use an LLM](/docs/introduction/develop-with-ai/using-ai-with-0x#copy-page)

Use 0x docs directly in your AI workflow with context-menu copy options,
direct AI tool integrations, and one-click IDE setup.

#### [AI Projects with 0x](/docs/introduction/develop-with-ai/ai-tools)

Explore consumer and developer tools using AI and 0x in production.

#### [Autonomous Agent Payments](/docs/introduction/develop-with-ai/autonomous-agent-payments)

Access 0x EVM Swap API without an API key using per-request USDC payments via
x402 or MPP.

## Available Options

Below is a list of all available options, what they do, and when to use them.

### Install Agent Skills

Give your AI coding agent built-in knowledge of the 0x API — no manual prompting or copy-pasting docs required.

```bash
npx skills add 0xProject/0x-ai
```

Once installed, your agent understands the full 0x Swap API surface: swap flows, gasless transactions, authentication, error handling, and chain-specific details. Works with Claude Code, Cursor, GitHub Copilot, and other agents that support the [Agent Skills specification](https://agentskills.io).

→ See the full setup guide: **[0x Agent Skills](/docs/introduction/develop-with-ai/agent-skills)**

Agent Skills are the recommended starting point if you're actively building a swap integration in your editor.

---

### Connect via MCP

For the best AI development experience, connect your editor or AI assistant to the **0x MCP Server**.

MCP gives AI tools live, searchable access to 0x documentation — no copy-pasting required.

→ Follow the full setup guide: **[Connect to the 0x MCP Server](/docs/introduction/develop-with-ai/mcp-setup)**

If you're building in an IDE or working on a multi-step integration, MCP is the recommended approach.

---

### Trade from the terminal with the 0x CLI

The **0x CLI** is a single binary, `0x`, that wraps the 0x Swap, Gasless, Solana, and Cross-Chain APIs. It's built to be driven by both humans and AI agents: every command is non-interactive-safe and emits a machine-readable JSON envelope with stable exit codes.

```bash
0x swap --chain base --sell USDC --buy WETH --amount 1000000 --yes -o json-envelope
```

→ See the full guide: **[0x CLI](/docs/introduction/develop-with-ai/0x-cli)**

Use the CLI when you want an agent to *execute* trades as a tool, rather than write API client code itself.

---

### Copy Page

Copies the page in a format optimized for AI tools.

* Preserves structure and code blocks
* Removes UI and navigation noise

**When to use**\
Paste into any LLM to ask questions or generate code using the current page as context.

**How to use**\
Select **Copy page**, then paste into your AI tool.

---

### View as Markdown

Shows the raw Markdown source of the page.

**When to use**\
Inspect, edit, or selectively share content before sending it to an AI tool.

**How to use**\
Select **View as Markdown**, then copy what you need.

---

### Ask AI

Ask questions about the current page directly in the docs.

**When to use**\
Get quick explanations without leaving the documentation site.

**How to use**\
Select **Ask AI** and enter your question.

---

### Open in ChatGPT

Opens the page in ChatGPT with context included.

**When to use**\
Quick Q\&A or code generation based on a single page.

**How to use**\
Select **Open in ChatGPT** to continue in ChatGPT.

---

### Open in Claude

Opens the page in Claude with full context.

**When to use**\
Deeper analysis or longer-form reasoning about the page.

**How to use**\
Select **Open in Claude** to continue in Claude.