Skip to content

Commit a02a6a1

Browse files
authored
added keywords to metadata (#1245)
* added keywords to metadata * changed side bar added tag * updated skill to write builder code in readme * updated skill to write builder code in readme * removed * removed * changed name * removed next * removed next * removed response * removed response * updated llm txt * updated llm txt * updated callout * updated agents file
1 parent 39893c7 commit a02a6a1

4 files changed

Lines changed: 153 additions & 32 deletions

File tree

docs/agents.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ IMPORTANT: Prefer retrieval-led reasoning. Read relevant docs before generating
33
Base is an Ethereum L2 by Coinbase. Docs for: Base Chain, Smart Wallet, OnchainKit, MiniKit.
44
[Docs]|root:./docs
55
|ai-agents:index
6-
|ai-agents/frameworks:agentkit,eliza,langchain,vercel-ai-sdk
7-
|ai-agents/payments:accepting-payments,x402-protocol
6+
|ai-agents/guides:agent-builder-codes
7+
|ai-agents/payments:accepting-payments,pay-for-services-with-x402
88
|ai-agents/quickstart:payments,trading
9-
|ai-agents/reference:contracts
109
|ai-agents/setup:agent-registration,wallet-setup
10+
|ai-agents/skills:index
11+
|ai-agents/skills/base-account:building-with-base-account
12+
|ai-agents/skills/base-chain:adding-builder-codes,connecting-to-base-network,deploying-contracts,running-a-base-node
13+
|ai-agents/skills/migrations:convert-farcaster-miniapp-to-app,converting-minikit-to-farcaster,migrating-an-onchainkit-app
1114
|ai-agents/trading:data-fetching,trade-execution
1215
|base-account/basenames:basename-transfer,basenames-faq,basenames-wagmi-tutorial
1316
|base-account/contribute:contribute-to-base-account-docs,security-and-bug-bounty
@@ -46,4 +49,4 @@ Base is an Ethereum L2 by Coinbase. Docs for: Base Chain, Smart Wallet, OnchainK
4649
|mini-apps/quickstart:build-checklist,building-for-the-base-app,create-new-miniapp,migrate-existing-apps,migrate-to-standard-web-app,template
4750
|mini-apps/technical-guides:accept-payments,building-chat-agents,neynar-notifications,sharing-and-social-graph,sign-manifest
4851
|onchainkit:migrate-from-onchainkit
49-
|root:cookie-policy,privacy-policy,terms-of-service,tone_of_voice
52+
|root:agents,cookie-policy,privacy-policy,terms-of-service,tone_of_voice
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: "Get a Builder Code for Your Agent"
3+
description: "Register your agent on Base.dev and append a Builder Code to every transaction to measure onchain activity."
4+
keywords: ["builder code", "Base.dev", "ERC-8021", "attribution", "onchain activity", "agent attribution", "dataSuffix", "builder codes", "Base builder codes", "agent onchain"]
5+
tag: "NEW"
6+
---
7+
8+
Base.dev is the canonical registry for agents on Base. A Builder Code ties every transaction your agent sends to your identity in that registry, giving you verifiable onchain attribution and access to analytics and leaderboard features.
9+
10+
## What you get
11+
12+
- **Builder Code** — a unique identifier (e.g. `bc_a1b2c3d4`) that you append to your onchain transactions. Base uses this to measure your agent's activity on Base Chain.
13+
14+
## Prerequisites
15+
16+
- An EVM wallet address that your agent operates from
17+
18+
---
19+
20+
## Get your Builder Code
21+
22+
One call. No auth.
23+
24+
```bash Terminal
25+
curl -X POST https://api.base.dev/v1/agents/builder-codes \
26+
-H "Content-Type: application/json" \
27+
-d '{
28+
"wallet_address": "0x<your-wallet-address>"
29+
}'
30+
```
31+
32+
Response:
33+
34+
```json Title Response
35+
{
36+
"builder_code": "bc_a1b2c3d4",
37+
"wallet_address": "0x...",
38+
}
39+
```
40+
41+
<Warning>
42+
Already registered? Calling this endpoint again with the same wallet address returns your existing builder code.
43+
</Warning>
44+
---
45+
46+
## Get a Builder Code using the Base skill
47+
48+
If you're using an AI coding tool (Claude Code, Cursor, Codex), install the Base skills package and let the skill handle registration end-to-end:
49+
50+
```bash Terminal
51+
npx skills add base/skills
52+
```
53+
54+
Then ask your agent: **"Register my agent for a builder code on Base.dev."**
55+
56+
The skill runs four phases:
57+
58+
<Steps>
59+
<Step title="Wallet">
60+
Asks for your agent's wallet address. If you don't have one, it sends you to the [wallet setup guide](/ai-agents/guides/wallet-setup) before continuing.
61+
</Step>
62+
<Step title="Registration and attribution">
63+
Calls `POST /v1/agents/builder-codes` with your wallet address, writes the returned code to `src/constants/builderCode.ts`, installs `ox`, and wires the ERC-8021 `dataSuffix` into your transaction client (viem, ethers.js, or managed service). It also writes an `AGENT_README.md` documenting the setup.
64+
</Step>
65+
<Step title="Permanent rule">
66+
Confirms the setup and instructs you that every future transaction must include the ERC-8021 suffix. Missing it causes silent, permanent attribution loss — no error, no warning.
67+
</Step>
68+
</Steps>
69+
70+
---
71+
72+
## Get a Builder Code with a prompt
73+
74+
If you're using an AI agent, point it to this page:
75+
76+
```text Title Prompt
77+
Get a Builder Code for my agent on Base.dev using the documentation at [URL of this page].
78+
79+
My agent's wallet address: [0x...]
80+
81+
Run this curl command, replacing the wallet address with mine:
82+
curl -X POST https://api.base.dev/v1/agents/builder-codes \
83+
-H "Content-Type: application/json" \
84+
-d '{"wallet_address": "[0x...]"}'
85+
86+
Return the builder_code from the response, then show me how to append it to my transactions using ERC-8021.
87+
```
88+
---
89+
90+
91+
## What happens next
92+
93+
Once you receive your Builder Code, it becomes active right away Base will begin tracking any transactions that include it.
94+
95+
## API reference
96+
97+
### Get builder code
98+
99+
```
100+
POST /v1/agents/builder-codes
101+
```
102+
103+
No authentication required.
104+
105+
| Field | Type | Required | Description |
106+
|---|---|---|---|
107+
| `wallet_address` | string | Yes | Your agent's EVM wallet address (`0x...`) |
108+
109+
Returns the builder code for the given wallet. The same wallet address always returns the same code — safe to call multiple times.
110+
111+

docs/docs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,11 @@
533533
{
534534
"group": "Setup",
535535
"pages": [
536+
"ai-agents/guides/agent-builder-codes",
537+
"ai-agents/guides/x402-payments",
538+
"ai-agents/guides/register-and-sign-in-your-agent",
539+
"ai-agents/guides/agent-app",
540+
"ai-agents/guides/trading",
536541
"ai-agents/setup/wallet-setup",
537542
"ai-agents/setup/agent-registration"
538543
]

docs/llms.txt

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,34 @@
1414

1515
These resources give AI assistants direct access to Base documentation and reusable workflows.
1616

17+
### Base MCP server
18+
19+
`https://docs.base.org/mcp`
20+
21+
### Base skills
22+
23+
AI agents can use Base skills to perform onchain actions directly from their tool loop — no custom integration required. Available skills include:
24+
25+
[https://github.com/base/skills](https://github.com/base/skills)
26+
27+
Install Base skills for your AI assistant:
28+
29+
```
30+
npx skills add base/base-skills
31+
```
32+
## Recommended starting points
33+
34+
Narrow context to a specific type of work:
35+
36+
- [AI Agents overview](https://docs.base.org/ai-agents) — Overall agent building model on Base
37+
- [Agent frameworks](https://docs.base.org/ai-agents/core-concepts/agent-frameworks)
38+
- [Wallets](https://docs.base.org/ai-agents/core-concepts/wallets) — Agent wallets, signing, and funded execution
39+
- [Payments and transactions](https://docs.base.org/ai-agents/core-concepts/payments-and-transactions) — x402 payments and onchain transaction
40+
- [Identity and auth](https://docs.base.org/ai-agents/core-concepts/identity-verification-auth) — Verification and trust between agents and services
41+
- [Base Account quickstart for AI tools](https://docs.base.org/base-account/quickstart/ai-tools-available-for-devs) — Agent-assisted wallet and account flows
42+
- [Deploy on Base](https://docs.base.org/base-chain/quickstart/deploy-on-base) — Contract deployment on Base
43+
- [Build a Base app](https://docs.base.org/get-started/build-app)
44+
1745
### Docs index
1846

1947
[https://docs.base.org/llms.txt](https://docs.base.org/llms.txt)
@@ -25,7 +53,7 @@ Base is an Ethereum L2 by Coinbase. Docs for: Base Chain, Smart Wallet, OnchainK
2553
[Docs]|root:./docs
2654
|ai-agents:index
2755
|ai-agents/frameworks:eliza,langchain,vercel-ai-sdk
28-
|ai-agents/guides:agent-app,register-and-sign-in-your-agent,trading,wallet-setup,x402-payments
56+
|ai-agents/guides:agent-app,agent-builder-codes,register-and-sign-in-your-agent,trading,wallet-setup,x402-payments
2957
|ai-agents/introduction:choosing-a-framework
3058
|ai-agents/quickstart:agentkit,openclaw-claude
3159
|ai-agents/reference:contracts
@@ -66,34 +94,8 @@ Base is an Ethereum L2 by Coinbase. Docs for: Base Chain, Smart Wallet, OnchainK
6694
|mini-apps/quickstart:build-checklist,building-for-the-base-app,create-new-miniapp,migrate-existing-apps,migrate-to-standard-web-app,template
6795
|mini-apps/technical-guides:accept-payments,building-chat-agents,neynar-notifications,sharing-and-social-graph,sign-manifest
6896
|onchainkit:migrate-from-onchainkit
69-
|root:cookie-policy,privacy-policy,terms-of-service,tone_of_voice
97+
|root:agents,cookie-policy,privacy-policy,terms-of-service,tone_of_voice
7098
```
7199

72-
### Base MCP server
73-
74-
`https://docs.base.org/mcp`
75-
76-
### Base skills
77-
78-
[https://github.com/base/skills](https://github.com/base/skills)
79-
80-
Install Base skills for your AI assistant:
81-
82-
```
83-
npx skills add base/base-skills
84-
```
85-
86-
## Recommended starting points
87-
88-
Narrow context to a specific type of work:
89-
90-
- [AI Agents overview](https://docs.base.org/ai-agents) — Overall agent building model on Base
91-
- [Agent frameworks](https://docs.base.org/ai-agents/core-concepts/agent-frameworks)
92-
- [Wallets](https://docs.base.org/ai-agents/core-concepts/wallets) — Agent wallets, signing, and funded execution
93-
- [Payments and transactions](https://docs.base.org/ai-agents/core-concepts/payments-and-transactions) — x402 payments and onchain transaction
94-
- [Identity and auth](https://docs.base.org/ai-agents/core-concepts/identity-verification-auth) — Verification and trust between agents and services
95-
- [Base Account quickstart for AI tools](https://docs.base.org/base-account/quickstart/ai-tools-available-for-devs) — Agent-assisted wallet and account flows
96-
- [Deploy on Base](https://docs.base.org/base-chain/quickstart/deploy-on-base) — Contract deployment on Base
97-
- [Build a Base app](https://docs.base.org/get-started/build-app)
98100

99101

0 commit comments

Comments
 (0)