- Python 3.8+ installed
- API keys from LLM providers (optional for demo, required for real testing)
- Go to https://console.anthropic.com/
- Sign up or log in
- Navigate to "API Keys"
- Create a new API key
- Copy the key (starts with
sk-ant-)
- Go to https://platform.openai.com/api-keys
- Sign up or log in
- Click "Create new secret key"
- Copy the key (starts with
sk-)
- Go to https://makersuite.google.com/app/apikey
- Sign up or log in to Google AI Studio
- Click "Create API Key"
- Copy the key
-
Copy the template:
cp .env.template .env
-
Edit the .env file with your actual API keys:
# Open .env in your text editor notepad .env # Windows nano .env # Linux/Mac
-
Replace the placeholder values:
ANTHROPIC_API_KEY=sk-ant-your-actual-claude-key-here OPENAI_API_KEY=sk-your-actual-openai-key-here GOOGLE_API_KEY=your-actual-gemini-key-here
-
Save the file
Windows Command Prompt:
set ANTHROPIC_API_KEY=sk-ant-your-actual-claude-key-here
set OPENAI_API_KEY=sk-your-actual-openai-key-here
set GOOGLE_API_KEY=your-actual-gemini-key-hereWindows PowerShell:
$env:ANTHROPIC_API_KEY="sk-ant-your-actual-claude-key-here"
$env:OPENAI_API_KEY="sk-your-actual-openai-key-here"
$env:GOOGLE_API_KEY="your-actual-gemini-key-here"Linux/Mac Terminal:
export ANTHROPIC_API_KEY="sk-ant-your-actual-claude-key-here"
export OPENAI_API_KEY="sk-your-actual-openai-key-here"
export GOOGLE_API_KEY="your-actual-gemini-key-here"pip install --user pandas numpy matplotlib seaborn scipy scikit-learn python-dotenvpip install --user anthropic openai google-generativeaipython demo.pypython -c "
import os
print('Claude API Key:', '✅ Set' if os.getenv('ANTHROPIC_API_KEY') else '❌ Missing')
print('OpenAI API Key:', '✅ Set' if os.getenv('OPENAI_API_KEY') else '❌ Missing')
print('Gemini API Key:', '✅ Set' if os.getenv('GOOGLE_API_KEY') else '❌ Missing')
"# With API keys - real LLM testing
python controls/experiment_execution.py
# Analyze results
python evaluation/results_analysis.py --results-dir experiment_results- ✅ DO: Use
.envfiles (added to.gitignore) - ✅ DO: Use environment variables
- ❌ DON'T: Hardcode keys in source code
- ❌ DON'T: Commit keys to version control
- ❌ DON'T: Share keys in screenshots or logs
- Claude:
sk-ant-api03-...(long string) - OpenAI:
sk-...(starts with sk-) - Gemini: Usually a shorter alphanumeric string
- Claude: ~$2-5 (depending on response length)
- OpenAI GPT-4: ~$3-8 (higher cost per token)
- Gemini: ~$1-3 (generally lower cost)
- Start with demo to test the framework
- Use fewer APIs initially (modify
experiment_config.json) - Reduce task complexity (test only basic tasks first)
- Monitor usage in your provider dashboards
# Install missing dependencies
pip install --user [missing_package_name]# Check if .env file exists and has correct format
cat .env
# Verify environment variables are set
echo $ANTHROPIC_API_KEY # Linux/Mac
echo %ANTHROPIC_API_KEY% # Windows CMD# Use --user flag for pip installs
pip install --user package_name- Double-check the key format
- Ensure no extra spaces or quotes
- Verify the key is active in your provider dashboard
- Check if you have sufficient credits/quota
- Check the logs in
experiment_results/for detailed error messages - Run the demo first to isolate API key issues
- Verify your setup with the test commands above
- Check provider status pages for API outages
- Python 3.8+ installed
- Dependencies installed (
pip install --user pandas numpy matplotlib seaborn scipy scikit-learn) - API keys obtained from providers
-
.envfile created with your API keys - Demo runs successfully (
python demo.py) - API key test passes
- Ready to run full experiment!
Once setup is complete:
- Run the demo:
python demo.py - Execute full experiment:
python controls/experiment_execution.py - Analyze results:
python evaluation/results_analysis.py - Review insights: Check
experiment_results/insights_report.md - Examine visualizations: Look in
experiment_results/visualizations/
Need help? The experiment will provide helpful error messages and guidance if API keys are missing or incorrectly configured.