Replit Agent
Collaboration
Deployments
App Builder
Website Builder
Game Builder
Dashboard Builder
Chatbot Builder
Product Managers
Designers
Operations
Software Engineers
IT
SMB Owners
DevRel
Founders
TeamsPricingBlogCareers
Contact salesLog inSign up
  • Teams
  • Pricing
  • Blog
  • Careers
Contact salesLog in
Start building
GuidesQuickstart guidesCoinbase Developer Platform – AgentKit Quickstart Guide

Coinbase Developer Platform – AgentKit Quickstart Guide

A guide by
Image of Kevin LeffewKevin Leffew
Thumbnail - Cover - Coinbase Developer Platform – AgentKit Quickstart Guide
Get a demo
Try for free
Table of ContentsIntroductionGetting StartedExample InteractionsSecurity ConsiderationsHow can I extend this?
Recent Posts
Slackbot Quickstart Guide
Create a virtual whiteboard with Roboflow vision models
How to Build Your Own Simple Poll Slack App
AI Support Specialist With Groq - Part I

Introduction #

What is CDP?

The Coinbase Developer Platform (CDP) is a suite of tools and services that simplifies blockchain development. CDP provides the tools onchain interactions, like:

  • Smart Wallet: Create passkey wallets in seconds
  • Paymaster: Enable gasless experiences
  • OnchainKit: Access ready-to-use components
  • Onramp: Convert fiat to crypto seamlessly

What is AgentKit?

AgentKit is CDP's toolkit for creating autonomous blockchain agents. As of the posting of this guide, the AgentKit Repls have been forked and run over 1k times by developers on Replit.

Key Features:

  • Model Flexibility: Works with multiple LLM providers including OpenAI, Claude, and Llama
  • CDP Integration: Direct access to CDP's full suite of onchain capabilities
  • Extensible Design: Template structure for adding custom functionality
  • LangChain Compatibility: Native support for LangChain and its extensive open-soure ecosystem of external tools and function calls

Getting Started #

Prerequisites

1. Replit Core Subscription

  • Recommended for deploying the bot
  • For Coinbase Community sponsorship, email: [email protected]

2. API Keys

  • Coinbase CDP API Key (Key name & Private key)
  • OpenAI API Key with at least $1-2 for testing

Setting up the Template

1. Visit the AgentKit Replit Template

2. Click the "Use Template" button

3. Give your project a name

4. Wait for the template to load and initialize

Configuring API Keys

1. In your Replit project, click on "Tools" in the left sidebar

2. Select "Secrets"

3. Add the following secrets (use the “edit in JSON” feature to insert them):

CDP_API_KEY_NAME=your_cdp_key_name

CDP_API_KEY_PRIVATE_KEY=your_cdp_private_key

OPENAI_API_KEY=your_openai_key

NETWORK_ID=base-sepolia # Optional, defaults to base-sepolia

⚠️ Important: Never share your API keys or make them public in the repl

Running Your Agent

1. Click the "Run" button in Replit

2. Choose your preferred mode when prompted:

  • 1. Chat mode: Interactive conversations with the agent
  • 2. Autonomous mode: Self-directed blockchain operations

3. Start interacting with onchain actions!

Example Interactions #

Here are some example commands to try with your agent:

1. Check Wallet Information

You: What is your wallet address?

Agent: Let me check my wallet address...

[Agent provides wallet details]

2. Deploy a Token

You: Deploy an NFT collection called 'Cool Cats' with symbol 'COOL'

Agent: I'll help deploy your NFT collection...

[Agent executes deployment process]

3. Register Identity

You: Register a basename for yourself

Agent: I'll register a unique identifier...

[Agent registers basename]

4. Check Balance

You: What's my wallet's balance?

Agent: Let me check your balance...

[Agent provides balance information]

Security Considerations #

Wallet Management in Replit

  • Your agent's wallet data is stored in wallet_data.txt
  • A new wallet is automatically created if none exists
  • ⚠️ Important: The template's storage method is for testing only
  • Do not use this wallet storage method in production

Best Practices

1. Never share your API keys

2. Keep your wallet data secure

3. Use test networks (like Base-Sepolia) for development

4. Monitor your agent's activities

5. Regularly check your wallet balances

How can I extend this? #

Now that your CDP AgentKit agent is running on Replit, you can:

1. Explore More Features:

  • Interface with Twitter/Farcaster for social integrations
  • Execute cross-chain transactions and arbitrage
  • Deploy different types of tokens and smart contracts
  • Leverage LangChain tools to easily wire in additional features

2. Learn More:

  • Visit docs.cdp.coinbase.com
  • Join the Coinbase Developer Discord
  • Follow CDP tutorials and guides
  • Explore CDP AgentKit examples

3. Get Support:

  • Ask questions in Discord
  • Review documentation
  • Connect with other CDP developers
  • Reach out to the CDP team

Remember: The Replit template is designed for learning and testing. For production applications, implement proper security measures and follow CDP's production deployment guidelines.


Replit

  • Mobile App
  • Desktop App
  • Blog
  • Careers
  • About
  • Pricing
  • Guides

Features

  • Replit Agent
  • Collaboration
  • Deployments
  • Teams

Legal

  • Terms of service
  • Teams agreement
  • Privacy
  • Subprocessors
  • DPA
  • Report abuse

Connect

  • X / Twitter
  • Tiktok
  • Facebook
  • Instagram
  • Linkedin

Languages

  • Python
  • Javascript
  • TypeScript
  • Node.js
  • Nix
  • HTML, CSS, JS
  • C++
  • Golang

Handy Links

  • Vibe Coding 101
  • Languages
  • Docs
  • Help
  • Status
  • Import from Glitch
  • Import from Heroku
  • Copilot alternative
  • Brand kit
  • Partnerships
All rights reserved. Copyright © 2025 Replit, Inc.