Overview
Heartbeat commands provide real-time monitoring of AI provider availability, latency, quota usage, and model discovery.Commands
status
Check health status of all configured providers.The status command automatically discovers providers from your
config.yaml and environment variables.check
Check health of a specific provider.Provider name to check. Available providers:
gemini- Google Gemini (CLI)claude- Anthropic Claude (CLI)ollama- Local Ollama instancegemini-api- Gemini via APIclaude-api- Claude via APIopenai- OpenAI APIgroq- Groq API- Custom provider names from config
quota
Display quota usage for all API-based providers.Quota information is extracted from API response headers during health checks. Values represent token usage or request counts depending on the provider.
discover
Force model discovery for local providers.Provider Types
Heartbeat monitors three types of providers:CLI-Based Providers
- gemini-cli - Google Gemini via
gcloudCLI - claude-cli - Anthropic Claude via CLI
API-Based Providers
- gemini-api - Google Gemini via REST API
- claude-api - Anthropic Claude via REST API
- switchai-api - SwitchAI proprietary API
- groq - Groq inference API
Local Providers
- ollama - Local Ollama instance
- vibe - Local Vibe AI
Configuration
Providers are auto-registered from yourconfig.yaml:
Environment Variable Fallbacks
If providers aren’t in your config, heartbeat checks these environment variables:Health Check Details
What does 'healthy' mean?
What does 'healthy' mean?
A provider is marked healthy when:
- Connection succeeds within 5 seconds
- Authentication is valid
- At least one model is available
- Latency is under 3 seconds
What does 'degraded' mean?
What does 'degraded' mean?
A provider is marked degraded when:
- Connection succeeds but latency > 3 seconds
- Some models unavailable
- Quota approaching limits
What does 'unavailable' mean?
What does 'unavailable' mean?
Status Interpretation
healthy
All systems operational. Provider ready for requests.
degraded
Provider functional but experiencing issues. Fallback recommended.
unavailable
Provider offline or inaccessible. Requests will fail.
unknown
Provider not yet checked or check timed out.
Steering and Hooks Integration
Heartbeat status can trigger automated responses:Steering Rules
Automatically route around unhealthy providers:Hooks
Receive alerts when providers become unhealthy:Troubleshooting
No providers registered
No providers registered
Providers are auto-registered from config:
- Check your
config.yamlhas provider sections - Verify API keys are set (not placeholders)
- Set environment variables as fallback:
Ollama shows as unavailable
Ollama shows as unavailable
API provider auth failed
API provider auth failed
Verify API keys are valid:
Quota information not showing
Quota information not showing
Quota info requires:
- API-based provider (not CLI)
- Valid authentication
- Provider supports quota headers
Related Commands
- Memory Commands - View routing history
- Steering Commands - Configure automatic fallbacks
- Hooks Commands - Set up health alerts