Prerequisites
- Coinbase Developer Platform account for access to our APIs
- AI development environment: Cursor IDE (recommended), GitHub Copilot, Claude, or ChatGPT
npm
for setting up starter apps
1. Choose a starter app
Start with the right starter app depending on your needs. Use this quick mapping:- If you want seamless onboarding with embedded wallets for consumers → choose Consumer-based apps.
- If you need external wallet connections and DeFi protocol integrations → choose Trading apps (DeFi).
- If your core is automation, bots, or 24/7 server-side operations → choose Automation and AI Agents.
Comparison
App type | Best for | Why it works with AI | Starter prompt |
---|---|---|---|
Consumer-based apps |
|
| I’m building a consumer app with embedded wallets. Help me add [feature] that works with email auth and no seed phrases. |
Trading apps (DeFi) |
|
| I’m building a DeFi app with OnchainKit and wagmi. Help me create [feature] integrating with [protocol]. |
Automation and AI Agents |
|
| I’m building an AI agent with AgentKit and CDP SDK. Help me automate [goal] with robust error handling and monitoring. |
2. Scaffold your project
Integrating starter apps
For complex projects that need features from multiple templates, you can start with one and use AI to integrate patterns from others: Consumer + DeFi Integration:Re-configuring your app
Once you have scaffolded your project, it should have come equipped with a hidden.env
file.
This file is used to store environment-specific variables for your development setup. It allows you to configure settings like API keys, project IDs, and network configurations without hardcoding them into your application code. This file is crucial for maintaining security and flexibility, as it keeps sensitive information out of your codebase and allows for easy changes to configuration settings.
Never commit your
.env
file to version control!, It contains sensitive API keys that could compromise your CDP account if exposed publicly.What to read next
Your environment is now configured for AI-first development. Continue with:- AI Development Workflows: Learn day-to-day development practices, advanced configuration, debugging strategies, and best practices
- AI-Assisted Deployment Guide: Detailed deployment setup and environment variable configuration for production releases