Skip to content

scm1400/claude-mama

Repository files navigation

πŸ‘©β€πŸ‘¦ Claude Mama

Your API quota is rotting. Mom is disappointed.

A desktop mascot that guilt-trips you into using your Claude Code tokens β€” just like a real Korean mom.

Build License: ISC Electron PRs Welcome


Claude Mama character
Angry Worried Happy Proud
😑 "You haven't used any today?!" 😟 "Everyone else is using theirs..." 😊 "That's my kid!" πŸ₯Ή "Mom's buying chicken tonight~"
< 15% usage 15–50% usage 50–85% usage 85%+ usage

What is this?

Claude Mama is a tiny desktop widget that monitors your Claude Code API usage and reacts with the emotional range of a Korean mother who just found out you skipped dinner.

  • Using too little? She's angry. She didn't raise you to waste a perfectly good API quota.
  • Using a moderate amount? She's worried. The neighbors' kids are using more.
  • Using a healthy amount? She's happy. Finally, some return on investment.
  • Maxing it out? She's proud. Tears are streaming. Chicken is being ordered.

"Other moms worry their kids use too much computer. Claude Mama worries you don't use enough."

Features

  • Real-time usage tracking β€” Pulls 7-day and 5-hour utilization from the Anthropic OAuth API, with smart JSONL session fallback when rate limited
  • Pixel art character β€” A pixel-art mama with curler hair and 6 mood expressions (angry, worried, happy, proud, confused, sleeping)
  • Guilt-powered messages β€” Randomized mom-style messages that rotate every 2 minutes
  • Contextual messages β€” Situation-aware messages for weekends, unused streaks, usage spikes, and reset warnings (200+ new localized messages across 4 languages)
  • 5-hour burnout warning β€” "Take a break~ You're almost at the limit!" (she cares, in her own way)
  • Achievement Badges β€” Unlock 9 badges across Bronze, Silver, and Gold tiers for streaks, milestones, and achievements
  • Share Report Card β€” Save a shareable PNG card with your current mood, usage stats, and reset countdown
  • Quote Collection (도감) β€” Collect 86 unique mama quotes across 4 rarity tiers (Common, Rare, Legendary, Secret)
  • Custom Character Skins β€” Upload your own character images with single, per-mood, or sprite sheet modes
  • Always on Top β€” Toggle in Settings or tray menu (default ON) to keep mama visible above other windows
  • System tray β€” Lives quietly in your taskbar, judging you silently
  • Settings panel β€” Position, auto-start, language selection, collection viewer, and skin customization
  • 4 languages β€” ν•œκ΅­μ–΄, English, ζ—₯本θͺž, δΈ­ζ–‡
  • Auto-start β€” Boots with your OS so you can never escape mom's watchful eye
  • Auto-update β€” Mom keeps herself up to date via GitHub Releases

Share Report Card

Save your current mama status as a PNG image β€” perfect for sharing on social media.

Share Report Card example

The card includes mood, quote, 7-day/5-hour usage bars with reset countdowns, and a UTC timestamp.

Quote Collection

Mama has 86 unique quotes spread across 4 rarity tiers:

Rarity Count How to Unlock
βšͺ Common 73 Displayed during normal use
πŸ”΅ Rare 5 Hit specific usage milestones (0%, 50%, 100% of 5hr, etc.)
🟑 Legendary 3 Achieve streaks and lifetime milestones
πŸ”΄ Secret 5 Use the app on holidays or at 3 AM

Achievement Badges

Unlock badges for hitting milestones and maintaining streaks. View your collection in Collection tab β†’ Badges.

Tier Badge How to Unlock
πŸ₯‰ Bronze First Steps Make your first API call
πŸ₯‰ Bronze 3-Day Streak Use Claude Code on 3 consecutive days
πŸ₯‰ Bronze 7 Days with Mom Use the app for 7 consecutive days
πŸ₯ˆ Silver Halfway There Hit 50% of your weekly quota
πŸ₯ˆ Silver 7-Day Streak Maintain a 7-day usage streak
πŸ₯ˆ Silver Mom's Pride Get 10 "proud" expressions (85%+ usage)
πŸ₯‡ Gold Full Power Reach 100% of your weekly quota
πŸ₯‡ Gold 30-Day Streak Maintain a 30-day usage streak
πŸ₯‡ Gold Survivor Get 10 "angry" expressions AND keep using the app

Custom Character Skins

Give mama a new look with custom character images:

  • Single Image Mode β€” One image displayed for all moods
  • Per-Mood Mode β€” 6 images (one for each mood expression: angry, worried, happy, proud, confused, sleeping)
  • Sprite Sheet Mode β€” Advanced mode with one image and grid configuration for frame positioning

Upload your custom skins in Settings β†’ Skins and switch between them anytime. Mom might judge your art choices, but she'll wear them anyway.

Installation

Prerequisites

  • Claude Code must be installed and logged in (OAuth)
  • That's it. Mom doesn't ask for much.

Download

Grab the latest installer from Releases:

Platform File Arch
Windows Claude Mama Setup x.x.x.exe x64
macOS Claude Mama-x.x.x.dmg Universal (Intel + Apple Silicon)
Linux Claude Mama-x.x.x.AppImage x64
Linux claude-mama_x.x.x_amd64.deb x64

⚠️ Not code-signed: Claude Mama is not code-signed yet, so your OS will show a security warning on first install.

  • Windows: SmartScreen will say "Windows protected your PC." Click More info β†’ Run anyway.
  • macOS: You'll see "cannot be opened because the developer cannot be verified." Go to System Settings β†’ Privacy & Security β†’ Open Anyway.
  • Linux (AppImage): chmod +x Claude\ Mama-*.AppImage && ./Claude\ Mama-*.AppImage
  • Linux (deb): sudo dpkg -i claude-mama_*.deb

First Launch

  1. Make sure Claude Code is installed and logged in (claude in terminal)
  2. Claude Mama will automatically detect your API usage via OAuth
  3. If rate-limited (429), it falls back to local JSONL session parsing β€” no extra config needed
  4. Mama starts polling every 5 minutes. Just let her do her thing.

Auto-Start & Auto-Update

  • Auto-start: Enabled by default. Claude Mama starts with your OS. Toggle in Settings if you dare.
  • Auto-update: Updates are downloaded automatically from GitHub Releases. When a new version is ready, mama will ask you to restart.

How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Anthropic OAuth │────>β”‚ Usage Tracker │───>β”‚ Mood Engine β”‚
β”‚ Usage API       β”‚     β”‚ (5min poll)   β”‚    β”‚             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                               β”‚                    β”‚
                        β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚ JSONL Sessionβ”‚    β”‚
                        β”‚ Parser (429) β”‚    v
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                          β”‚ Pixel Art    β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚ Character    β”‚
β”‚ Speech       β”‚     β”‚ Usage Bar    β”‚     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚ Bubble       β”‚     β”‚ Indicator    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Polls the Anthropic usage API every 5 minutes
  2. Falls back to JSONL session parsing when rate limited (429) β€” scans ~/.claude/projects/ session files to estimate usage with dynamic calibration
  3. Computes mood based on weekly utilization thresholds
  4. Renders a pixel-art mama character with mood-appropriate expression and message
  5. Nags you until you use your tokens like a responsible adult

Mood Thresholds

Weekly Usage Mood Mom Says
0–14% 😑 Angry "Your quota is rotting away!"
15–49% 😟 Worried "Mom is worried about you..."
50–84% 😊 Happy "Now that's what I like~"
85–100% πŸ₯Ή Proud "Perfect! I'm tearing up..."
5hr > 90% ⚠️ Warning "Take a break~ 5-hour limit almost reached!"
Rate limited 😡 Confused Uses local session data, or "Collecting data..." while calibrating
API error 😡 Confused "Something went wrong..."
No login 😴 Sleeping "Log in first!"

Note: The Claude Code usage API (api/oauth/usage) has strict rate limits. When rate limited (429), Claude Mama parses local session JSONL files (~/.claude/projects/) to estimate usage. It learns the token-to-percent ratio from successful API responses (dynamic calibration), so estimates improve over time. While waiting for the first successful calibration, mama shows "Collecting data..." and retries every 10 seconds.

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

# Build for production
npm run build

# Build Windows installer
npm run build:win

# Build macOS installer (requires macOS)
npm run build:mac

FAQ

Q: Can I hide from Claude Mama? A: No. She auto-starts with your OS. You can disable it in settings, but she'll know.

Q: Why does she speak Korean by default? A: Because Korean moms are the gold standard of guilt-tripping. You can switch to English, Japanese, or Chinese in settings if your guilt receptors are calibrated differently.

Q: My usage is at 0% but I've been coding all day? A: Make sure Claude Code is logged in. Mom can't monitor what she can't see.

Q: How do I unlock secret quotes? A: Use the app on holidays (New Year, Chuseok, Christmas) or stay up coding past 3 AM. Mom notices everything.

Q: Is this a joke? A: The guilt is real. The chicken reward is not (yet).

Q: Will there be a Claude Dad version? A: Claude Dad went out for tokens and never came back.

Contributing

PRs welcome! Whether it's new languages, more guilt-inducing messages, or pixel art improvements β€” mom appreciates the help.

  1. Fork this repo
  2. Create your feature branch (git checkout -b feature/more-guilt)
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

Privacy Policy

This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.

  • Anthropic API: The app calls the Anthropic OAuth Usage API to retrieve your token usage statistics. This is initiated by you when you log in with your Claude Code credentials.
  • GitHub (Auto-Update): The app checks GitHub Releases for new versions. No personal data is transmitted.
  • Local Storage: Your API credentials and settings are stored locally on your machine using electron-store. They are never sent to any third-party server.

Code Signing Policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

Team roles:

License

ISC β€” Free as in "mom's love" (unconditional, but with expectations).


Built with guilt and ❀️

If this made you mass-consume your Claude API quota, please star the repo. Mom would be proud.

About

Claude Mama wants you to spend all tokens

Topics

Resources

License

Stars

Watchers

Forks

Contributors