Hevy
by @mjrussell
Query workout data from Hevy including workouts, routines, exercises, and history. Use when user asks about their workouts, gym sessions, exercise progress, or fitness routines.
clawhub install hevyπ About This Skill
name: hevy description: Query workout data from Hevy including workouts, routines, exercises, and history. Use when user asks about their workouts, gym sessions, exercise progress, or fitness routines. homepage: https://hevy.com metadata: clawdbot: emoji: "ποΈ" requires: bins: ["hevy"] env: ["HEVY_API_KEY"]
Hevy CLI
CLI for the Hevy workout tracking API. Query workouts, routines, exercises, and track progress.
Setup
Requires Hevy Pro subscription for API access.
1. Get API key from https://hevy.com/settings?developer
2. Set environment variable: export HEVY_API_KEY="your-key"
Commands
Status
# Check configuration and connection
hevy status
Workouts
# List recent workouts (default 5)
hevy workouts
hevy workouts --limit 10Fetch all workouts
hevy workouts --allShow detailed workout
hevy workout JSON output
hevy workouts --json
hevy workout --jsonShow weights in kg (default is lbs)
hevy workouts --kg
Routines
# List all routines
hevy routinesShow detailed routine
hevy routine JSON output
hevy routines --json
Exercises
# List all exercise templates
hevy exercisesSearch by name
hevy exercises --search "bench press"Filter by muscle group
hevy exercises --muscle chestShow only custom exercises
hevy exercises --customJSON output
hevy exercises --json
Exercise History
# Show history for specific exercise
hevy history
hevy history --limit 50JSON output
hevy history --json
Creating Routines
# Create routine from JSON (stdin)
echo '{"routine": {...}}' | hevy create-routineCreate routine from file
hevy create-routine --file routine.jsonCreate a routine folder
hevy create-folder "Push Pull Legs"Update existing routine
echo '{"routine": {...}}' | hevy update-routine Create custom exercise (checks for duplicates first!)
hevy create-exercise --title "My Exercise" --muscle chest --type weight_repsForce 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 }
]
}
]
}
}
Other
# Total workout count
hevy countList routine folders
hevy folders
Usage Examples
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 # Get details
User asks "How am I progressing on bench press?"
hevy exercises --search "bench press" # Get exercise template ID
hevy history # View progression
User asks "What routines do I have?"
hevy routines
hevy routine # 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
Notes
create-exercise checks for existing exercises with the same name before creating. Use --force to override (not recommended).API Reference
Full API docs: https://api.hevyapp.com/docs/
Available Endpoints
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 foldersWrite Operations (supported but use carefully)
POST /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.
βοΈ Configuration
Requires Hevy Pro subscription for API access.
1. Get API key from https://hevy.com/settings?developer
2. Set environment variable: export HEVY_API_KEY="your-key"
π Tips & Best Practices
create-exercise checks for existing exercises with the same name before creating. Use --force to override (not recommended).