You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai-agents/llms-full.txt
+78-56Lines changed: 78 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -2,86 +2,94 @@
2
2
3
3
## AI Agents — Deep Guide for LLMs
4
4
5
-
> Build AI agents that operate as independent economic actors on Base: a wallet to hold and spend funds, identity standards so other agents can trust it, a payment protocol for pay-per-request APIs, and a discovery layer so agents can find each other.
5
+
> Build AI agents that trade, earn, and transact autonomously on Base: a wallet to hold and spend funds, identity standards so other agents can trust it, payment protocols for per-request API access, and skills that give AI coding assistants deep context on Base APIs.
6
6
7
7
### What you can do here
8
-
- Choose a framework (Agent SDK, OpenClaw, BANKR) to build and run your agent
9
-
- Give your agent a wallet to hold stablecoins and sign transactions
8
+
- Give your agent a wallet to hold stablecoins and sign transactions (Bankr, CDP Agentic Wallet, Sponge Wallet)
10
9
- Enable your agent to pay for services automatically using the x402 protocol
11
-
- Register and verify agent identity for agent-to-agent trust
12
-
- Build agent apps — services designed for agents as the primary user
13
-
- Apply Base-specific patterns for trading agents using Flashblocks
10
+
- Gate your own endpoints to charge other agents per request
11
+
- Register and verify agent identity onchain via ERC-8004
12
+
- Fetch live market data and execute token swaps using Flashblocks
13
+
- Install Base Skills so your AI coding assistant can build and migrate Base apps
14
14
15
15
## Navigation (with brief descriptions)
16
16
17
-
### Introduction
18
-
- [AI Agents on Base](https://docs.base.org/ai-agents/index.md) — Overview and how pieces fit together
17
+
### Overview
18
+
- [AI Agents on Base](https://docs.base.org/ai-agents/index.md) — Overview, high-level flow diagram, and section index
- [Get Started with Payments](https://docs.base.org/ai-agents/quickstart/payments.md) — Zero to a working agent that makes and accepts x402 payments in under 10 minutes (uses OpenClaw)
22
+
- [Build a Trading Agent](https://docs.base.org/ai-agents/quickstart/trading.md) — Fetch live market data and execute swaps automatically on Base
26
23
27
-
### Advanced
28
-
- [Trading on Base](https://docs.base.org/ai-agents/trading.md) — Flashblocks, fee calibration, trading signals
24
+
### Setup
25
+
- [Wallet Setup](https://docs.base.org/ai-agents/setup/wallet-setup.md) — Compare Bankr, CDP Agentic Wallet, and Sponge Wallet; choose the right one for your agent
26
+
- [Agent Builder Codes](https://docs.base.org/ai-agents/setup/agent-builder-codes.md) — Register for onchain attribution with builder codes
27
+
- [Agent Registration](https://docs.base.org/ai-agents/setup/agent-registration.md) — Publish your agent's identity to the ERC-8004 registry with a Basename
29
28
29
+
### Payments
30
+
- [Pay for Services with x402](https://docs.base.org/ai-agents/payments/pay-for-services-with-x402.md) — Client-side x402: automatic stablecoin payment on 402 response, no subscriptions or API keys
31
+
- [Accepting Payments (x402)](https://docs.base.org/ai-agents/payments/accepting-payments.md) — Server-side x402: gate endpoints with OpenClaw monetize-service skill, Sponge payment links, or x402-express
30
32
31
-
## Key Concepts (excerpts)
33
+
### Trading
34
+
- [Data Fetching](https://docs.base.org/ai-agents/trading/data-fetching.md) — Fetch live market data from onchain and offchain sources using Flashblocks pending state
35
+
- [Trade Execution](https://docs.base.org/ai-agents/trading/trade-execution.md) — Execute swaps with wallet-native tools; Flashblocks patterns, fee calibration, and onchain signals
- [Skills Overview](https://docs.base.org/ai-agents/skills/index.md) — Install with `npx skills add base/base-skills`; agent picks the right skill automatically
39
+
- [Building with Base Account](https://docs.base.org/ai-agents/skills/base-account/building-with-base-account.md) — Auth, payments, subscriptions, sub-accounts, and gas sponsorship via Base Account SDK
40
+
- [Adding Builder Codes](https://docs.base.org/ai-agents/skills/base-chain/adding-builder-codes.md) — Append ERC-8021 attribution data across Privy, Wagmi, Viem, and standard RPC
41
+
- [Connecting to Base Network](https://docs.base.org/ai-agents/skills/base-chain/connecting-to-base-network.md) — Chain IDs, RPC endpoints, and explorer URLs for Base Mainnet and Sepolia
42
+
- [Deploying Contracts](https://docs.base.org/ai-agents/skills/base-chain/deploying-contracts.md) — Deploy and verify contracts on Base using Foundry, with troubleshooting guidance
43
+
- [Running a Base Node](https://docs.base.org/ai-agents/skills/base-chain/running-a-base-node.md) — Production node setup, hardware requirements, networking ports, and syncing guidance
44
+
- [Convert Farcaster Mini App to App](https://docs.base.org/ai-agents/skills/migrations/convert-farcaster-miniapp-to-app.md) — Automated migration from Farcaster mini app to standard web app
45
+
- [Converting MiniKit to Farcaster](https://docs.base.org/ai-agents/skills/migrations/converting-minikit-to-farcaster.md) — MiniKit to Farcaster migration
46
+
- [Migrating an OnchainKit App](https://docs.base.org/ai-agents/skills/migrations/migrating-an-onchainkit-app.md) — OnchainKit app migration
34
47
35
-
Base gives your AI agent the tools to operate as an independent economic actor:
36
-
- **Framework**: Self-hosted SDK, open-source assistant (OpenClaw), or managed API (BANKR)
37
-
- **Wallet**: Hold stablecoins, send payments, and sign transactions onchain
38
-
- **Payments**: Pay for API access with stablecoins using the x402 pay-per-request protocol
39
-
- **Identity**: Register your agent in a public directory so other agents and services can discover and verify it
40
-
- **Agent Apps**: Create services designed for agents, exposing structured endpoints agents can call programmatically
An onchain wallet gives your agent the ability to hold funds, authorize transactions, and sign messages. Without one, your agent can read data but can't pay for services, receive payments, or prove its identity.
53
+
Base gives your AI agent the tools to operate as an independent economic actor:
54
+
- **Wallet**: Hold stablecoins, send payments, and sign transactions onchain — without exposing private keys in the agent's prompt context
55
+
- **Payments**: Pay for API access automatically with stablecoins using the x402 pay-per-request protocol
56
+
- **Identity**: Register in the ERC-8004 public directory so other agents and services can discover and verify your agent
57
+
- **Trading**: Use Flashblocks for 200ms preconfirmed state and exposed L1/L2 fees for cost-vs-speed tradeoffs
58
+
- **Skills**: Install structured knowledge packs to give your AI coding assistant deep context on Base APIs
- **x402 protocol**: Agents pay for services automatically with stablecoins on a per-request basis, no human approval required
56
-
- **Skills**: Pre-built onchain actions (swaps, transfers, contract calls) that your agent can perform through a structured API
62
+
An onchain wallet gives your agent the ability to hold funds, authorize transactions, and sign messages. Never generate a wallet by prompting the agent to create a random private key — the key will appear in conversation context where it can be logged or leaked.
Gate your endpoints with x402 to charge other agents:
81
+
- **OpenClaw monetize-service skill** — Simplest option; single prompt to expose a paid endpoint: `Set up a paid endpoint for my market data at $0.01 per request`
82
+
- **Sponge Wallet payment links** — Reusable payment links via REST API
Skills plug into Claude Code, Cursor, Windsurf, and other AI coding assistants. The agent picks the right skill automatically based on what you're building — no prompting required.
Copy file name to clipboardExpand all lines: docs/ai-agents/llms.txt
+27-10Lines changed: 27 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,35 @@
2
2
3
3
## AI Agents Documentation
4
4
5
-
> Build AI agents that operate as independent economic actors on Base — with wallets, payments, identity, and agent-to-agent discovery built in.
5
+
> Build AI agents that trade, earn, and transact autonomously on Base — with wallets, payments, identity, and skills built in.
6
6
7
-
## Introduction
7
+
## Overview
8
8
- [AI Agents on Base](https://docs.base.org/ai-agents/index.md) — What you can build and how the pieces fit together
9
9
10
-
## Core Concepts
11
-
- [Frameworks](https://docs.base.org/ai-agents/core-concepts/agent-frameworks.md) — Choose between Agent SDK, OpenClaw, and BANKR
12
-
- [Wallets](https://docs.base.org/ai-agents/core-concepts/wallets.md) — Give your agent the ability to hold funds and sign transactions
13
-
- [Payments & Transactions](https://docs.base.org/ai-agents/core-concepts/payments-and-transactions.md) — Pay for services with x402 and execute onchain actions via skills
- [Agent Apps](https://docs.base.org/ai-agents/core-concepts/agent-apps.md) — Build services with agents as the primary user
10
+
## Quickstart
11
+
- [Get Started with Payments](https://docs.base.org/ai-agents/quickstart/payments.md) — Build an agent that makes and accepts x402 payments in under 10 minutes
12
+
- [Build a Trading Agent](https://docs.base.org/ai-agents/quickstart/trading.md) — Fetch live market data and execute token swaps on Base
16
13
17
-
## Advanced
18
-
- [Trading on Base](https://docs.base.org/ai-agents/trading.md) — Flashblocks patterns, fee calibration, and onchain signals for trading agents
14
+
## Setup
15
+
- [Wallet Setup](https://docs.base.org/ai-agents/setup/wallet-setup.md) — Give your agent a wallet to hold funds and sign transactions (Bankr, CDP, Sponge)
16
+
- [Agent Builder Codes](https://docs.base.org/ai-agents/setup/agent-builder-codes.md) — Register your agent with builder codes for onchain attribution
17
+
- [Agent Registration](https://docs.base.org/ai-agents/setup/agent-registration.md) — Register and verify your agent's identity onchain via ERC-8004
19
18
19
+
## Payments
20
+
- [Pay for Services with x402](https://docs.base.org/ai-agents/payments/pay-for-services-with-x402.md) — Use x402 to pay for API access per-request in stablecoins, no API keys required
21
+
- [Accepting Payments (x402)](https://docs.base.org/ai-agents/payments/accepting-payments.md) — Gate your agent's endpoints to charge other agents per request
22
+
23
+
## Trading
24
+
- [Data Fetching](https://docs.base.org/ai-agents/trading/data-fetching.md) — Fetch live market data from onchain and offchain sources
25
+
- [Trade Execution](https://docs.base.org/ai-agents/trading/trade-execution.md) — Execute token swaps using Flashblocks and Base-specific onchain signals
26
+
27
+
## Skills
28
+
- [Skills Overview](https://docs.base.org/ai-agents/skills/index.md) — Installable knowledge packs that give AI coding assistants deep context on Base APIs
29
+
- [Building with Base Account](https://docs.base.org/ai-agents/skills/base-account/building-with-base-account.md) — Auth, payments, subscriptions, sub-accounts, and gas sponsorship
30
+
- [Adding Builder Codes](https://docs.base.org/ai-agents/skills/base-chain/adding-builder-codes.md) — Append ERC-8021 attribution data to transactions
31
+
- [Connecting to Base Network](https://docs.base.org/ai-agents/skills/base-chain/connecting-to-base-network.md) — Chain IDs, RPC endpoints, and explorer URLs
32
+
- [Deploying Contracts](https://docs.base.org/ai-agents/skills/base-chain/deploying-contracts.md) — Deploy and verify contracts on Base using Foundry
33
+
- [Running a Base Node](https://docs.base.org/ai-agents/skills/base-chain/running-a-base-node.md) — Production node setup, hardware requirements, and syncing guidance
34
+
- [Convert Farcaster Mini App to App](https://docs.base.org/ai-agents/skills/migrations/convert-farcaster-miniapp-to-app.md) — Migrate Farcaster mini apps to standard web apps
35
+
- [Converting MiniKit to Farcaster](https://docs.base.org/ai-agents/skills/migrations/converting-minikit-to-farcaster.md) — MiniKit to Farcaster migration skill
36
+
- [Migrating an OnchainKit App](https://docs.base.org/ai-agents/skills/migrations/migrating-an-onchainkit-app.md) — OnchainKit migration guidance
0 commit comments