This repository is inspired by and modified from Coinbase's CDP Agentkit. We extend our gratitude to the Coinbase Developer Platform team for their original work.
A template for running an AI agent with both blockchain and compute capabilities, plus X posting using:
This template demonstrates a terminal-based chatbot that can:
Compute Operations (via Hyperbolic):
- Rent GPU compute resources
- Check GPU availability
- Monitor GPU status
- Access to GPU machines
- Run command lines on remote GPU machines
Blockchain Operations (via CDP):
- Deploy tokens (ERC-20 & NFTs)
- Manage wallets
- Execute transactions
- Interact with smart contracts
- Post on X
-
Python Version
- This project requires Python 3.12
- If using Poetry, you can ensure the correct version with:
poetry env use python3.12 poetry install
-
API Keys
- OpenAI API key from the OpenAI Portal or Anthropic API key from the Anthropic Portal
- CDP API credentials from CDP Portal
- X Social API (Account Key and secret, Access Key and Secret)
- Hyperbolic API Key from Hyperbolic Portal
-
Browser Automation
- Install Playwright browsers after installing dependencies:
poetry run playwright install
-
Set Up Environment Variables
# Copy the example environment file cp .env.example .env
Then edit
.env
file and add your API keys -
Install Dependencies
poetry install
-
Run the Bot
poetry run python chatbot.py
- Choose between chat mode or autonomous mode
- Start interacting with blockchain and compute resources!
- Interactive chat mode for guided interactions
- Autonomous mode for self-directed operations
- Full CDP Agentkit integration for blockchain operations
- Hyperbolic integration for compute operations
- Persistent wallet management
- X (Twitter) integration