An AI agent that can buy any product on Amazon with its wallet and an onchain balance of any ERC20 token.
- Clone the repository:
git clone https://github.com/Crossmint/shopper-agent.git
cd shopper-agent
- Prerequisites:
- Node & pnpm installed
- Have your wallet's private key ready (otherwise, generate new wallet via
pnpm generate-wallet
) - Hold USDC
- OpenAI API key
- Crossmint API key
- Install dependencies:
pnpm install
- Copy
.env.template
to.env
to fill in the appropriate values.
cp .env.template .env
- Configure your variables:
WALLET_PRIVATE_KEY
: Your wallet's private key (will be used for payment)RPC_PROVIDER_URL
: Base network RPC endpoint for transaction processingOPENAI_API_KEY
: Your OpenAI API key for AI interactionsCROSSMINT_API_KEY
: Your Crossmint API key
- Start the agent
pnpm start