Claude Code's /buddy command hatches a companion pet that lives beside your input box. Each pet has a species, rarity, eyes, hat, personality, and five stats (Debugging, Patience, Chaos, Wisdom, Snark). It's a small easter egg that adds character to your terminal sessions.
The catch: your buddy is deterministically assigned based on your account ID and a fixed salt string baked into the binary. There's no official way to reroll or swap — you get what you get.
This tool lets you preview every possible buddy for your account and choose one you actually like. It works by finding a replacement salt that produces your desired pet, then patching the single string in the Claude Code binary. No logic is changed — only the 15-character seed that determines your pet's traits.
Verified on Claude Code v2.1.90 (April 2026). The buddy system uses FNV-1a hashing with the 18 original species. Salt is a single occurrence in the binary (earlier versions had 3).
Run the command at the top of this page and paste the result into the User ID field.
Click any card above — patch command appears at the bottom — click the copy icon.
Creates a backup (.buddy-bak), replaces the salt, re-signs on macOS.
Copy the rename command. Replace NEW_NAME with your preferred name.
Claude Code restores the original binary on every launch. To keep your buddy, add an auto-patch line to your shell config (~/.zshrc or ~/.bashrc). Replace YOUR_SALT with the salt from Step 1:
Open a new terminal tab (so the shell config runs), then start Claude Code.
Or reinstall: npm install -g @anthropic-ai/claude-code