A comprehensive CLI tool for benchmarking AI models across multiple providers with parallel execution and professional metrics
npm install ai-speedometerA CLI tool for benchmarking AI models across multiple providers with parallel execution and performance metrics.
``bash`
npm install -g ai-speedometer
- TTFT (Time to First Token) - How fast the first response token arrives
- Total Time - Complete request duration
- Tokens/Second - Real-time throughput
- Token Counts - Input, output, and total tokens used
- REST API Default - REST API benchmarking is now the default method for better compatibility
- Headless Mode - Run benchmarks without interactive CLI using command-line arguments
- Streaming Support - Full streaming support now available in REST API benchmarks
1. Set Model
`bash`
ai-speedometer
# Select "Set Model" → "Add Verified Provider" → Choose provider (OpenAI, Anthropic, etc.)
# Enter your API key when prompted
2. Choose Model Provider
- Verified providers (OpenAI, Anthropic, Google) - auto-configured
- Custom verified providers (pre-configured trusted providers) - add API key
- Custom providers (Ollama, local models) - add your base URL
3. Add API Key
- Get API keys from your provider's dashboard
- Enter when prompted - stored securely in:
- ~/.local/share/opencode/auth.json (primary storage)~/.config/ai-speedometer/ai-benchmark-config.json
- (backup storage)
- Both files store verified and custom verified provider keys
4. Run Benchmark
`bash`
ai-speedometer
# Select "Run Benchmark (REST API)" → Choose models → Press ENTER
# Note: REST API is now the default benchmark method
`bashStart CLI
ai-speedometer
Configuration Files
API keys and configuration are stored in:
- Verified + Custom Verified Providers:
- Primary:
~/.local/share/opencode/auth.json
- Backup: ~/.config/ai-speedometer/ai-benchmark-config.json (verifiedProviders section)
- Custom Providers: ~/.config/ai-speedometer/ai-benchmark-config.json (customProviders section)
- Provider Definitions: ./custom-verified-providers.json`- Node.js 18+
- API keys for AI providers
- Terminal with arrow keys and ANSI colors