loseit
Unofficial Python SDK + CLI for Lose It! — log meals, query your diary, and delete entries from the command line.
⚠️ Reverse-engineered & unofficial. Talks to Lose It!'s private GWT-RPC web endpoints. No official API exists; the protocol is brittle and may break without notice. Not affiliated with Lose It! / FitNow, Inc.
Table of contents
Quickstart
You need to already be signed into loseit.com in Chrome or Brave.
# 1. Install the CLI (system-wide via uv)
uv tool install git+https://github.com/phitoduck/lose-it
# 2. Import your auth token AND populate the config from the browser
loseit login # default: --browser chrome
# or: loseit login --browser brave
# 3. You're ready
loseit diary
Install
claude plugin marketplace add phitoduck/lose-it
claude plugin install log-food@lose-it
Example
Either invoke the skill explicitly with /log-food, or just describe your meal — the skill's triggers fire on natural-language phrases too.
Claude Code Prompt:
/log-food Log 1 Xtreme carb balance tortilla, 110g of avocado, and 120g of real good brand lightly breaded chicken strips
Result:
Complex example — multi-food meal + diary cleanup
A messier, real-world prompt. Fuzzy quantities, a guessed-at sauce, "a few bites" of corn, and an aside asking the skill to clean up duplicate entries — handled in a single turn:
Claude Code Prompt:
/log-food I ordered some poke today today there was a bowl with a bunch of edamame in it. Probably three quarters cup of edam edamame. And I would guess like three quarter cup of Ahi tuna and three quarter cup of crab imitation meat and there was this white sauce on it I'm not sure what it was uh presumably some sauce that's common to serve with uh poke bowls with imitation crab. And I had a few bites of corn. So that'll need to be converted into whatever unit makes sense for a guess of that. And that's all for that meal. Now, I also erroneously added too many entries to my food log today. So for example, there are multiple logs for Trader Joe's tomato soup. There should only be one. So the redundant ones should be deleted.
Result: