Skip to content

Commit 406b517

Browse files
authored
Update LLMs files (#1264)
* update llms.txt files * update LLMs files * remove double bar
1 parent f50aafe commit 406b517

File tree

10 files changed

+189
-83
lines changed

10 files changed

+189
-83
lines changed

docs/ai-agents/llms-full.txt

Lines changed: 78 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,86 +2,94 @@
22

33
## AI Agents — Deep Guide for LLMs
44

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.
66

77
### 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)
109
- 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
1414

1515
## Navigation (with brief descriptions)
1616

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
1919

20-
### Core Concepts
21-
- [Frameworks](https://docs.base.org/ai-agents/core-concepts/agent-frameworks.md) — Agent SDK, OpenClaw, BANKR comparison
22-
- [Wallets](https://docs.base.org/ai-agents/core-concepts/wallets.md) — Wallet options and setup
23-
- [Payments & Transactions](https://docs.base.org/ai-agents/core-concepts/payments-and-transactions.md) — x402 and skills
24-
- [Identity, Verification & Auth](https://docs.base.org/ai-agents/core-concepts/identity-verification-auth.md) — Agent identity and trust
25-
- [Agent Apps](https://docs.base.org/ai-agents/core-concepts/agent-apps.md) — Build agent-first services
20+
### Quickstart
21+
- [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
2623

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
2928

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
3032

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
3236

33-
Source: `https://docs.base.org/ai-agents/index.md`
37+
### Skills
38+
- [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
3447

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
4148

42-
Source: `https://docs.base.org/ai-agents/core-concepts/agent-frameworks.md`
43-
44-
Framework comparison:
45-
- **BANKR** — Managed Agent API with skill and wallet plugins; best for fast deployment
46-
- **OpenClaw** — Open-source personal AI assistant (Discord, Telegram, web); best for multi-channel agents
47-
- **Agent SDK** — Developer toolkit for custom agents with full control over behavior and integrations
49+
## Key Concepts (excerpts)
4850

49-
Source: `https://docs.base.org/ai-agents/core-concepts/wallets.md`
51+
Source: `https://docs.base.org/ai-agents/index.md`
5052

51-
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
5259

53-
Source: `https://docs.base.org/ai-agents/core-concepts/payments-and-transactions.md`
60+
Source: `https://docs.base.org/ai-agents/setup/wallet-setup.md`
5461

55-
- **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.
5763

58-
Source: `https://docs.base.org/ai-agents/core-concepts/identity-verification-auth.md`
64+
Wallet options:
65+
- **Bankr** — Cross-chain wallet (Base, Ethereum, Solana, Polygon, Unichain); built-in swap tools; gas sponsored on supported chains. Install: `install the bankr skill from https://github.com/BankrBot/skills`
66+
- **CDP Agentic Wallet** — Email OTP auth, no API keys in agent; native x402 support. Install: `npx skills add coinbase/agentic-wallet-skills`
67+
- **Sponge Wallet** — REST API for wallet operations; built-in swap and x402 payment links. API at `https://api.wallet.paysponge.com`
5968

60-
- Agents register in a public directory with verifiable credentials
61-
- Other agents and services can look up and verify identity before trusting
62-
- Authentication flows designed for machine-to-machine (no human in the loop)
69+
Source: `https://docs.base.org/ai-agents/payments/pay-for-services-with-x402.md`
6370

64-
Source: `https://docs.base.org/ai-agents/core-concepts/agent-apps.md`
71+
The x402 protocol lets agents pay for API access automatically:
72+
1. Agent sends HTTP request to a paid endpoint
73+
2. Server responds with `402 Payment Required` and payment requirements
74+
3. Agent signs a payment payload and retries with `PAYMENT-SIGNATURE` header
75+
4. Facilitator verifies and settles the payment onchain
76+
5. Server delivers the response
6577

66-
- Agent apps expose structured endpoints (not visual UIs) that agents can discover and call
67-
- Make your service discoverable by registering it in the agent directory
68-
- Design APIs with explicit schemas so agents can reason about inputs and outputs
78+
Source: `https://docs.base.org/ai-agents/payments/accepting-payments.md`
6979

80+
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
83+
- **x402-express** — `npm install x402-express express` for custom Express middleware
7084

71-
## Trading Agents (excerpts)
85+
Host a `SKILL.md` at `/.well-known/SKILL.md` to make your endpoint discoverable by agents.
7286

73-
Source: `https://docs.base.org/ai-agents/trading.md`
87+
Source: `https://docs.base.org/ai-agents/trading/trade-execution.md`
7488

75-
Base offers two structural advantages for trading agents:
89+
Base-specific trading advantages:
7690
- **Flashblocks**: 200ms preconfirmed block state, 10× faster than the 2-second block
7791
- **Exposed L1/L2 fee structure**: Enables explicit cost-vs-speed tradeoffs
7892

79-
Key patterns:
80-
- Connect to `mainnet-preconf.base.org` for all reads and submissions to access Flashblocks pending state
81-
- Simulate with `eth_simulateV1` against preconfirmed state before signing any transaction
82-
- Poll `base_transactionStatus` (not `eth_getTransactionReceipt`) for low-latency inclusion status (~200ms)
83-
- Use `eth_feeHistory` over last 5–10 blocks with reward percentiles `[50, 90]` for fee calibration
84-
8593
Fee calibration:
8694
```
8795
maxFeePerGas = nextBaseFee * 2 + maxPriorityFeePerGas
@@ -92,7 +100,21 @@ L1 fee decision rule — if this ratio exceeds 0.8, L1 fee dominates; consider d
92100
l1FeeUpperBound / (gasLimit × maxFeePerGas + l1FeeUpperBound) > 0.8
93101
```
94102

95-
Key Flashblocks signals for trading:
96-
- `eth_getBlockByNumber("pending")` on preconf endpoint — preconfirmed pending block state (200ms early)
97-
- `eth_subscribe("newFlashblockTransactions")` — first-mover on large trades entering the block
98-
- `eth_subscribe("pendingLogs", { address, topics })` — detect liquidation thresholds and oracle updates before finality
103+
Key patterns:
104+
- Connect to `mainnet-preconf.base.org` for all reads and submissions
105+
- Simulate with `eth_simulateV1` against preconfirmed state before signing
106+
- Poll `base_transactionStatus` (not `eth_getTransactionReceipt`) for ~200ms inclusion status
107+
- Use `eth_feeHistory` over last 5–10 blocks with reward percentiles `[50, 90]` for fee calibration
108+
109+
110+
## Skills (excerpts)
111+
112+
Source: `https://docs.base.org/ai-agents/skills/index.md`
113+
114+
Install all Base Skills:
115+
116+
```bash
117+
npx skills add base/base-skills
118+
```
119+
120+
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.

docs/ai-agents/llms.txt

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,35 @@
22

33
## AI Agents Documentation
44

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.
66

7-
## Introduction
7+
## Overview
88
- [AI Agents on Base](https://docs.base.org/ai-agents/index.md) — What you can build and how the pieces fit together
99

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
14-
- [Identity, Verification & Auth](https://docs.base.org/ai-agents/core-concepts/identity-verification-auth.md) — Register, discover, and verify agents
15-
- [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
1613

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
1918

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

docs/base-account/llms-full.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const { status } = await getPaymentStatus({ id })
5252
- [Privy Authentication](https://docs.base.org/base-account/framework-integrations/privy/authentication.md) — Privy auth
5353
- [Privy Sub‑Accounts](https://docs.base.org/base-account/framework-integrations/privy/sub-accounts.md) — Privy sub‑accounts
5454
- [Privy Spend Permissions](https://docs.base.org/base-account/framework-integrations/privy/spend-permissions.md) — Privy spend permissions
55+
- [Privy Wallet Actions](https://docs.base.org/base-account/framework-integrations/privy/wallet-actions.md) — Privy wallet action patterns
5556
- [RainbowKit](https://docs.base.org/base-account/framework-integrations/rainbowkit.md) — RainbowKit integration
5657
- [Reown](https://docs.base.org/base-account/framework-integrations/reown.md) — Reown integration
5758
- [Thirdweb](https://docs.base.org/base-account/framework-integrations/thirdweb.md) — Thirdweb integration

docs/base-account/llms.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- [Privy: Setup](https://docs.base.org/base-account/framework-integrations/privy/setup.md) — Authentication + sub‑accounts
2525
- [RainbowKit](https://docs.base.org/base-account/framework-integrations/rainbowkit.md) — RainbowKit integration
2626
- [Reown](https://docs.base.org/base-account/framework-integrations/reown.md) — Reown integration
27+
- [Thirdweb](https://docs.base.org/base-account/framework-integrations/thirdweb.md) — Thirdweb integration
2728
- [CDP](https://docs.base.org/base-account/framework-integrations/cdp.md) — CDP integration
2829

2930
## Reference

docs/base-chain/llms-full.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- [Builder Codes](https://docs.base.org/base-chain/builder-codes/builder-codes.md) — Overview of the Builder Codes program
5959
- [App Developers](https://docs.base.org/base-chain/builder-codes/app-developers.md) — Builder Codes for app developers
6060
- [Wallet Developers](https://docs.base.org/base-chain/builder-codes/wallet-developers.md) — Builder Codes for wallet developers
61+
- [Agent Developers](https://docs.base.org/base-chain/builder-codes/agent-developers.md) — Attribute AI agent transactions to your identity on Base
6162

6263
### Security
6364
- [Security Council](https://docs.base.org/base-chain/security/security-council.md) — Security governance

docs/base-chain/llms.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,11 @@
3838
- [Report a Vulnerability](https://docs.base.org/base-chain/security/report-vulnerability.md) — Security contact and disclosure
3939
- [Security Council](https://docs.base.org/base-chain/security/security-council.md) — Governance and process overview
4040

41+
## Builder Codes
42+
- [Builder Codes](https://docs.base.org/base-chain/builder-codes/builder-codes.md) — Overview of the Builder Codes program
43+
- [App Developers](https://docs.base.org/base-chain/builder-codes/app-developers.md) — Builder Codes for app developers
44+
- [Wallet Developers](https://docs.base.org/base-chain/builder-codes/wallet-developers.md) — Builder Codes for wallet developers
45+
- [Agent Developers](https://docs.base.org/base-chain/builder-codes/agent-developers.md) — Attribute AI agent transactions to your identity on Base
46+
4147
## Optional
4248
- [Ecosystem Contracts](https://docs.base.org/base-chain/network-information/ecosystem-contracts.md) — Common ecosystem contract addresses

0 commit comments

Comments
 (0)