Skip to main content
This guide walks you through setting up a sample app with source code to help you get started with AI-assisted crypto development on Coinbase Developer Platform (CDP).

Prerequisites

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

2. Scaffold your project

You will be prompted to choose a template type and configure your project. This starter app works with the CDP Web SDK for embedded wallets, email authentication, and no seed phrases required.Find more detailed instructions on its setup in the Embedded Wallet Guide.

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:
DeFi + AI Agent Integration:
Consumer + AI Agent Integration:
Custom Modifications: If no template fits perfectly, start with the closest match and modify:

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.