Onchain Agent banner
jarrodwatts jarrodwatts

Onchain Agent

AI community

Description

Build your own onchain AI Agent from scratch using OpenAI Assistants and Viem for blockchain capabilities

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Onchain Agent

An AI-powered blockchain agent that can interact with the Abstract Testnet blockchain. Built with OpenAI's Assistant API and viem.

Features

  • AI Assistant powered by OpenAI's Assistant API with custom personality
  • Direct blockchain interactions through Viem
  • Support for:
    • ERC20 token deployments and interactions
    • Contract reading and writing
    • Balance checking
    • Transaction management
    • Uniswap V3 pool creation

Prerequisites

  • Node.js (v18 or higher)
  • TypeScript
  • An OpenAI API key
  • A wallet private key for the agent

Getting Started

  1. Clone the repository:
git clone https://github.com/jarrodwatts/onchain-agent.git

cd onchain-agent
  1. Install dependencies:
npm install
  1. Create the .env file and add your OpenAI API key and wallet private key:
OPENAI_API_KEY=your_openai_api_key
PRIVATE_KEY=your_wallet_private_key
  1. Run the agent:
npm start