hevyQuery workout data from Hevy including workouts, routines, exercises, and history. Use when user asks about their workouts, gym sessions, exercise progress, or fitness routines.
CLI for the Hevy workout tracking API. Query workouts, routines, exercises, and track progress.
Requires Hevy Pro subscription for API access.
export HEVY_API_KEY="your-key"# Check configuration and connection
hevy status
# List recent workouts (default 5)
hevy workouts
hevy workouts --limit 10
# Fetch all workouts
hevy workouts --all
# Show detailed workout
hevy workout <workout-id>
# JSON output
hevy workouts --json
hevy workout <id> --json
# Show weights in kg (default is lbs)
hevy workouts --kg
# List all routines
hevy routines
# Show detailed routine
hevy routine <routine-id>
# JSON output
hevy routines --json
# List all exercise templates
hevy exercises
# Search by name
hevy exercises --search "bench press"
# Filter by muscle group
hevy exercises --muscle chest
# Show only custom exercises
hevy exercises --custom
# JSON output
hevy exercises --json
# Show history for specific exercise
hevy history <exercise-template-id>
hevy history <exercise-template-id> --limit 50
# JSON output
hevy history <exercise-template-id> --json
# Create routine from JSON (stdin)
echo '{"routine": {...}}' | hevy create-routine
# Create routine from file
hevy create-routine --file routine.json
# Create a routine folder
hevy create-folder "Push Pull Legs"
# Update existing routine
echo '{"routine": {...}}' | hevy update-routine <routine-id>
# Create custom exercise (checks for duplicates first!)
hevy create-exercise --title "My Exercise" --muscle chest --type weight_reps
# Force create even if duplicate exists
hevy create-exercise --title "My Exercise" --muscle chest --force
⚠️ Duplicate Prevention: create-exercise checks if an exercise with the same name already exists and will error if found. Use --force to create anyway (not recommended).
Routine JSON format:
{
"routine": {
"title": "Push Day 💪",
"folder_id": null,
"notes": "Chest, shoulders, triceps",
"exercises": [
{
"exercise_template_id": "79D0BB3A",
"notes": "Focus on form",
"rest_seconds": 90,
"sets": [
{ "type": "warmup", "weight_kg": 20, "reps": 15 },
{ "type": "normal", "weight_kg": 60, "reps": 8 }
]
}
]
}
}
# Total workout count
hevy count
# List routine folders
hevy folders
User asks "What did I do at the gym?"
hevy workouts
User asks "Show me my last chest workout"
hevy workouts --limit 10 # Find relevant workout ID
hevy workout <id> # Get details
User asks "How am I progressing on bench press?"
hevy exercises --search "bench press" # Get exercise template ID
hevy history <exercise-id> # View progression
User asks "What routines do I have?"
hevy routines
hevy routine <id> # For details
User asks "Find leg exercises"
hevy exercises --muscle quadriceps
hevy exercises --muscle hamstrings
hevy exercises --muscle glutes
User asks "Create a push day routine"
# 1. Find exercise IDs
hevy exercises --search "bench press"
hevy exercises --search "shoulder press"
# 2. Create routine JSON with those IDs and pipe to create-routine
create-exercise checks for existing exercises with the same name before creating. Use --force to override (not recommended).Full API docs: https://api.hevyapp.com/docs/
GET /v1/workouts - List workouts (paginated)GET /v1/workouts/{id} - Get single workoutGET /v1/workouts/count - Total workout countGET /v1/routines - List routinesGET /v1/routines/{id} - Get single routineGET /v1/exercise_templates - List exercisesGET /v1/exercise_templates/{id} - Get single exerciseGET /v1/exercise_history/{id} - Exercise historyGET /v1/routine_folders - List foldersPOST /v1/workouts - Create workoutPUT /v1/workouts/{id} - Update workoutPOST /v1/routines - Create routinePUT /v1/routines/{id} - Update routinePOST /v1/exercise_templates - Create custom exercisePOST /v1/routine_folders - Create folderThe CLI focuses on read operations. Write operations are available via the API client for programmatic use.
Generated Mar 1, 2026
A fitness coach uses the Hevy skill to monitor clients' workout history and progress, enabling personalized feedback and program adjustments. By querying recent workouts and exercise history, the coach can track adherence, identify plateaus, and suggest modifications to routines.
Companies integrate the Hevy skill into employee wellness platforms to aggregate anonymized workout data and promote healthy habits. It helps analyze participation trends in gym sessions and routines, supporting initiatives like fitness challenges and health incentives.
Physical therapists leverage the skill to review patients' exercise logs from rehabilitation routines, ensuring compliance and tracking recovery metrics. This aids in assessing progress on specific exercises and adjusting treatment plans based on historical data.
Gym owners utilize the Hevy skill to analyze member workout patterns and popular exercises, informing equipment purchases and class scheduling. By fetching aggregated data on routines and muscle group usage, they optimize facility offerings and member engagement.
Developers build third-party apps that integrate the Hevy skill to provide enhanced analytics, such as visualizing workout trends and comparing performance across exercises. This extends Hevy's functionality for users seeking advanced insights and social sharing features.
Monetize by offering tiered API subscriptions, where higher tiers provide increased rate limits, advanced analytics endpoints, and priority support. This model targets developers and businesses needing reliable access to workout data for integration.
License the Hevy skill as a white-label component for gym chains to embed in their proprietary apps, enabling branded workout tracking and member engagement tools. Revenue comes from setup fees and ongoing maintenance contracts.
Offer consulting services that use the Hevy skill to analyze aggregated fitness data for insights, such as identifying popular exercise trends or optimizing workout routines. Clients pay for customized reports and strategic recommendations.
💬 Integration Tip
Ensure secure handling of the HEVY_API_KEY environment variable and implement caching to respect API rate limits, especially when fetching large datasets with commands like --all.
Plan, focus, and complete work with energy management, time blocking, and context-specific productivity systems.
Build habits with streaks, reminders, and progress visualization
Comprehensive AI-assisted therapeutic support framework with CBT, ACT, DBT, MI, session notes CLI, and crisis protocols.
iOS HealthKit data sync CLI commands and patterns. Use when working with healthsync CLI, fetching Apple Health data (steps, heart rate, sleep, workouts), pairing iOS devices over local network, or understanding the iOS Health Sync project architecture including mTLS certificate pinning, Keychain storage, and audit logging.
Retrieve and summarize health, sleep, activity, readiness, and biometric data from the Oura Ring API via a command-line interface.
Load and analyze Strava activities, stats, and workouts using the Strava API