x402-agent-app
v1.1.0
Published
Create an x402 AI Agent app with one command
Downloads
215
Maintainers
Readme
create-x402-agent-app
Create an x402 AI Agent application with one command.
Usage
Interactive Mode
npx create-x402-agent-appFollow the prompts to configure your project.
Quick Start
npx create-x402-agent-app my-agent-appSkip All Prompts
npx create-x402-agent-app my-agent-app -yWhat's Included
This creates a full-stack AI agent application with:
- Frontend: React 18.2 + Vite + TypeScript + Tailwind CSS
- Backend: Vercel Serverless Functions
- AI: OpenAI GPT-4o-mini with function calling
- Wallet: Coinbase Developer Platform (CDP) Embedded Wallets
- Payments: x402 micropayments on Base network
- Styling: Custom "hand-drawn" sketchy UI theme
After Installation
Navigate to your project:
cd my-agent-appAdd your API keys to
.env:OPENAI_API_KEY=your_key_here VITE_CDP_PROJECT_ID=your_project_id CDP_API_KEY_ID=your_api_key_id CDP_API_KEY_SECRET=your_api_key_secretStart development server:
# Install Vercel CLI globally (if not already installed) npm install -g vercel # Run with serverless functions vercel devOr for frontend-only development:
npm run dev
Getting API Keys
OpenAI API Key
- Go to https://platform.openai.com/api-keys
- Create a new API key
- Copy and add to
.env
Coinbase Developer Platform
- Go to https://portal.cdp.coinbase.com
- Create a new project
- Get your project ID and API credentials
- Add to
.env
Documentation
License
MIT
