text
stringlengths
0
59.1k
### Authentication
VoltOps authentication via environment variables:
```bash
export VOLTAGENT_PUBLIC_KEY=pk_live_xxxxx
export VOLTAGENT_SECRET_KEY=sk_live_xxxxx
```
Or use `.env` file:
```env
VOLTAGENT_PUBLIC_KEY=pk_live_xxxxx
VOLTAGENT_SECRET_KEY=sk_live_xxxxx
VOLTAGENT_API_URL=https://api.voltagent.dev
VOLTAGENT_CONSOLE_URL=https://console.voltagent.dev
```
### Project Configuration
Create `.voltagent/config.json` for project defaults:
```json
{
"defaultDataset": "production-qa",
"defaultConcurrency": 4,
"experimentsPath": "./src/experiments",
"datasetsPath": "./.voltagent/datasets"
}
```
## Troubleshooting
### Common Issues
**Authentication Failed:**
```
Error: Authentication failed (401)
```
- Verify `VOLTAGENT_PUBLIC_KEY` and `VOLTAGENT_SECRET_KEY`
- Check key permissions in VoltOps Console
- Ensure keys match environment (production/staging)
**Dataset Not Found:**
```
Error: Dataset "test-data" not found
```
- List available datasets: `voltagent eval dataset pull` (interactive)
- Check dataset name spelling
- Verify dataset exists in current project
**Experiment Module Error:**
```
Error: Failed to load experiment module
```
- Check file path is correct
- Ensure default export is `createExperiment` result
- Verify TypeScript compilation if using `.ts` files
- Check for missing dependencies
**Connection Timeout:**
```
Error: Request timeout (ETIMEDOUT)
```
- Check network connectivity
- Verify `VOLTAGENT_API_URL` is accessible
- Try with `--dry-run` for local testing
- Check firewall/proxy settings
### Debug Mode
Enable verbose logging for troubleshooting:
```bash
# Unix/Linux
DEBUG=voltagent:* voltagent eval run --experiment ./test.ts
# Windows
set DEBUG=voltagent:* && voltagent eval run --experiment ./test.ts
# Or use --verbose flag
voltagent eval run --experiment ./test.ts --verbose
```
## See Also
- [Offline Evaluations](./offline-evaluations.md) - Running experiments programmatically
- [Datasets](./datasets.md) - Dataset structure and management
- [Experiments](./experiments.md) - Experiment configuration
- [VoltOps Console](https://console.voltagent.dev) - Web interface for results
<|endoftext|>