clawdbod ~ $ /clawdbod:export csv

A private workout log you can export to CSV or JSON

Updated , 5 min read

Most fitness trackers start by asking for an email address. Your push-up count then lives on someone else's server, behind a login, in a format you cannot read without their app. If the company pivots, your history goes with it.

ClawdBod takes the other approach. Every set you log is appended to a plain text file in your home directory. There is no account, no sync and no server. When you want the data somewhere else, one command writes it out as CSV or JSON. This guide covers where the files are, what is in them, and what you can do with an export.

Where the data lives

Everything is in one folder:

~/.claude/clawdbod/
config.json      break cadence and optional profile
workouts.jsonl   the workout log, one line per set
state.json       onboarding flag and pause state
sessions/        per-session prompt counters, pruned after 7 days

The folder sits outside the plugin's install directory on purpose, so updating or reinstalling the plugin leaves your history alone.

Only workouts.jsonl holds workout data. The rest is settings and bookkeeping.

What a log entry looks like

The log is in JSON Lines format: each line is one complete JSON object, and each object is one set.

workouts.jsonl
{"ts":"2026-11-05T17:42:10.123Z","exercise":"Push-ups","unit":"reps","count":20,"calories":9.4}
{"ts":"2026-11-05T18:15:44.871Z","exercise":"Plank hold","unit":"seconds","count":60,"calories":4.5}
Field Meaning
ts When the set was logged, as an ISO 8601 timestamp in UTC
exercise The exercise name as it was presented
unit reps, or seconds for holds such as planks and wall sits
count A whole number of reps or seconds
calories An estimate, or null if you have not set a weight in your profile

The file is append-only. The plugin adds lines to the end and never rewrites earlier ones, which makes the format hard to corrupt and easy to back up. If a line does get damaged, for example by a hand edit, the reader skips it and reports how many lines it skipped. It does not fail.

You can read the file with any text editor. Nothing about it is proprietary.

Seeing your history inside Claude Code

Two commands show the log without leaving the session:

terminal
/clawdbod:history
/clawdbod:fitness summary

/clawdbod:history prints your most recent 20 sets, newest first, with totals across the whole log. Add a number for more, up to 100. /clawdbod:fitness summary shows today only. Both are produced by a script that reads the log directly, so the numbers are computed and not guessed.

Exporting to CSV

terminal
/clawdbod:export

With no arguments, this writes a CSV file named clawdbod-export-YYYY-MM-DD.csv into your current working directory and tells you how many sets it exported. To choose the location, give it a path:

terminal
/clawdbod:export csv ~/Desktop/workouts.csv

The CSV has six columns:

clawdbod-export-2026-11-05.csv
date,time,exercise,unit,count,calories
2026-11-05,09:42,Push-ups,reps,20,9.4
2026-11-05,10:15,Plank hold,seconds,60,4.5

Dates and times in the CSV are converted to your local timezone, which is what you want in a spreadsheet. The calories column is empty for sets logged without a profile weight. If the output folder does not exist, it is created.

Exporting is the one ClawdBod action that still asks for permission each time. The plugin approves its own logging and stats scripts automatically, but an export writes a file to a location you choose, so Claude Code's normal prompt is left in place.

Exporting to JSON

terminal
/clawdbod:export json ~/Desktop/workouts.json

The JSON export wraps the raw entries with a timestamp and totals:

workouts.json
{
  "exported_at": "2026-11-05T22:10:03.000Z",
  "totals": { "sets": 2, "reps": 20, "calories": 13.9 },
  "workouts": [
    { "ts": "2026-11-05T17:42:10.123Z", "exercise": "Push-ups", "unit": "reps", "count": 20, "calories": 9.4 },
    { "ts": "2026-11-05T18:15:44.871Z", "exercise": "Plank hold", "unit": "seconds", "count": 60, "calories": 4.5 }
  ]
}

The reps total counts rep-based sets only. Seconds from timed holds are left out, because adding seconds to reps would produce a number that means nothing.

Choose CSV for spreadsheets and JSON for scripts.

What to do with an export

Chart it in a spreadsheet. Open the CSV in Excel, Numbers or Google Sheets and build a pivot table with date as rows and the sum of count as values, filtered by exercise. You get reps per day in about a minute.

Query the log directly. Because the log is JSON Lines, command-line tools can read it with no export step. With jq installed, this totals each exercise:

terminal
jq -s 'group_by(.exercise)
       | map({exercise: .[0].exercise, total: (map(.count) | add)})' \
  ~/.claude/clawdbod/workouts.jsonl

And this counts the sets you have logged today, in UTC:

terminal
grep -c "$(date -u +%Y-%m-%d)" ~/.claude/clawdbod/workouts.jsonl

Bring it into another tracker. Most fitness and habit apps that accept imports take CSV. The columns are generic enough to map by hand.

Ask Claude about it. The log is a local file, so you can ask Claude Code to read it and answer questions like "which exercise have I done least this month?"

Backing up and moving machines

Since the data is a folder of small text files, backing it up means copying the folder:

terminal
cp -r ~/.claude/clawdbod ~/Backups/clawdbod-2026-11-05

To move to a new machine, copy ~/.claude/clawdbod across and install the plugin. Your history, cadence and profile come with it. If you already sync dotfiles, you can include workouts.jsonl and config.json. Leave sessions/ out, since those counters are tied to individual sessions and expire after a week.

To put the data somewhere else entirely, set the CLAWDBOD_DATA_DIR environment variable to another folder before starting Claude Code.

To delete your history, delete workouts.jsonl. To remove every trace, delete the folder.

What never leaves your machine

The plugin makes no network requests. It has no telemetry, no analytics and no account system, and the only files it writes are the ones listed above, plus an export when you ask for one. You can verify that by reading it: the source is short, and the home page lists everything the plugin touches with links to the code.

Earlier versions had a global leaderboard, which required a server and usernames. Version 2.0 removed it, and all tracking has been local-only since.

The calorie figures in each entry come from a simple formula explained in the calorie guide, and the hook that decides when a set is offered is covered in the Stop hook walkthrough. To start a log of your own, see the install guide.

FAQ

Where does ClawdBod store my workout data?

In ~/.claude/clawdbod on your own machine. The workout log is a file named workouts.jsonl, with one JSON entry per set.

How do I export my workouts to CSV?

Run /clawdbod:export inside Claude Code. It writes a CSV file with the columns date, time, exercise, unit, count and calories to the current directory, or to a path you give it.

Can I export to JSON instead?

Yes. Run /clawdbod:export json, optionally followed by an output path. The file contains an export timestamp, overall totals and every logged entry.

Is my workout data uploaded anywhere?

No. The plugin makes no network requests and has no account system. The data exists only in files on your machine unless you copy it elsewhere.

What happens to my history if I uninstall the plugin?

The data folder is separate from the plugin, so your log stays where it is. Reinstalling picks it up again. Delete ~/.claude/clawdbod if you want it removed.

Install ClawdBod

ClawdBod is a free, open-source Claude Code plugin that turns these breaks into a habit. Run this inside Claude Code:

install
$ /plugin install clawdbod --marketplace khur/clawdbod
$ /reload-plugins

No account, no telemetry, MIT licensed. Update and uninstall commands are on the home page, and the source is on GitHub.