Scan your whole stack
Latest version: v2.0.0
io.github.thebriangao/totem was last scanned on 23 Nov 2026 at version 2.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.0.0 LATEST | 23 Nov 2026 | No rules fired |
| 1.4.4 | 12 Jun 2026 | Not shown |
Findings for v2.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
totem connects your WHOOP account to your AI apps. Ask about last night's sleep, why your recovery is low, or how your HRV has moved this quarter. Have the app log a workout or fill in your journal.
It is a small server that speaks MCP to your apps and talks to WHOOP the way the WHOOP app does. You run it on your own computer or on a cloud server you own.
totem local or totem cloud logs you in to WHOOP and adds totem to the AI apps it finds.[!NOTE] totem uses WHOOP's private app API, not the public developer API, and isn't affiliated with WHOOP. Read the FAQ before you install it.
You need Node.js 24 or newer and a WHOOP account.
1. Install it.
npm install -g @thebriangao/totem
2. Pick where it runs.
| On this computer | In the cloud | |
|---|---|---|
| Command | totem local |
totem cloud |
| Works with | Desktop and terminal apps: Claude Desktop, Claude Code, ChatGPT desktop and Codex, Cursor, VS Code, OpenCode, Antigravity | All of those, plus claude.ai, chatgpt.com and Claude on your phone |
| Cost | Free | Free on Cloudflare, about $4 a month on Fly.io |
| Available | While your computer is on | Always |
Either command opens a browser window on WHOOP's own site for you to log in. totem never sees your password. It then finds the AI apps on your computer and offers to add itself to each one.
3. Ask something.
Open your app and try "How did I sleep last night?"
Run totem on its own any time to see where things stand.
MCP_AUTH_TOKEN (64 random characters, for example from openssl rand -hex 32) and AUTH_PASSWORD (the password you'll type when an app connects). It runs on the free Workers plan.Then log in to WHOOP and send the login to your server:
npx @thebriangao/totem auth --url https://your-server-address
Only use Claude Desktop? Download totem.mcpb, double-click it, and log in once with npx @thebriangao/totem auth --local.
Anything that writes comes back as a preview first. Your app shows you what will change and asks before it happens.
totem connect sets up the apps on your computer. A cloud server also has a Connect page at https://your-server/connect, with a button or a copy-ready step for each app, already filled in with your server's address.
With a cloud server, each app sends you to totem's sign-in page once. It names the app that's asking, shows where access will go, and asks for your connector password.
| App | On this computer | With a cloud server |
|---|---|---|
| claude.ai, Claude Desktop, Claude mobile | Claude Desktop's config file | A link that opens claude.ai's "Add custom connector" filled in. It then shows up in Desktop and on your phone too |
| Claude Code | claude mcp add |
claude mcp add --transport http, then /mcp to sign in |
| ChatGPT desktop and Codex | codex mcp add (they share one config) |
codex mcp add --url, which opens the sign-in itself |
| chatgpt.com | Needs a cloud server | Plugins → Add → Add custom MCP server |
| Cursor | ~/.cursor/mcp.json |
An "Add to Cursor" link |
| VS Code (Copilot) | ~/.copilot/mcp-config.json |
An "Add to VS Code" link |
| OpenCode (1 and 2) | opencode.json |
opencode.json, then opencode mcp auth whoop |
| Antigravity | ~/.gemini/config/mcp_config.json |
The same file, with the server's address |
totem connect <app> sets up one app, and totem connect --print shows what it would add without touching anything.
totem cloud deploys to any of these, then checks that the server answers.
| Host | Cost | Good to know |
|---|---|---|
| Cloudflare Workers (recommended) | Free plan, 100,000 requests a day | No machine to look after. The login lives in a Durable Object. |
| Fly.io | About $4 a month for one 512 MB machine in Virginia and a 1 GB volume | Always on. At the time of writing, Fly doesn't bill personal accounts for less than $5 a month. |
| Railway | Railway's paid plan | A dashboard and logs in the browser. |
| Your own server | Yours | Any Docker host. totem writes the settings and prints the commands, or use the image ghcr.io/thebriangao/totem. Mount a volume at /data. |
Afterwards, totem status checks the server and its WHOOP login, totem logs shows its logs, and totem deploy sends it a new version.
Your data goes from WHOOP to your totem to the app you asked, and nowhere else. There is no totem company in the middle, no shared server and no analytics.
totem auth, which local and cloud run for you, opens a fresh browser window on app.whoop.com. You log in on WHOOP's own page, two-factor check included.~/.config/totem/tokens.json), or on your server: on its volume, or in Cloudflare Durable Object storage.To log in again, run totem auth.
MCP_AUTH_TOKEN, the server's key, kept in ~/.config/totem/deploy.json on your computer, and the connector password you type when an app connects.whoop_raw writes also need allow_write.More in SECURITY.md.
| Command | What it does |
|---|---|
totem |
Show where this install stands and what to run next |
totem local |
Run on this computer: log in, then set up your AI apps |
totem cloud |
Deploy your own server, log it in, connect your apps |
totem connect [app] |
Set up your apps again, or just one |
totem auth |
Log in to WHOOP (--local, --url URL, --paste, --status) |
totem status / ping / logs |
Check the server and its login |
totem deploy |
Deploy this version to your server |
totem update |
Update totem (--check, --auto on) |
totem tools |
List the 41 tools |
totem <command> --help explains each one.
The app doesn't show any WHOOP tools. Restart it fully. For a local setup, run totem status. For a server, run totem ping.
"No WHOOP login on this server." Run totem auth. It sends the login to your server when one is set up, or saves it on this computer.
No browser was found for the login. totem uses Chrome, Chromium, Edge or Brave. Point it at another one with TOTEM_BROWSER=/path/to/browser, or run totem auth --paste and paste the whoop-auth-refresh-token cookie from a browser that's logged in to app.whoop.com.
OpenCode or another app's config has comments. totem doesn't rewrite files it can't read exactly. For OpenCode it lets OpenCode add the server itself. For others it prints the entry to add.
WHOOP answers 5xx. WHOOP is having trouble. Try again in a minute.
Is this supported by WHOOP? No. totem uses WHOOP's private app API, which WHOOP doesn't offer to third parties, and WHOOP's terms let them act against accounts that use unsupported tools. totem's requests look like the app's and stay at a person's pace, but there is no guarantee. If losing your WHOOP account would be a problem, don't use it.
Why not WHOOP's public API? It's read-only and covers a small part of the data: no journal, Strength Trainer, stress, Coach, Smart Alarm, hypnogram or trends, and no writes. If recovery, sleep totals and a workout list are enough for you, use it instead.
Can I share my server with a friend? No. Each person needs their own server and their own WHOOP login. A login can't be shared, because WHOOP replaces the refresh token on every use.
Does it work with WHOOP 4.0 and 5.0/MG? Yes. The API depends on your account, not your strap.
Where does my data go? From WHOOP to your server to the app you asked. totem keeps no copy, only an in-memory cache of recent reads.
Issues and pull requests are welcome. To work on totem:
git clone https://github.com/thebriangao/totem && cd totem
npm install
npx tsc && npm link # builds once and puts `totem` on your PATH
totem test
CONTRIBUTING.md explains how the project is laid out, and WHOOP.md documents what is known about WHOOP's API.
Thanks to everyone who opened issues and pull requests for v1 and v2, to Anthropic for MCP, and to the people who documented pieces of WHOOP's API over the years.
MIT. "WHOOP" is a trademark of WHOOP, Inc. totem is an independent project and is not affiliated with, endorsed by or connected to WHOOP.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.