Skip to content

πŸ€– Launch your AI agent on Base in 5 minutes. Complete template with PumpClaw token integration, ERC-8004 support, and Anthropic Claude.

Notifications You must be signed in to change notification settings

clawd800/base-agent-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Base Agent Starter

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.

Features

  • βœ… 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

Quick Start

1. Clone & Install

git clone https://github.com/yourusername/base-agent-starter.git
cd base-agent-starter
npm install

2. Configure Environment

cp .env.example .env

Edit .env:

ANTHROPIC_API_KEY=your_key_here
PRIVATE_KEY=your_wallet_private_key
BASE_RPC_URL=https://base-rpc.publicnode.com

3. Launch Your Token

npm run launch-token

Deploys 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

4. Run Your Agent

npm start

What's Included

base-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

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Your Agent    β”‚ ← Anthropic Claude API
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β”œβ”€β†’ Base L2 (transactions, reads)
         β”‚
         └─→ PumpClaw (token launch & mgmt)
                β”‚
                └─→ Uniswap V4 (trading)

Agent Capabilities

  • 🧠 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)

Why Base?

  • Fast - 2-second block times
  • Cheap - <$0.01 typical transaction
  • Huge - 3M+ daily active users
  • Ecosystem - Coinbase integration, fiat onramps, ERC-8004 support

Why PumpClaw?

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

Customization

1. Agent Personality

Edit src/agent.ts:

const SYSTEM_PROMPT = `
You are [NAME], an AI agent on Base.
Your mission: [DESCRIBE MISSION]
Your personality: [DESCRIBE VIBE]
`;

2. Token Details

Edit scripts/launch-token.ts:

const TOKEN_CONFIG = {
  name: "YourAgentToken",
  symbol: "AGENT",
  initialSupply: 1_000_000,
  // ...
};

3. Agent Behavior

Implement custom logic in src/agent.ts:

async function agentLoop() {
  // Your autonomous agent logic here
  const decision = await claude.chat(currentState);
  await executeDecision(decision);
}

Production Deployment

Option 1: Railway/Render

# 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 up

Option 2: Docker

docker build -t my-agent .
docker run -d --env-file .env my-agent

Examples

Resources

Community

License

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.

About

πŸ€– Launch your AI agent on Base in 5 minutes. Complete template with PumpClaw token integration, ERC-8004 support, and Anthropic Claude.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published