https://github.com/coinbase/coinbase-sdk-ai-agent-sample
https://github.com/coinbase/coinbase-sdk-ai-agent-sample
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/coinbase/coinbase-sdk-ai-agent-sample
- Owner: coinbase
- License: other
- Created: 2024-08-07T14:47:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T17:32:03.000Z (over 1 year ago)
- Last Synced: 2025-03-29T21:07:11.794Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://coinbase-sdk-ai-agent-sample.vercel.app/
- Size: 12.7 MB
- Stars: 96
- Watchers: 3
- Forks: 24
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Coinbase-SDK - Onchain Machine Learning
The Onchain Machine Learning template provides a simple app for Reinforcement Learning from Human Feedback
using the [CDP SDK](https://docs.cdp.coinbase.com/cdp-sdk/docs/welcome).
The application shows how to create an [MPC wallet](https://docs.cdp.coinbase.com/mpc-wallet/docs/welcome), fund the wallet,
and send Base Sepolia to a recipient who controls a [Coinbase Smart Wallet](https://www.smartwallet.dev/why).
## Getting Started
To start, [create a CDP API Key](https://portal.cdp.coinbase.com/access/api).
Then, set the following environment variables - for example, within a `.env` file, or by using
[Replit Secret Manager](https://docs.replit.com/replit-workspace/workspace-features/secrets)
(if you are accessing this template from Replit).
```text
API_KEY_NAME="YOUR_API_KEY_NAME"
API_KEY_PRIVATE_KEY="YOUR_API_KEY_PRIVATE"
```
Install the dependencies:
```bash
npm install
# or
yarn
```
Then, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to use the application.
## Learn More
To learn more about the CDP SDK, take a look at the following resources:
- [Coinbase Developer Platform](https://portal.cdp.coinbase.com/access/api)
- [CDP API Documentation](https://docs.cdp.coinbase.com/cdp-sdk/docs/quickstart) - CDP SDK documentation.
## Deploy on Vercel
If you are accessing this template from GitHub, you can click the button below to deploy your own copy of the AI Feedback tool:
## References
The images in the demo are sourced from [Unsplash](https://unsplash.com/).