Animated terminal pet that sits on your taskbar and reacts to AI coding assistant events
pip install clawd-buddy==0.1.25 Copy PIP instructions
A tiny animated terminal pet that sits on your taskbar and reacts to Claude Code events. Works on Windows and Linux.
Clawd Buddy is a small always-on-top character that lives on your taskbar while you work with Claude Code:
The status pill is the buddy's at-a-glance readout, so you can tell what the assistant is doing without switching windows. With a compositor (Linux) the buddy also gets a soft ground shadow, a coloured glow while it reacts, and antialiased edges.
If multiple signals arrive in quick succession (e.g. a PermissionRequest while a celebrate is still animating), the buddy now queues them instead of dropping them — up to three pending reactions play back in the order they arrived.
With several Claude Code sessions running, each one is tracked from its prompt to its own Stop (by the hooks' session_id). When one finishes, the buddy celebrates and then goes back to thinking for the others; the pill reads "Thinking ×2" while two are working.
Right-click the buddy (or pick Settings & About… in the tray menu, or run clawd-buddy --settings) to open one window that controls everything:
Every change applies to the buddy at once and is saved; there is no Save button. Changes made elsewhere (the tray menu, Ctrl+1…7) show up in the window while it's open. It follows your desktop's light or dark preference. clawd-buddy --settings focus opens it on a given page, and the sidebar's Quit Clawd Buddy button asks for a second click before it closes the buddy.
Pick the audio style from the system-tray right-click menu → Sound. Four packs ship in the box, plus an Off entry to mute. Clicking a pack previews the celebrate sound immediately so you can audition options without waiting for the next event.
No audio file is bundled — every pack is synthesized at startup with pygame.mixer (summed sine / square / bell-decay voices with raised-cosine envelopes). Your choice persists across launches in config.json under "sound_pack".
Toggle from the system-tray right-click menu → Sound. The choice is remembered between launches (saved alongside the theme in config.json). If your machine has no audio device, the buddy logs a one-line warning and runs silently while the status pill still shows what's happening.
Three preferences keep the buddy polite across motion sensitivities, audio environments, and quiet hours:
All three settle into config.json under reduce_motion, volume, and quiet_hours ({start, end} minutes-from-midnight) — the same file as the theme and sound pack. Defaults: motion on, volume 100%, quiet hours off.
The buddy can nudge you to drink water on a schedule. Off by default — turn it on from the system tray (Water Reminder toggle) or from the settings window's Reminders page, where every preference lives:
Inside quiet hours the buddy silently consumes the scheduled slots — on exit, only the next future slot fires, not every slot you were meant to sleep through. Reminder prefs persist under a reminder block in config.json (enabled, interval, anchor_minute, sound, quiet_hours).
Every drink-ack — Space, the tray entry, the settings-window button, or clawd-buddy --drank — increments a per-day cup counter that lives in ~/.clawd-buddy/history.json (C:\Users\ \.clawd-buddy\ on Windows, ~/.clawd-buddy/ on Linux). The path is intentionally separate from config.json — settings sit in the platform config dir, runtime data sits in the home directory where it's easy to back up or sync via dotfile management.
The settings window's Reminders page shows 3 cups today in large type, with a bar chart of the days before it (the last seven, today highlighted) and when the next reminder is due. It updates while open, and straight away when you click I drank water.
Crossing local midnight closes out the in-progress day into the recent list and resets the count to zero. Empty days (zero acks) are skipped so the recent list only carries meaningful data.
Schema (small enough to hand-edit if you ever need to):
{ "today": { "date": "2026-05-25", "count": 3 }, "recent": [ { "date": "2026-05-24", "count": 6 }, { "date": "2026-05-23", "count": 5 } ] } The counter is independent of whether the reminder is enabled — manual logging works either way, so you can use the buddy as a pure water- tracker without the nag.
clawd-buddy --pomodoro 25/5 # 25 min work / 5 min break, repeating clawd-buddy --pomodoro-stop # end the cycle The buddy runs the cycle so you don't have to watch a timer:
Transitions ride the normal celebrate/wave channels, so your volume, quiet hours, and reduce-motion settings all apply. Phase boundaries are wall-clock deadlines: if the machine was asleep at the boundary, the transition fires as soon as the buddy notices, and the next phase still ends at its originally scheduled time. Work/break lengths accept 1–180 minutes each. The cycle is in-memory only — it does not survive a buddy restart. Check progress any time via --status (the pomodoro block shows phase, remaining seconds, and completed cycles).
clawd-buddy --http-port 8787 # start with the webhook enabled curl -X POST localhost:8787/signal -d '{"action": "wave"}' curl -X POST localhost:8787/signal -d '{"action": "message", "text": "CI green"}' curl localhost:8787/status # same JSON as --status POST /signal accepts exactly the same JSON payloads as the TCP protocol — the webhook is a thin transport over the same dispatcher, so every action (celebrate, wave, message, pomodoro, …) works over HTTP automatically. GitHub Actions, n8n, IFTTT webhooks, or a two-line script can now make the buddy react.
Running several Claude Code sessions across workspaces, all driving the same buddy? A small one-letter badge at the front of the status pill shows which workspace last signaled — so when a wave asks for permission, you know which window to switch to.
Clawd Buddy ships with 38 themes: 8 classic colour palettes and 30 characters, princesses and animals.
Characters, which wear a costume on top of their colours:
Princesses, with a face, their hair and their gown's colour:
The character themes are fan-made tributes and aren't affiliated with or endorsed by the owners of those characters.
clawd-buddy --theme dark # default clawd-buddy --theme dracula clawd-buddy --theme sunset clawd-buddy --theme batman Switch at runtime from the Theme submenu on the system-tray icon (right-click the clawd-buddy tray icon → Theme → pick one; the characters, princesses and animals each have a submenu below the line), or from the settings window's Buddy page, which switches between the four groups. The active theme is marked.
Your choice is remembered between launches. The buddy stores the last theme in:
Passing --theme at launch overrides and updates the remembered theme, so the override sticks for next time too. First-run default is dark.
Windows notes: The process declares Per-Monitor-v2 DPI awareness at startup so the buddy positions correctly regardless of display scaling (125–200% is the Windows 11 laptop default). At high scaling the buddy renders at its native pixel size (crisp, not OS-upscaled and blurry) — use the tray Size menu (or Ctrl+2…Ctrl+7) to enlarge it if you'd like it bigger.
Linux notes: Requires an X11 session (Wayland restricts window positioning and always-on-top). Most Wayland desktops support XWayland — set SDL_VIDEODRIVER=x11 (done automatically). Panel/dock height is auto-detected via _NET_WORKAREA; falls back to 48px. When a compositing manager is running (GNOME, KDE, Xfce with compositing, picom…), the window uses a 32-bit ARGB visual, so the background is truly transparent. This sets SDL_VIDEO_X11_WINDOW_VISUALID and SDL_FRAMEBUFFER_ACCELERATION=0 automatically.
# With uv (recommended — installs as an isolated tool) uv tool install clawd-buddy # With pipx pipx install clawd-buddy # With pip (into current environment) pip install clawd-buddy From source git clone https://github.com/ramymagdy-rm/clawd-buddy.git cd clawd-buddy uv tool install --from . clawd-buddy Update # With uv uv tool install --upgrade clawd-buddy # With pipx pipx upgrade clawd-buddy # With pip pip install --upgrade clawd-buddy Quick start 1. Launch the buddy clawd-buddy The buddy appears on your taskbar, centered at the bottom of the screen. It runs until you close it.
# Enable — buddy starts automatically at login clawd-buddy --startup # Disable — remove from startup clawd-buddy --no-startup Windows: Places a VBS launcher in shell:startup. No console window appears. Linux: Creates a .desktop file in ~/.config/autostart/. 3. Wire up Claude Code hooks Add to your global Claude Code settings (~/.claude/settings.json) so every session triggers the buddy:
{ "hooks": { "UserPromptSubmit": [ { "hooks": [ { "type": "command", "command": "clawd-buddy --prompt-start", "timeout": 5000 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "clawd-buddy --send done", "timeout": 5000 } ] } ], "PermissionRequest": [ { "hooks": [ { "type": "command", "command": "clawd-buddy --wave", "timeout": 5000 } ] } ] } } Note: If you already have other hooks in your settings.json, merge the new entries into the existing hooks object.
--prompt-start does two things in one: a soft greeting on the first prompt of each Claude Code session (de-duplicated by session_id read from the hook's stdin payload), then enters the thinking animation that runs until Stop arrives. Wiring it is optional — without it, the buddy still celebrates and waves, just without the session-start and mid-response reactions.
Start a Claude Code session anywhere. When the assistant finishes or needs your attention, the buddy reacts.
clawd-buddy Start buddy on taskbar clawd-buddy --test Start with a celebration animation clawd-buddy --send MSG Signal a running buddy to celebrate clawd-buddy --wave Signal a running buddy to wave (needs attention) clawd-buddy --message TEXT Show a 3s speech bubble with TEXT above the running buddy. Pass "" to dismiss any current bubble immediately. clawd-buddy --status Print the running buddy's state as JSON (version, pid, port, mode, queue depth, theme, sound pack, bubble, last action, plus M3 comfort prefs and the M4 reminder block) and exit. Exit 1 if no buddy is listening. clawd-buddy --drank Acknowledge the water-drinking reminder (clears any active alarm + resets the timer). Exit 1 if no buddy is listening. clawd-buddy --pomodoro W/B Start a pomodoro cycle on the running buddy. W/B are minutes (1-180 each), e.g. 25/5. Celebrates at break, waves back to work, repeats until stopped. clawd-buddy --pomodoro-stop End the running buddy's pomodoro cycle. clawd-buddy --settings [P] Open the running buddy's settings window, optionally on page P (buddy, sound, reminders, focus, about). clawd-buddy --http-port N (launch flag) Also accept signals over HTTP on 127.0.0.1:N — POST /signal mirrors the TCP protocol, GET /status mirrors --status. clawd-buddy --http-token T (launch flag) Require "Authorization: Bearer T" on every HTTP request. Without a token, the HTTP quit and settings actions are rejected. clawd-buddy --workspace L Attach workspace label L to the outgoing signal (one-letter badge above the buddy when several workspaces are active). Auto-derived from the hook cwd when omitted. clawd-buddy --prompt-start Signal start of a Claude Code prompt — greets on the first prompt of a new session, then enters the thinking animation. Reads session_id from JSON on stdin when run as a hook command. clawd-buddy --session-id ID Override the session id sent with --prompt-start, --send and --wave (mostly useful for scripts / tests) clawd-buddy --top Tell a running buddy to re-assert always-on-top clawd-buddy --quit Ask a running buddy to exit cleanly clawd-buddy --theme THEME Color theme: dark (default), light, dracula, monokai, nord, gruvbox, solarized, sunset clawd-buddy --startup Enable run at login/startup clawd-buddy --no-startup Disable run at login/startup clawd-buddy --port PORT Use a custom TCP port (default: 44556) clawd-buddy --no-topmost Don't keep the window always-on-top clawd-buddy --fg Run in foreground (skip auto-detach) clawd-buddy --version Show version and exit clawd-buddy --help Show help Controls Input Action Drag Click the buddy itself and drag to reposition. It reaches the very top and sides of the screen: where the window manager stops its window, the buddy keeps sliding inside it. Clicks around the buddy go through to whatever is behind it Right-click Open the settings window Space Trigger a test celebration (sessions that are working keep thinking afterwards) Ctrl+1 Size S, 1× (default) Ctrl+2 Size M, 1.25× Ctrl+3 Size L, 1.5× Ctrl+4 Size L+, 2× Ctrl+5 Size XL, 3× Ctrl+6 Size XXL, 4× Ctrl+7 Size XXXL, 5×. Its window is taller than a 1080p screen, so it hangs off the bottom and the buddy slides up inside it to stay in view The same sizes are in the tray Size menu. The size you pick is remembered, and the buddy keeps its feet where they were when it grows or shrinks. | Escape | Quit the buddy | | Tray icon | Right-click the system tray icon for a menu — theme switcher lives here |
Claude Code Clawd Buddy ----------- ----------- hooks/UserPromptSubmit ──> clawd-buddy --prompt-start ──> TCP:44556 ──> greet (if new session) + thinking hooks/Stop ─────────────> clawd-buddy --send ─────────> TCP:44556 ──> celebrate animation hooks/PermissionRequest ──> clawd-buddy --wave ────────> TCP:44556 ──> wave animation Claude Code hooks fire shell commands when events happen (prompt submitted, response done, permission needed). The clawd-buddy --send / --wave / --prompt-start CLI connects to 127.0.0.1:44556 and sends a JSON action. The running buddy process receives the signal and plays the animation. Incoming signals during an active animation are queued (FIFO, capped at three) so attention requests are never silently dropped. Module layout src/clawd_buddy/ ├── app.py # main() orchestration ├── constants.py # window dimensions, IPC port, transparency key ├── state.py # BuddyState — animation state machine + queue ├── cli.py # argparse setup + Claude Code hook stdin reader ├── config.py # ~/.config/clawd-buddy persistence ├── history.py # ~/.clawd-buddy/history.json drinking-history store ├── ipc.py # JSON-over-TCP protocol + dispatcher + client ├── placement.py # dragging past the work-area edge (character offset) ├── webhook.py # HTTP transport over the same dispatcher (--http-port) ├── ui/ │ ├── themes.py # theme colours + character costumes │ ├── sound.py # procedural PCM sound-pack generators │ ├── drawing.py # BuddyRenderer: buddy, status pill, bubble, confetti │ ├── about.py # settings & About window + shared buddy icon │ ├── tkkit.py # antialiased tkinter widgets for that window │ ├── tray.py # pystray icon + right-click menu │ └── sni.py # Linux tray backend: StatusNotifierItem + DBusMenu over D-Bus └── platform/ ├── __init__.py # cross-platform facade ├── _windows.py # Win32 ctypes (transparency, taskbar, autostart) └── _linux.py # X11 / XDG (window props, ARGB transparency, panel detection, .desktop) Each module is independently importable and unit-tested (tests/).
The buddy listens on a TCP socket (default port 44556). Send a JSON payload to trigger actions:
{"action": "celebrate"} {"action": "wave"} {"action": "prompt_start", "session_id": "abc-123"} The prompt_start action is the wire-once handler for a Claude Code prompt: the running buddy greets when it sees a new session_id (or when none is supplied and there has been no recent activity) and starts the thinking animation either way.
celebrate, wave, thinking_start and thinking_end accept a session_id too. The buddy thinks while any session is working, and a celebrate with a session_id ends only that session. A celebrate without one ends every session (a session that never stops is dropped after 10 minutes without a signal).
{"action": "settings", "page": "focus"} opens the settings window (on a page, if given), which is what clawd-buddy --settings sends.
The status action is the only one that elicits a response — the buddy writes a JSON snapshot back on the same socket before closing:
$ clawd-buddy --status { "version": "0.1.21", "pid": 12345, "port": 44556, "mode": "idle", "queue_depth": 0, "working_sessions": 0, "last_session_id": "abc-123", "last_action": "wave", "last_action_ts": 1716595200.0, "theme": "dark", "sound_pack": "fanfare", "topmost": true, "bubble_text": "", "reduce_motion": false, "volume": 1.0, "quiet_hours": {"start": "23:00", "end": "08:00"}, "reminder": { "enabled": true, "interval_seconds": 3600, "anchor": "08:00", "sound": "water", "quiet_hours": {"start": "23:00", "end": "08:00"}, "active": false, "seconds_until_next": 1742, "cups_today": 3, "today_date": "2026-05-25", "recent_days": [ {"date": "2026-05-24", "count": 6}, {"date": "2026-05-23", "count": 5} ] }, "pomodoro": { "active": true, "phase": "work", "remaining_seconds": 912, "cycles": 2, "work_seconds": 1500, "break_seconds": 300 }, "http": { "enabled": true, "port": 8787 }, "workspace": { "label": "api", "ts": 1717680000.0, "seen_count": 2, "badge_enabled": true } } reduce_motion, volume, and quiet_hours were added in v0.1.15; the reminder block was added in v0.1.16; reminder.anchor (the daily schedule start time) was added in v0.1.18; cups_today, today_date, and recent_days (the M4.1 drinking history) in v0.1.19; the pomodoro and http blocks in v0.1.20. Both quiet_hours keys are null when their respective window is disabled; reminder.seconds_until_next is null when the reminder is off and 0 when an alarm is firing; pomodoro.remaining_seconds is null when no cycle is running. The workspace block (v0.1.21) reports null label/ts until the first labelled signal arrives.
This is the recommended "is the buddy alive?" probe — exit code 1 plus a stderr message when no buddy is listening, exit code 0 with JSON on stdout otherwise.
import socket, json s = socket.socket() s.connect(("127.0.0.1", 44556)) s.sendall(json.dumps({"action": "celebrate"}).encode()) s.close() echo '{"action": "wave"}' | nc localhost 44556 Or, with the HTTP webhook enabled (--http-port 8787), from anything that can speak HTTP — no socket code required:
curl -X POST localhost:8787/signal -d '{"action": "celebrate"}' Single instance Only one buddy can run at a time. If you launch clawd-buddy while one is already running (from a terminal, the dock or the app grid), it opens the running buddy's settings window and exits.
On Linux the buddy installs a launcher for itself each time it starts: ~/.local/share/applications/clawd-buddy.desktop, with a 256 px buddy icon in ~/.local/share/icons/hicolor/256x256/apps/clawd-buddy.png. Its windows are named clawd-buddy, so the dock shows Clawd Buddy with the buddy icon (not "app.py" with a generic one), and you can find it in Activities / the app grid.
The buddy adds a system tray icon with a right-click menu:
On Linux the menu is drawn by your panel itself (GNOME, KDE, Xfce, Cinnamon…) from a StatusNotifierItem the buddy publishes on D-Bus, so it looks like every other tray menu. Clicking the icon with either button opens it. On stock GNOME this needs the AppIndicator and KStatusNotifierItem Support extension (Ubuntu ships it enabled).
clawd-buddy --startup registers the buddy to launch at login. clawd-buddy --no-startup removes it.
The buddy is a little terminal with a face on its screen: glowing pill eyes, blush, nub arms and feet. Switching between states crossfades the pose over about 0.2 s instead of snapping, and a status pill slides in above its head.
Reactions are queued while another animation is playing — up to three pending events play back in the order they arrived.
--message is the generic display surface — a script, CI job, or any other tool can use it to tell you something without writing its own notification UI:
clawd-buddy --message "tests green" clawd-buddy --message "deploy starting…" clawd-buddy --message "" # dismiss any current bubble Configuration Custom port If port 44556 is taken, use a different one:
clawd-buddy --port 55000 Update your hooks to match:
"command": "clawd-buddy --send done --port 55000" Disable always-on-top clawd-buddy --no-topmost Troubleshooting Buddy doesn't appear Windows: Make sure no other process is using port 44556: netstat -ano | findstr 44556 Linux: Requires an X11 session. If you're on Wayland, the buddy forces SDL_VIDEODRIVER=x11 via XWayland. If it still doesn't appear, try clawd-buddy --fg to see errors in the terminal. macOS: Not yet supported. Windows: sound plays but the buddy is invisible Fixed in 0.1.22. On earlier versions, a display scaled to 125–200% (the Windows 11 laptop default) could push the buddy off the bottom of the screen — the process was alive and played its sound, but the window was nowhere to be seen, and --top couldn't recover it. Upgrade with uv tool upgrade clawd-buddy (or pipx upgrade clawd-buddy / pip install -U clawd-buddy), then restart the buddy. On launch with --fg you should see a [buddy] DPI awareness: per-monitor-v2 line confirming the fix is active.
If that line is missing, the buddy fell back to the themed background:
Fixed in 0.1.24. On Linux, pystray can only show a menu through PyGObject (gi), which isn't available in a uv tool / pipx / pip install. It silently fell back to a bare X11 tray icon with no menu at all. The buddy now publishes its tray icon as a StatusNotifierItem over D-Bus (pure Python, via jeepney), and the panel draws the full menu natively. Upgrade (uv tool upgrade clawd-buddy), then restart the buddy. With --fg you should see [buddy] Tray: StatusNotifierItem (D-Bus menu).
If you see no StatusNotifierItem host found instead, nothing on your desktop hosts StatusNotifierItem icons:
Without a tray menu you can still reach every setting: right-click the buddy, or run clawd-buddy --settings.
Clawd Buddy is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic, PBC.
animation buddy clawd coding-assistant pet taskbar
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




