Troubleshooting
Common errors and how to fix them.
Installation Errors
"No module named 'anthropic'" (or 'openai')
You need to install the provider SDK for models in your paths.
pip install anthropic # For Claude models
pip install openai # For GPT models
"Python version 3.9 is not supported"
Kalibr requires Python 3.10 or higher.
python --version # Check your version
If you're on 3.9, upgrade Python or use pyenv/conda to manage versions.
Authentication Errors
"Invalid or missing API key"
- Check that
KALIBR_API_KEYis set correctly - Make sure you copied the full key from the dashboard (click the Copy button)
- Verify the key is active in Dashboard → Settings
echo $KALIBR_API_KEY # Should show your key
"401 Unauthorized" on provider calls
Your provider API key is missing or invalid.
echo $OPENAI_API_KEY # For GPT models
echo $ANTHROPIC_API_KEY # For Claude models
Runtime Errors
"Outcome already reported" warning
This warning appears if you call report() more than once for the same request. It's usually harmless but indicates a logic issue in your code.
Fix: Make sure you only call report() once per completion() call.
Routing not changing after many runs
Kalibr needs ~20-50 outcomes per path before routing becomes stable. During the "Learning" phase, it explores randomly.
Check: Go to Dashboard → your agent → verify sample counts are increasing.
Dashboard Issues
Agent not appearing in dashboard
- Verify your
KALIBR_TENANT_IDmatches what's shown in Dashboard → Settings - Check that
report()is being called after each completion - Wait 30 seconds and refresh - there may be a small delay
Dashboard shows old data
Hard refresh the page (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows).