Skip to main content
Back to Blog

Claude Code Has a Hidden Virtual Pet System: Customize Your Legendary Shiny Dragon in 5 Minutes

Introduction

โ€œWait โ€” Claude Code has a virtual pet hidden inside the terminal?โ€

Recently, Anthropicโ€™s Claude Code source code was accidentally leaked, and 510,000 lines of code were thoroughly scrutinized by the community. What they found was a complete virtual pet system codenamed โ€œBUDDYโ€ โ€” and it blew up in the tech world. Anthropic leaned into it and officially launched the feature in version 2.1.89. Type /buddy, and the system generates a unique pet based on your user ID hash โ€” a companion that stays with you while you write code, debug, and pull late-night deployments.

But hereโ€™s the catch: your pet is entirely determined by the hash. Whether you get a dragon or a duck is pure luck.

Legendary drops at only 1%, Shiny at 1% too. A โœจ Shiny Legendary Dragon? The combined probability is 0.01% โ€” worse than gacha.

Thankfully, the open-source community stepped in. Developer fengshao1227 created cc-buddy, a tool that lets you customize everything about your pet with a single command โ€” species, rarity, hat, stats, all under your control.

This article walks you through installation to full customization in 5 minutes.


1. What is Claude Code Buddy?

On April 1, 2026, Anthropic launched a hidden virtual pet system inside the Claude Code CLI. Type /buddy in your terminal, and a unique pet companion hatches just for you.

Itโ€™s not just decoration โ€” the pet appears next to your terminal input, occasionally popping up hearts, yawns, and reactions, keeping you company through every late-night debug session.

The pet attribute system includes:

  • 18 species: From common ducks and cats, to epic dragons and octopuses, to the legendary Nebulynx
  • 5 rarity tiers: Common โ†’ Uncommon โ†’ Rare โ†’ Epic โ†’ Legendary
  • 6 eye styles: ยท โœฆ ร— โ—‰ @ ยฐ
  • 8 hats: Crown, top hat, propeller hat, halo, wizard hat, and more
  • Shiny: A 1% chance special variant that sparkles
  • 5 RPG stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK

But all of this was originally determined by your UserID hash. You get what you get โ€” want something different? Better hope a fresh install rolls better.

Until cc-buddy came along.


2. One-Command Install

cc-buddy is a Node.js tool. No global install needed โ€” just run it with npx.

Prerequisites:

  • Node.js installed (v18+ recommended)
  • Claude Code installed globally via npm (npm i -g @anthropic-ai/claude-code)

Run:

npx cc-buddy

Youโ€™ll see an interactive menu like this:

๐ŸŽฐ Claude Buddy Pet Recaster v2.3.0
Runtime: Node.js (wyhash fallback) | Hash: FNV-1a (npm install)

What would you like to do?

  [1] ๐Ÿ”  Search Pet
  [2] ๐Ÿ‘€  View Current Pet
  [3] โœ๏ธ   Custom Name/Personality
  [4] ๐Ÿ”“  Full Customization (patch cli.js)
  [5] ๐Ÿ“‹  Species Encyclopedia
  [6] ๐Ÿงช  Self-check Hash
  [7] ๐ŸŒ  Switch Language
  [8] ๐Ÿ‘‹  Exit

Straightforward. Letโ€™s walk through it step by step.


3. View Your Current Pet

Select [2] View Current Pet to see what the system generated for you:

๐Ÿ” Current Pet:

๐Ÿ‰ DRAGON
โ˜…โ˜…โ˜…โ˜…โ˜… legendary โœจ SHINY!
Eyes: ร—  |  Hat: ๐Ÿ‘‘ crown

DEBUGGING  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100
PATIENCE   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 54
CHAOS      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 49
WISDOM     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 57
SNARK      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘ 77

If youโ€™re lucky, you might already have a Legendary Dragon. Most people end up with a common Pebblecrab or Mossfrog.

Want to customize? Next step.


4. Full Pet Customization (Core Feature)

This is cc-buddyโ€™s most powerful feature โ€” option [4] Full Customization (patch cli.js).

It modifies Claude Codeโ€™s cli.js so your custom configuration overrides the default hash-derived values.

Step 1: Confirm Patch

โš  Only supports npm global install (npm i -g @anthropic-ai/claude-code).
Not compatible with native binary install (cli.anthropic.com).

Confirm patch? [Y/n]: y

Type y to confirm. cc-buddy automatically backs up the original file (cli.js.original), so you can restore anytime.

Step 2: Unlock Bubble Reactions

Unlock pet bubble reactions? (Required for users with telemetry disabled) [y/N]: y
โœ“ Bubble reactions unlocked!

Users with telemetry disabled must apply this patch, or the pet wonโ€™t show reactions.

Step 3: Unlock /buddy Command

Enable /buddy for third-party API users? [y/N]: y
โœ“ /buddy unlocked for all users!

If youโ€™re using Bedrock, Vertex, or a custom API endpoint, this step enables /buddy for you too.

Step 4: Choose Species

Species (Enter to keep current):

  [1] ๐Ÿฆ†  duck      [7] ๐Ÿฆ‰  owl       [13] ๐Ÿฆซ  capybara
  [2] ๐Ÿชฟ  goose     [8] ๐Ÿง  penguin   [14] ๐ŸŒต  cactus
  [3] ๐Ÿซง  blob      [9] ๐Ÿข  turtle    [15] ๐Ÿค–  robot
  [4] ๐Ÿฑ  cat       [10] ๐ŸŒ  snail    [16] ๐Ÿฐ  rabbit
  [5] ๐Ÿ‰  dragon    [11] ๐Ÿ‘ป  ghost    [17] ๐Ÿ„  mushroom
  [6] ๐Ÿ™  octopus   [12] ๐ŸฆŽ  axolotl  [18] ๐Ÿˆ  chonk

18 species to choose from. Want a dragon? Pick [5]. Want a giant chubby cat? Go for [18] chonk.

Step 5: Choose Rarity

  [1] โ˜… common       [4] โ˜…โ˜…โ˜…โ˜… epic
  [2] โ˜…โ˜… uncommon    [5] โ˜…โ˜…โ˜…โ˜…โ˜… legendary
  [3] โ˜…โ˜…โ˜… rare

No-brainer โ€” pick [5] for Legendary.

Step 6: Choose Eyes and Hat

Eyes: [1] ยท  [2] โœฆ  [3] ร—  [4] โ—‰  [5] @  [6] ยฐ
Hat:  [1] โ€”  [2] ๐Ÿ‘‘  [3] ๐ŸŽฉ  [4] ๐Ÿงข  [5] ๐Ÿ˜‡  [6] ๐Ÿง™  [7] โ›‘  [8] ๐Ÿค

Pick your combo. Bright eyes โœฆ + Crown ๐Ÿ‘‘ is a classic.

Step 7: Set Shiny and Stats

Shiny? [y/N]: y
DEBUGGING [?]: 100
PATIENCE  [?]: 100
CHAOS     [?]: 100
WISDOM    [?]: 100
SNARK     [?]: 100

Max everything โ€” all five stats at 100. Build the ultimate hexagonal warrior.

Step 8: Name and Personality

โœ๏ธ Give it a name: fish
โœ๏ธ Write a personality description: A highly disciplined coding agent focused on execution

Give it a name with personality and a motto to match.

Final Confirmation

โœ“ Custom pet written! Restart Claude Code โ†’ /buddy

{"rarity":"legendary","eyes":"โœฆ","hat":"crown","shiny":true,
 "stats":{"DEBUGGING":100,"PATIENCE":100,"CHAOS":100,"WISDOM":100,"SNARK":100},
 "name":"fish"}

Restart Claude Code, type /buddy, and your custom pet appears.


5. FAQ

Q: How to restore after patching?

cc-buddy automatically creates a backup cli.js.original. Restore with one command:

cp /Users/gfish/.nvm/versions/node/v24.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js.original /Users/gfish/.nvm/versions/node/v24.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js

Q: Does it work with native binary installs?

No. cc-buddyโ€™s patch feature only supports npm global installs. If you installed from cli.anthropic.com, switch to npm first.

Q: Will the pet affect Claude Code functionality?

Not at all. The Buddy system is an independent frontend display layer โ€” it doesnโ€™t affect code generation, conversations, tool calls, or any core features.

Q: Will it break after Claude Code updates?

npm updates to Claude Code will overwrite cli.js, so youโ€™ll need to re-run npx cc-buddy. The good news is cc-buddy remembers your configuration, so re-patching is quick.


6. Summary

Claude Codeโ€™s Buddy system is a delightful surprise from Anthropic โ€” a virtual pet in your cold terminal that adds warmth to your coding sessions.

And cc-buddy takes this surprise to the next level:

  • 18 species to choose from โ€” dragons, ghosts, mushroomsโ€ฆ whatever you want
  • 5 rarity tiers โ€” Legendary is no longer a dream
  • Shiny effects, eyes, hats, stats โ€” fully customizable
  • Third-party API support โ€” unlock /buddy for all users
  • One-click restore โ€” revert to original anytime

One command npx cc-buddy, 5 minutes done. Give your Claude Code the coolest companion possible.

References

cc-buddy Open Source Project (by fengshao1227): https://github.com/fengshao1227/cc-buddy

Original Post on Linux.do: https://linux.do/t/topic/1874318

Claude Code Buddy Complete Guide (18 Species + 5 Rarity Tiers): https://help.apiyi.com/claude-code-buddy-terminal-pet-companion-activation-guide.html

ClaudeFa.st Buddy Mechanics Deep Dive: https://claudefa.st/blog/guide/mechanics/claude-buddy