Skip to content

Commit f14b43c

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/remove-learn-section
# Conflicts: # docs/docs.json # docs/learn/onchain-app-development/account-abstraction/account-abstraction-on-base-using-biconomy.mdx
2 parents 27a6ea3 + 3dc0035 commit f14b43c

37 files changed

Lines changed: 1777 additions & 1876 deletions
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: "Agent Apps"
3+
description: "Build services designed for agents and make your app discoverable"
4+
---
5+
6+
import { GithubRepoCard } from "/snippets/GithubRepoCard.mdx";
7+
8+
An agent app is a service built with AI agents as the primary user. Instead of rendering a visual UI for humans to click through, an agent app exposes structured endpoints that agents can discover, understand, and call programmatically.
9+
10+
<iframe
11+
className="w-full aspect-video rounded-xl"
12+
src="https://www.youtube.com/embed/-y0ZJ-0z7Ow?si=YtmXlwM_3m8Gm0WE"
13+
title="Building agent apps on Base"
14+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
15+
allowFullScreen
16+
></iframe>
17+
18+
## How agents discover your app
19+
20+
Agents find your service through a `SKILL.md` file hosted at a well-known URL path: `/.well-known/SKILL.md`. If you've worked with web development, this pattern may be familiar:
21+
22+
- Apple uses `/.well-known/apple-app-site-association` for universal links
23+
- SSL certificate authorities use `/.well-known/acme-challenge/` to verify domain ownership
24+
- OAuth uses `/.well-known/openid-configuration` for discovery
25+
26+
The `/.well-known/` convention is a standard way to host metadata at a predictable location. For agent apps, your `SKILL.md` file lives there so any agent can find it by checking `yourdomain.com/.well-known/SKILL.md`.
27+
28+
### What goes in a SKILL.md
29+
30+
Your `SKILL.md` file describes what your app does, what endpoints are available, and how to use them. Here's a conceptual template:
31+
32+
```markdown Title "SKILL.md template"
33+
# Your App Name
34+
35+
## Description
36+
What your app does, in plain language.
37+
38+
## Endpoints
39+
40+
### POST /api/action-name
41+
- **Description:** What this endpoint does
42+
- **Inputs:** What parameters it expects
43+
- **Output:** What it returns
44+
- **Payment:** Whether it requires x402 payment and the cost
45+
46+
## Authentication
47+
How agents should authenticate (e.g., SIWA, API key, x402).
48+
```
49+
50+
When an agent reads your `SKILL.md`, it understands what your service offers and how to interact with it, no human in the loop required.
51+
52+
## Designing for agent users
53+
54+
Agents aren't humans. They don't browse, guess, or interpret visual cues. When building an agent app, follow these guidelines:
55+
56+
- **Document side effects**: if an endpoint transfers funds, modifies state, or triggers external actions, say so explicitly in your `SKILL.md`
57+
- **Return structured JSON**: agents parse JSON, not HTML. Every endpoint should return well-structured JSON responses with consistent field names
58+
- **Support x402 for paid access**: if your service costs money, implement the [x402 protocol](/ai-agents/core-concepts/payments-and-transactions) so agents can pay per request without pre-registration
59+
- **Use clear error responses**: return descriptive error messages with appropriate HTTP status codes so agents can handle failures gracefully
60+
61+
## Making your app discoverable
62+
63+
Host your `SKILL.md` at `/.well-known/SKILL.md` and register your app in the [ERC-8004 registry](/ai-agents/core-concepts/identity-verification-auth). The same registry used for agent identity is used for app discovery. Once registered, agents can query the registry, find your service, and read your `SKILL.md` to understand how to interact with it.
64+
65+
<Warning>
66+
The Agent App Framework is experimental. APIs and conventions may change as the standard evolves.
67+
</Warning>
68+
69+
<GithubRepoCard title="Agent App Framework" githubUrl="https://github.com/base/agent-apps-experimental" />
70+
71+
## Continue exploring
72+
73+
<Card title="Back to overview" icon="arrow-left" href="/ai-agents/index">
74+
Return to the AI agents overview for a summary of all components.
75+
</Card>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: "Frameworks"
3+
description: "Choose the right framework for building and running AI agents on Base"
4+
---
5+
6+
Your first decision when building an AI agent on Base is choosing a framework. This determines how you write your agent's logic, where it runs, and how much infrastructure you manage yourself.
7+
8+
<iframe
9+
className="w-full aspect-video rounded-xl"
10+
src="https://www.youtube.com/embed/b5Wx2NAeY2E?si=r1FumIsbGt6nAt29"
11+
title="Building agents on Base"
12+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
13+
allowFullScreen
14+
></iframe>
15+
16+
## Comparing your options
17+
18+
| | BANKR | OpenClaw | Agent SDK |
19+
|---|---|---|---|
20+
| **What it is** | A managed Agent API, plus skill and wallet plugins for OpenClaw | An open-source personal AI assistant that runs across multiple channels (Discord, Telegram, web) | A developer toolkit for building custom agents with full control over behavior and integrations |
21+
| **Language** | Any (REST API) for Agent API; TypeScript for OpenClaw plugins | TypeScript | TypeScript / Python |
22+
| **Hosting** | Agent API is managed by BANKR; OpenClaw plugins run in your self-hosted agent | Self-hosted | Self-hosted |
23+
| **Best for** | Agent API for adding onchain capabilities without managing infrastructure; OpenClaw plugins for adding onchain skills to a self-hosted agent | Running a multi-channel assistant with pre-built skills and plugin support | Production agents where you need full control over logic, integrations, and deployment |
24+
25+
## BANKR
26+
27+
BANKR offers two ways to work with agents on Base. The **BANKR Agent API** is a hosted agent you interact with through a REST API: you send prompts and receive results, including the ability to execute trades and check balances, without building or deploying your own agent. This is the fastest way to add onchain agent capabilities to an existing application.
28+
29+
BANKR also provides **skills and wallet plugins for OpenClaw**. If you're building with OpenClaw, you can install BANKR's skill packages to give your self-hosted agent wallet capabilities, token swaps, and other onchain actions without using the managed API.
30+
31+
Use the BANKR Agent API when you want onchain agent capabilities without managing infrastructure. Use BANKR's OpenClaw plugins when you want BANKR's onchain skills inside your own self-hosted agent.
32+
33+
[Get started with BANKR Agent API →](https://docs.bankr.bot/getting-started/quick-start)
34+
35+
[Browse BANKR skills for OpenClaw →](https://github.com/BankrBot/openclaw-skills)
36+
37+
## OpenClaw
38+
39+
OpenClaw is an open-source AI assistant that connects to multiple messaging platforms out of the box. It comes with a plugin system for adding skills (pre-built actions your agent can perform) and handles the infrastructure for receiving messages, processing them, and responding across channels.
40+
41+
Use OpenClaw when you want to run a conversational agent across Discord, Telegram, or web and extend it with community-built plugins.
42+
43+
[Get started with OpenClaw →](https://docs.openclaw.ai/start/getting-started)
44+
45+
## Agent SDK
46+
47+
Coinbase's Agent SDK gives you the building blocks to create agents that can interact with <Tooltip tip="Blockchain-based protocols and applications, such as decentralized exchanges or lending platforms">onchain services</Tooltip>. You write the agent logic, define its tools, and deploy it on your own infrastructure. This is the most flexible option: you control every aspect of the agent's behavior, from how it processes prompts to which services it calls.
48+
49+
Use Agent SDK when you're building a production agent and want full control over its architecture.
50+
51+
[Get started with Agent SDK →](https://docs.cdp.coinbase.com/agent-kit/welcome)
52+
53+
<Tip>
54+
**How to choose:** Use the **BANKR Agent API** to call an agent via API without building one, or add **BANKR's skill plugins** to an OpenClaw agent for onchain capabilities. Use **OpenClaw** if you need a multi-channel chatbot with plugins. Use **Agent SDK** if you want full control over logic, integrations, and deployment.
55+
</Tip>
56+
57+
## Next step
58+
59+
<Card title="Wallets" icon="arrow-right" href="/ai-agents/core-concepts/wallets">
60+
Give your agent the ability to hold funds and make payments.
61+
</Card>
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: "Identity, Verification, and Auth"
3+
description: "Make your agent discoverable and verifiable so other agents and services can trust it"
4+
---
5+
6+
When your agent calls a service, how does that service know it's really your agent and not an impersonator? When your agent receives a response, how does it know the response came from a legitimate service? Identity, verification, and authentication solve these problems.
7+
8+
<iframe
9+
className="w-full aspect-video rounded-xl"
10+
src="https://www.youtube.com/embed/l387PXGnrgU?si=EM4IKT14ajFoYkNP"
11+
title="Agent identity, verification, and auth"
12+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
13+
allowFullScreen
14+
></iframe>
15+
16+
## Why identity matters
17+
18+
In a world where agents interact with each other and with services autonomously, trust is the foundation. Without identity:
19+
20+
- A service can't verify that a request came from an authorized agent
21+
- Your agent can't verify that a response came from the real service (not a malicious impersonator)
22+
- Other agents can't discover what your agent does or how to interact with it
23+
24+
Identity standards on Base solve all three problems: they let your agent register itself in a public directory, prove its identity with every request, and discover other agents and services.
25+
26+
## Registry: a public directory for agents
27+
28+
A registry is a public directory where agents and services publish their identity. Any participant can query the registry to resolve an agent's name to its metadata: what it does, where its endpoints live, and which public key it uses for signing.
29+
30+
On Base, this is implemented through the **ERC-8004** standard. When your agent registers, its entry is stored onchain, which means anyone can verify it without relying on a central authority.
31+
32+
A registry entry typically includes:
33+
34+
- Your agent's name and description
35+
- The endpoints where it can be reached
36+
- A <Tooltip tip="A pair of cryptographic keys: the public key is shared openly (like a return address) and identifies your agent, while the private key is kept secret (like a signature stamp) and proves you control the identity">key pair</Tooltip> that ties the agent's identity to its cryptographic credentials
37+
38+
[Learn more about Agent Registry (ERC-8004) →](https://www.8004.org/)
39+
40+
## Verification: proving identity at runtime
41+
42+
Registration tells the world your agent exists. Verification proves it's really your agent making each request. This is handled by the **ERC-8128** standard.
43+
44+
<Steps>
45+
<Step title="Register your agent">
46+
Your agent registers its identity and public key in the ERC-8004 registry. This is a one-time setup step.
47+
</Step>
48+
49+
<Step title="Sign each request">
50+
When your agent calls a service, it signs the request using its private key. This creates a cryptographic signature unique to that specific request.
51+
</Step>
52+
53+
<Step title="The service verifies the signature">
54+
The service looks up your agent's public key from the registry, then checks the signature. If the signature matches, the service knows the request came from your registered agent and not an impersonator.
55+
</Step>
56+
</Steps>
57+
58+
This works in both directions: your agent can also verify that a service's response is authentic by checking the service's signature against the registry.
59+
60+
[Learn more about Agent Verification (ERC-8128) →](https://erc8128.slice.so/concepts/overview)
61+
62+
## Sign In With Agent (SIWA)
63+
64+
SIWA bundles registry and verification into a single SDK, similar to how "Sign in with Google" bundles OAuth and identity verification into one integration. Instead of wiring up ERC-8004 and ERC-8128 separately, you integrate SIWA and get both capabilities out of the box.
65+
66+
With SIWA, your agent can:
67+
68+
- **Register its identity** in the onchain directory
69+
- **Authenticate into services** by proving it is the registered agent
70+
- **Sign every request** so services can verify authenticity
71+
72+
SIWA is the fastest path to giving your agent a verifiable identity. Use ERC-8004 and ERC-8128 directly only if you need more granular control over the registration and verification process.
73+
74+
[Learn more at siwa.id →](https://siwa.id)
75+
76+
<Tip>
77+
**Start with SIWA** for the simplest integration path. Use ERC-8004 and ERC-8128 directly if you need fine-grained control over how your agent registers and how verification is performed.
78+
</Tip>
79+
80+
## Next step
81+
82+
<Card title="Agent apps" icon="arrow-right" href="/ai-agents/core-concepts/agent-apps">
83+
Build services designed for agents and make your app discoverable.
84+
</Card>
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: "Payments and Transactions"
3+
description: "How your agent pays for services, receives payments, and executes onchain actions"
4+
---
5+
6+
Your agent has a wallet. Now it needs to use it. This page covers two key concepts: how your agent pays for services automatically using the x402 protocol, and how skills define the actions your agent can perform.
7+
8+
<iframe
9+
className="w-full aspect-video rounded-xl"
10+
src="https://www.youtube.com/embed/b5Wx2NAeY2E?si=r1FumIsbGt6nAt29"
11+
title="Payments and transactions for agents"
12+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
13+
allowFullScreen
14+
></iframe>
15+
16+
## x402: pay-per-request with stablecoins
17+
18+
x402 lets your agent pay for API requests using <Tooltip tip="Cryptocurrencies pegged to a stable asset like the US dollar (e.g., USDC). 1 USDC is designed to always equal $1.">stablecoins</Tooltip> without subscriptions or API keys. Your agent requests a resource, the server tells it the price, your agent pays, and the server delivers the data.
19+
20+
The name comes from HTTP status code `402 Payment Required`, which has been reserved in the HTTP specification since the 1990s but was never widely adopted. x402 finally puts it to use.
21+
22+
### How x402 works
23+
24+
<Steps>
25+
<Step title="Your agent makes a request">
26+
Your agent sends a standard HTTP request to an API endpoint, just like any other API call.
27+
</Step>
28+
29+
<Step title="The server responds with 402 Payment Required">
30+
Instead of returning data, the server responds with a `402` status code and includes payment details: how much it costs, which stablecoin to pay in, and where to send the payment.
31+
</Step>
32+
33+
<Step title="Your agent pays">
34+
Your agent's wallet constructs and sends a onchain payment based on the server's instructions. This happens automatically, no human approval needed.
35+
</Step>
36+
37+
<Step title="The server delivers the data">
38+
Once the payment is confirmed, the server returns the requested data. The entire flow takes seconds.
39+
</Step>
40+
</Steps>
41+
42+
This model is powerful for agents because it requires no pre-existing relationship between your agent and the service. Any agent with a funded wallet can pay for any x402-enabled API on the fly.
43+
44+
[Learn more about x402 →](https://www.x402.org/)
45+
46+
## Skills: actions your agent can perform
47+
48+
Skills are typed function definitions that describe an action your agent can invoke. Each skill specifies a name, expected inputs, and return type similar to a tool or function schema in any LLM tool-use integration. Your agent parses these definitions at runtime and calls them when relevant.
49+
50+
Skills cover actions like checking a token balance, executing a swap, sending a payment, or calling a <Tooltip tip="A program deployed onchain that automatically executes when conditions are met">smart contract</Tooltip>.
51+
52+
### What a skill looks like
53+
54+
A skill definition includes the action name, a description of what it does, the required inputs, and the expected output. Here's a simplified example:
55+
56+
```json Title "Conceptual skill definition"
57+
{
58+
"skill": "check-balance",
59+
"description": "Check the token balance of a wallet address",
60+
"inputs": {
61+
"wallet_address": "The address to check",
62+
"token": "The token symbol (e.g., USDC, ETH)"
63+
},
64+
"output": "The current balance of the specified token"
65+
}
66+
```
67+
68+
Your agent reads this definition, understands what inputs it needs to provide, and calls the skill when it's relevant to the task at hand.
69+
70+
### Skill providers
71+
72+
<Tabs>
73+
<Tab title="BANKR Skills">
74+
**What they are:** Pre-built skills for agents running on OpenClaw. BANKR skills cover common actions like token swaps, balance checks, and DeFi interactions.
75+
76+
**Best for:** Agents using OpenClaw or BANKR that need ready-to-use onchain capabilities.
77+
78+
[Browse BANKR skills →](https://github.com/BankrBot/openclaw-skills)
79+
</Tab>
80+
81+
<Tab title="CDP Skills">
82+
**What they are:** Skills provided by Coinbase's developer platform. CDP skills integrate with the Agentic Wallet and cover wallet management, token operations, and protocol interactions.
83+
84+
**Best for:** Agents using Agent SDK with a CDP Agentic Wallet.
85+
86+
[Browse CDP skills →](https://docs.cdp.coinbase.com/agentic-wallet/skills/overview)
87+
</Tab>
88+
</Tabs>
89+
90+
## Next step
91+
92+
<Card title="Identity, verification, and auth" icon="arrow-right" href="/ai-agents/core-concepts/identity-verification-auth">
93+
Make your agent discoverable and verifiable so other agents and services can trust it.
94+
</Card>

0 commit comments

Comments
 (0)