Configuration Guide
Overview
This guide provides detailed instructions for setting up each connection type in ZerePy. Before starting, ensure you have completed the basic installation steps from the main README.
Quick Start
-
View available connections:
list-connections
-
Configure required connections:
# LLM Provider
configure-connection openai # or anthropic/eternalai/xai/etc.
# Social Platform
configure-connection twitter # or farcaster/discord/etc.
# Blockchain
configure-connection solana # or ethereum/sonic -
Load and start your agent:
load-agent example
start
Detailed Connection Setup
Social Platforms
Twitter/X
- Go to https://developer.twitter.com/en/portal/dashboard
- Create a new project and app if you haven't already
- In your app settings, enable OAuth 1.0a with read and write permissions
- Get your API credentials:
- API Key (consumer key)
- API Key Secret (consumer secret)
- Run:
configure-connection twitter
- Follow the OAuth flow:
- Enter your API Key and Secret
- Visit the authorization URL provided
- Enter the PIN code received
- Credentials will be saved in your
.env
file:- TWITTER_USER_ID
- TWITTER_USERNAME
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
Discord
- Visit https://discord.com/developers/applications
- Create a new application
- Add the application to your server:
- Go to OAuth2 → URL Generator
- Select "bot" scope
- Choose permissions (read messages, send messages, etc.)
- Copy and visit the generated URL
- Select your server and authorize
- Configure bot settings:
- Go to "Bot" section
- Click "Add Bot" or "Reset Token"
- Enable required Gateway Intents
- Get the bot token from the Bot section
- Run:
configure-connection discord
- Enter your Discord bot token
- The token will be saved as
DISCORD_BOT_TOKEN
in.env
For detailed Discord API documentation and setup guide, visit Discord REST API Guide
Farcaster
- Open the Warpcast mobile app
- Navigate to Settings:
- Click profile picture (top left)
- Click gear icon (top right)
- Click 'Advanced' then 'Reveal recovery phrase'
- Run:
configure-connection farcaster
- Enter your Warpcast recovery phrase
- The phrase will be saved as
FARCASTER_MNEMONIC
in.env
Blockchain Networks
Solana
- Prepare your wallet with sufficient SOL
- Get your private key (in base58 format)
- Run:
configure-connection solana
- Enter your private key when prompted
- The key will be saved as
SOLANA_PRIVATE_KEY
in.env
Sonic
- Prepare your wallet with sufficient $S
- Get your private key (in base58 format)
- Run:
configure-connection sonic
- Enter your private key when prompted
- The key will be saved as
SONIC_PRIVATE_KEY
in.env
Ethereum
- Prepare your wallet with sufficient ETH
- Get your private key
- Run:
configure-connection ethereum
- Enter your:
- Private key
- RPC URL (optional, defaults to public endpoints)
- Credentials will be saved in
.env
:- ETH_PRIVATE_KEY
- ETH_RPC_URL
LLM Providers
OpenAI
- Visit OpenAI API Keys
- Create a new API key
- Run:
configure-connection openai
- Enter your OpenAI API key
- The key will be saved as
OPENAI_API_KEY
in.env
Anthropic
- Go to https://console.anthropic.com/settings/keys
- Create a new API key
- Run:
configure-connection anthropic
- Enter your Anthropic API key
- The key will be saved as
ANTHROPIC_API_KEY
in.env
EternalAI
- Go to https://eternalai.org/api
- Generate an API Key
- Note the API URL (https://api.eternalai.org/v1/)
- Run:
configure-connection eternalai
- Enter your:
- EternalAI API key
- EternalAI API URL
- Credentials will be saved in
.env
:- ETERNALAI_API_KEY
- ETERNALAI_API_URL
Ollama
- Install Ollama from https://ollama.ai/download
- Start the Ollama server locally
- Run:
configure-connection ollama
- Configure base URL and model:
- Default URL: http://localhost:11434
- Default model: llama2
- Credentials will be saved in
.env
:- OLLAMA_BASE_URL
- OLLAMA_MODEL
Hyperbolic
- Visit https://app.hyperbolic.xyz
- Log in and verify your email
- Generate an API key
- Run:
configure-connection hyperbolic
- Enter your Hyperbolic API key
- The key will be saved as
HYPERBOLIC_API_KEY
in.env
Allora
- Visit https://developer.upshot.xyz/signin
- Create an account or log in via Google
- Generate an API key
- Run:
configure-connection allora
- Enter your Allora API key
- The key will be saved as
ALLORA_API_KEY
in.env
Galadriel
- Visit https://dashboard.galadriel.com/
- Create an account and verify your email
- Create a new API key
- Copy the API key
- Run:
configure-connection galadriel
- Enter your Galadriel API key
- The key will be saved as
GALADRIEL_API_KEY
in.env
Agent Configuration
- Create or modify your agent configuration file in the
agents
directory - Set the default agent in
agents/general.json
:{
"default_agent": "your_agent_name"
} - Load your agent:
load-agent your_agent_name
Verification
-
Check connection status:
list-connections
Look for ✅ indicators showing successful configuration
-
List available actions:
list-actions <connection-name>
This will show all available actions for the specified connection
Troubleshooting
-
If a connection shows as not configured (❌):
- Verify your credentials in
.env
- Try reconfiguring the connection
- Check the logs for specific error messages
- Verify your credentials in
-
For API-related issues:
- Verify API key validity
- Check rate limits
- Ensure your account has necessary permissions
-
For agent issues:
- Validate your agent configuration file
- Ensure all required fields are present
- Check that referenced connections are properly configured
Security Notes
- All API keys and credentials are stored in your local
.env
file - Never commit the
.env
file to version control - Regularly rotate your API keys following security best practices
- Use appropriate network security measures when deploying in production
Next Steps
After configuring your connections:
- Test individual actions using
agent-action
- Start the agent loop with
start
- Monitor the agent's behavior
- Adjust configuration as needed
For more information on creating and customizing agents, refer to the agent creation guide.