Skip to content

BitteProtocol/benqi

 
 

Repository files navigation

CoWSwap AI Agent

This is a Next.js project that implements an AI-powered agent for interacting with CoW Protocol (Coincidence of Wants). The agent helps users generate and execute transactions on CoW Protocol across supported EVM networks.

Features

  • Generate transaction data for CoW Protocol interactions
  • Support for selling native assets (ETH, xDAI, POL, BNB)
  • ERC20 token transfers
  • WETH wrapping and unwrapping
  • Price quotes and fee estimation for trades
  • Support for multiple EVM networks

API Endpoints

The agent exposes several endpoints:

  • /api/tools/cowswap: Quote prices and generate swap transactions
  • /api/tools/erc20: Generate ERC20 transfer transactions
  • /api/tools/weth/wrap: Generate WETH wrapping transactions
  • /api/tools/weth/unwrap: Generate WETH unwrapping transactions

Local Development

First, install the dependencies:

bun install

Then, run the development server:

bun dev
bun dev-testnet

Open http://localhost:3000 with your browser to see the Swagger UI.

Environment Setup

The application requires the following environment variables:

  • BITTE_KEY: JSON containing the account ID

Learn More

To learn more about the technologies used in this project:

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform.

Check out our Next.js deployment documentation for more details.

About

Bitte Open Agent for benqi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • JavaScript 0.4%