# Install Poetry if you haven'tcurl -sSL https://install.python-poetry.org | python3 -# Set up environment with Python 3.12poetry env use python3.12poetry install# Install Playwright browsers for automationpoetry run playwright install
3
Configure Environment
Copy the example environment file and add your API keys:
cp .env.example .envnano .env # or use your preferred editor
Required keys for basic functionality:
.env
# Core API KeysANTHROPIC_API_KEY=your_anthropic_api_keyCDP_API_KEY_NAME=your_cdp_api_key_nameCDP_API_KEY_PRIVATE=your_cdp_private_keyHYPERBOLIC_API_KEY=your_hyperbolic_api_key# Enable core toolkitsUSE_COINBASE_TOOLS=trueUSE_HYPERBOLIC_TOOLS=true
python --version # Should show Python 3.12.x# On macOS:brew install[email protected]# On Ubuntu:sudo add-apt-repository ppa:deadsnakes/ppasudo apt updatesudo apt install python3.12
API Key Errors
Verify your keys are correctly set:
# Check if .env file exists and has the right keyscat .env | grep API_KEY# Ensure no trailing spaces or quotesANTHROPIC_API_KEY=sk-ant-xxx # CorrectANTHROPIC_API_KEY="sk-ant-xxx" # Wrong
Playwright Installation Failed
Reinstall Playwright browsers:
poetry run playwright install --force
Agent Not Responding
Check the recursion limit in your config. The agent may need more steps:
# In chatbot.py, increase recursion_limitrunnable_config = RunnableConfig( recursion_limit=200, # Increase if needed # ...)