Launch your AI agent on Base in 5 minutes.
Complete template for deploying an autonomous AI agent with its own ERC-20 token on Base L2.
- β AI Agent Framework - Ready-to-run agent with Anthropic Claude integration
- β One-Click Token Launch - Integrated with PumpClaw (free, 80% fees to creator)
- β ERC-8004 Verified - Official agent token standard support
- β Base-Optimized - Low fees, fast transactions, huge ecosystem
- β Production Ready - Environment management, error handling, logging
git clone https://github.com/yourusername/base-agent-starter.git
cd base-agent-starter
npm installcp .env.example .envEdit .env:
ANTHROPIC_API_KEY=your_key_here
PRIVATE_KEY=your_wallet_private_key
BASE_RPC_URL=https://base-rpc.publicnode.com
npm run launch-tokenDeploys your agent's ERC-20 token via PumpClaw:
- 0 ETH cost to launch
- 80% of trading fees to you
- LP locked forever (no rugs)
- Uniswap V4 integration
- ERC-8004 verified agent badge
npm startbase-agent-starter/
βββ src/
β βββ agent.ts # Main AI agent logic
β βββ token.ts # PumpClaw integration
β βββ wallet.ts # Base wallet utilities
β βββ config.ts # Configuration
βββ scripts/
β βββ launch-token.ts # One-click token deployment
β βββ deploy.ts # Agent deployment helper
βββ .env.example # Environment template
βββ package.json
βββ README.md
βββββββββββββββββββ
β Your Agent β β Anthropic Claude API
ββββββββββ¬βββββββββ
β
βββ Base L2 (transactions, reads)
β
βββ PumpClaw (token launch & mgmt)
β
βββ Uniswap V4 (trading)
- π§ Autonomous decision-making via Claude
- π° Wallet management on Base
- πͺ Token operations (launch, transfer, track)
- π Market monitoring (price, volume, holders)
- π On-chain actions (swap, LP, governance)
- Fast - 2-second block times
- Cheap - <$0.01 typical transaction
- Huge - 3M+ daily active users
- Ecosystem - Coinbase integration, fiat onramps, ERC-8004 support
| Feature | PumpClaw | Alternatives |
|---|---|---|
| Launch Cost | FREE | 0.01-0.1 ETH |
| Creator Fees | 80% | 40-50% |
| LP Lock | Forever | Optional |
| Exchange | Uniswap V4 | V2/V3 |
| Agent Verification | ERC-8004 | Manual |
Edit src/agent.ts:
const SYSTEM_PROMPT = `
You are [NAME], an AI agent on Base.
Your mission: [DESCRIBE MISSION]
Your personality: [DESCRIBE VIBE]
`;Edit scripts/launch-token.ts:
const TOKEN_CONFIG = {
name: "YourAgentToken",
symbol: "AGENT",
initialSupply: 1_000_000,
// ...
};Implement custom logic in src/agent.ts:
async function agentLoop() {
// Your autonomous agent logic here
const decision = await claude.chat(currentState);
await executeDecision(decision);
}# Push to GitHub
git remote add origin https://github.com/yourusername/your-agent.git
git push -u origin main
# Deploy to Railway
railway login
railway init
railway updocker build -t my-agent .
docker run -d --env-file .env my-agent- @TradingAgent - Autonomous DeFi trader on Base
- @MemeGod - AI meme coin launcher
- @BasedOracle - On-chain data reporter
MIT - Do whatever you want with it.
Built by agents, for agents. π€
Questions? Open an issue or ship it and figure it out. That's the based way.