A simple chat agent built using Move Agent Kit, Next.js, OpenAI, Anthropic, Langchain and Vercel AI SDK that enables interaction with the Aptos blockchain through natural language.
- Natural language interaction with Aptos blockchain
- Wallet balance checking and transaction capabilities
- Support for multiple LLM providers (OpenAI and Anthropic)
- Real-time streaming responses
- Built on Next.js and Vercel AI SDK for optimal performance
- Node.js (v16 or higher)
- pnpm package manager
- An Aptos wallet and private key
- API keys for OpenAI or Anthropic
-
Clone the repository:
git clone https://github.com/Alstudd/aptos-chat-agent.git cd aptos-chat-agent -
Install dependencies:
pnpm i
-
Set up environment variables:
cp .example.env .env
-
Edit the
.envfile with your API keys and Aptos wallet details:PANORA_API_KEY=your_panora_key_here APTOS_PRIVATE_KEY=your_aptos_private_key_here ANTHROPIC_API_KEY=your_anthropic_key_here OPENAI_API_KEY=your_openai_key_here -
Start the development server:
pnpm dev
-
Open your browser and navigate to
http://localhost:3000
Simply type natural language requests in the chat interface such as:
- "What's my wallet balance?"
- "Send 0.5 APT to 0x123..."
- "Show me recent transactions"