An open API service indexing awesome lists of open source software.

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

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:


Deploy with Vercel

## References

The images in the demo are sourced from [Unsplash](https://unsplash.com/).