https://github.com/bh2smith/near-cow-agent
Bitte Open Agent for CoWSwap
https://github.com/bh2smith/near-cow-agent
Last synced: about 1 year ago
JSON representation
Bitte Open Agent for CoWSwap
- Host: GitHub
- URL: https://github.com/bh2smith/near-cow-agent
- Owner: bh2smith
- Created: 2024-11-06T22:08:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T14:48:17.000Z (over 1 year ago)
- Last Synced: 2025-03-20T15:41:12.858Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://near-cow-agent.vercel.app
- Size: 2.58 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bitte - CoWSwap AI Agent
README
# CoWSwap AI Agent
This is a [Next.js](https://nextjs.org) 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:
```bash
bun install
```
Then, run the development server:
```bash
bun dev
bun dev-testnet
```
Open [http://localhost:3000](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:
- [CoW Protocol Documentation](https://docs.cow.fi/) - Learn about CoW Protocol
- [Bitte Documentation](https://docs.bitte.ai/) - Learn about Bitte and building AI agents
- [Next.js Documentation](https://nextjs.org/docs) - Learn about Next.js features and API
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme).
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.