Install
openclaw skills install @stozo04/loseitRead your Lose It! nutrition from any agent. Parses the Lose It data export and emits per-day nutrition as JSON — calories, protein, carbs, fat, fiber, a per-meal breakdown, and Lose It's own budget / under / exercise-adjustment figures. A self-contained, read-only extractor: it does NO writing — no daily log, no sync — the caller decides what to do with the data. Single static binary, no Python or other runtime. Two ways to supply the export: a downloaded ZIP (--zip, no token, the reliable headless path) or a cookie fetch using your liauth session cookie. NOTE: the liauth cookie expires with no auto-refresh, so hands-off use means dropping in a freshly downloaded export ZIP.
openclaw skills install @stozo04/loseitRead your Lose It! nutrition from any agent. This is a read-only extractor: it obtains the Lose It data export, parses the food log, and prints per-day nutrition as JSON — calories, protein, carbs, fat, fiber, a per-meal breakdown, plus Lose It's own budget/under/exercise figures. It does no writing — no daily log, no sync; you get the data and store whatever you care about. Single static binary — no Python or other runtime.
⚠️ Read-only. It only reads your own Lose It export and prints JSON. It writes no files.
⏳ The cookie wrinkle. The
liauthsession cookie expires with no auto-refresh. For hands-off/agent use, the reliable path is--zipwith a freshly downloaded export ZIP — not the cookie fetch. Don't chase a dead cookie; drop in a fresh export instead.
# A) Download a release for your OS/arch and put it on PATH:
# https://github.com/stozo04/loseit-cli/releases
# B) Or with Go (1.24+):
go install github.com/stozo04/loseit-cli/cmd/loseit-cli@latest
loseit-cli days --zip ~/Downloads/loseit-export.zip --json
liauth cookie (loseit.com → F12 → Application → Cookies) to
~/.config/loseit/token (or set LOSEIT_TOKEN), then:
loseit-cli days --json
The cookie expires periodically with no refresh — re-grab it, or just use --zip.loseit-cli days --zip export.zip --days 7 # human table for the last 7 days
loseit-cli days --zip export.zip --json --days 7 # the frozen per-day JSON contract
loseit-cli days --zip export.zip --date 2026-06-16 --days 1
loseit-cli config show # resolved config
loseit-cli doctor # config + token presence (no network)
loseit-cli version # build metadata (also --version)
loseit-cli completion bash|zsh|fish|powershell # shell completion
days --json outputA JSON object keyed by ISO date → nutrition object (empty selection → {}):
{
"2026-06-16": {
"source": "Lose It export",
"calories_food": 505,
"protein_g": 75,
"carbs_g": 36,
"fat_g": 6,
"fiber_g": 3,
"meals": [
{ "meal": "Breakfast", "calories": 225, "protein_g": 23, "carbs_g": 36, "fat_g": 0,
"items": [ { "name": "Greek Yogurt", "qty": "1 cup", "calories": 120 } ] }
],
"loseit_budget": 1663,
"loseit_under": 1158,
"exercise_adjustment": 120
}
}
loseit_budget / loseit_under / exercise_adjustment appear only when the daily summary provides
them, after meals. Numbers are integers (banker's rounding). See AGENTS.md for the full
contract and exit codes.
0 success, 2 export/parse failure (no/expired token, bad ZIP), 64 usage
error, 78 config error.config.json are gitignored — never commit them, and the cookie
value is never printed.