A tiny, agent-friendly CLI for the Speediance (Gym Monster) cloud API. Read your
completed workouts and create programs that show up on the machine — no photos to
reference mid-session. Every command speaks --json, and the tool owns no data layout:
it returns structured data and creates programs; you (or your agent) decide what to do
with it.
A single, statically-compiled Go binary — no Python, no runtime, nothing to install
alongside it. CLI-compatible with the original Python speediance-cli (same commands,
same --json).
⚠️ Device support: built and tested for the Gym Monster (v1) (device_type = 1). A Gym Monster 2 now exists and may use a different device type and exercise ids — it is currently UNTESTED. SetSPEEDIANCE_DEVICE_TYPE(ordevice_typein config.json) if you want to try another device.
Point an agent at this repo. See the machine contract for the full self-serve guide (setup, credentials, command surface, plan schema), and API notes & telemetry caveats for details on the reverse-engineered wire format and data traps.
Unofficial — uses the Speediance cloud API reverse-engineered from the Android app. Personal use, your own account. Built on the MIT-licensed
UnofficialSpeedianceWorkoutManager(hbui3) andspeediance-influx(gavinmcfall).
Pre-built binary (recommended): download the archive for your OS/arch from the
Releases page, extract, and put
speediance-cli on your PATH.
With Go (1.24+):
go install github.com/stozo04/speediance-cli/v2/cmd/speediance-cli@latestgo install drops the binary in $(go env GOPATH)/bin — make sure that's on your PATH.
Credentials via env vars (SPEEDIANCE_EMAIL, SPEEDIANCE_PASSWORD, SPEEDIANCE_REGION),
a gitignored config.json, or a gitignored .env file in the working directory (auto-loaded;
real exported env vars take precedence over it) — see .env.example / config.example.json and
the machine contract. SSO/Google accounts: set a password in the Speediance app once.
Set credentials before the first command: login and every data command exit with a
config error (exit 78) until an email and password are found.
export SPEEDIANCE_EMAIL="you@example.com"
export SPEEDIANCE_PASSWORD="your-password"
speediance-cli login # verifies the credentials and caches a session tokenspeediance-cli today --json # every session today, auto-resolved (program/course/free/rowing)
speediance-cli workouts --days 7 --json # recent sessions (digest, each with a kind)
speediance-cli session <training_id> --json # full, verbatim detail for one session (auto-detects type)
speediance-cli library --search "row" # exercise catalog (ids/names/muscles)
speediance-cli push plan.json --dry-run # build a program (preview)
speediance-cli push plan.json # create it on your account
speediance-cli push plan.json --date today # create and reserve on the machine calendarThe reader commands emit JSON and own no data layout — pipe workouts/session --json
into whatever stores or derives from it (a sheet, a database, an agent). Storing is the
consumer's job, not the CLI's.
Convenience commands: config show|set|path (manage config.json without hand-editing),
version (build metadata; also --version), and completion bash|zsh|fish|powershell.
Author a plan (a human, a coach, or an LLM can write it), then push it:
{
"name": "Pull Day",
"exercises": [
{"id": 434, "title": "Seated Dual-Handle Lat Pulldown",
"sets": [{"reps": 12, "weight": 20, "mode": 1, "rest": 75}]}
]
}weight is kilograms; mode 1=Standard; rest in seconds. Get ids from
speediance-cli library. Full schema and field notes in the machine contract.
- stdout is parseable with
--json; all human hints, warnings, and logs go to stderr. Never interleaved — pipe stdout straight into a parser. - Exit codes:
0success,2auth failure,3push --datecreated the program but could not reserve the day, non-zero for other errors. - Secrets:
config.json,.token.json,.env, andplans/are gitignored. Never commit them. Prefer env vars for agents/headless use.
There's intentionally no doctor / health-check command — with a single dependency
(the Speediance API), the diagnostics you'd want are already split across commands you
have. If setup isn't working, walk these in order:
speediance-cli version # is the binary installed, and which build?
speediance-cli config show # are email/region/device_type what you expect? (password masked)
speediance-cli config path # where did config.json and the token cache resolve?
speediance-cli login # does auth + connectivity actually work? (exit code 2 = auth failure)login is the real connectivity test: it forces a fresh authentication against the API
and exits 2 if the credentials are wrong (note it also rewrites the token cache). Together
these answer what's installed, what config resolved, and does the account connect —
everything a doctor command would have bundled into one report.
This tool is published as a public skill on ClawHub
so any OpenClaw or compatible agent can install it. The skill definition lives in
SKILL.md. ClawHub is updated automatically on every change to SKILL.md via
GitHub Actions — no manual publish step needed.
- Built/tested for Gym Monster 1 only (see device note above). GM2 is untested.
- The session token cache lives in your OS user-cache dir by default (e.g.
~/.cache/speediance/token.json;%LocalAppData%\speediance\token.jsonon Windows), not the working directory — so it can't be swept into a commit — and in the non-roaming cache dir rather than the roaming config dir, so a live credential isn't synced across machines. Override with an exportedSPEEDIANCE_TOKEN_CACHEor thetoken_cache_pathconfig key (ignored, with a warning, in a working-directoryconfig.json; use--configor the user-config dir);config pathshows where it resolved. An older.token.jsonin the working directory is never read (a planted one could switch accounts); the CLI warns so you can delete it, and you log in once more. - A freestyle "Free Lift" returns session totals only (no per-set detail). Programs and guided free sessions (e.g. Aerobic Rowing) return full per-rep or per-interval detail.
library.jsonis a committed snapshot of the exercise catalog for convenience; regenerate it anytime withspeediance-cli library.mainis PR-protected; changes land via pull request.
A thin cmd/ entrypoint over a closed internal/ tree (the gh pattern):
cmd/speediance-cli/— entrypoint (main); maps errors to exit codesinternal/api/— HTTP client: frozen headers, auth, token refresh, endpointsinternal/config/— config + credential discovery (env / file / flags)internal/auth/— token cache (0600), per-user OS config dir by defaultinternal/template/— exercise library + build/create programs from a planinternal/workout/— workout/session models, record parsing, timestamp handlinginternal/cli/— Cobra command wiring (one file per command)SKILL.md— ClawHub marketplace skill definitionlibrary.json— committed catalog snapshot (Gym Monster 1)plans/— personal workout plan JSONs (gitignored)
go build ./...
go test -race ./...
golangci-lint run ./...MIT — see LICENSE.