0%
#guide#reroll#legendary#shiny#strategy

How to Reroll Your Claude Buddy — Strategies for Hunting Legendary & Shiny Pets

Published 2026-04-108 min read

[01]Why Rerolling Matters

You typed /buddy, watched the ASCII egg crack open, and got… a Common Duck. No hat. No sparkle. SNARK 7. Meanwhile, your coworker is showing off a Legendary Shiny Dragon with a wizard hat and stats in the 80s.

come to the buddy lottery. With only a 1% chance for Legendary and another 1% chance for Shiny, the odds of getting both on a single roll are 1 in 10,000. But here's the thing: the buddy system is deterministic, not random. Your buddy is computed from your identity string using a fixed algorithm. That means if you understand the math, you can work the system.

s guide covers everything: the exact probabilities, what "rerolling" actually means, brute-force strategies that work, and the myths you should ignore.

[02]The Algorithm in 30 Seconds

Before we talk strategy, you need to understand how your buddy is generated. The entire process is a deterministic pipeline:

    ur input string (UUID, userID, or any text) is concatenated with the salt friend-2026-401 e combined string is hashed using FNV-1a to produce a 32-bit integer at integer seeds a Mulberry32 PRNG (pseudo-random number generator) e PRNG sequentially determines: Rarity → Species → Eyes → Hat → Shiny → 5 Stats
critical insight: same input = same buddy, every time. There's no server-side randomness, no time-based seed, no hidden entropy. If you change the input, you change the buddy. That's the entire basis of rerolling.

a deeper dive into FNV-1a and Mulberry32, see our algorithm deep dive.

[03]The Rarity Math You Need to Know

The rarity roll is the first thing the PRNG decides. Here are the exact weights:

> h>RarityWeightProbabilityStat FloorExpected Rolls d>Common6060%5~2 d>Uncommon2525%154 d>Rare1010%2510 d>Epic44%3525 d>Legendary11%50100 e> pected Rolls" means: on average, how many different inputs do you need to try before hitting that rarity? For Legendary, it's 100 tries. That's very achievable with a script.

what if you want a specific Legendary? Since there are 18 species and species is rolled independently after rarity, the odds of getting a specific Legendary species are 1/100 × 1/18 = 1 in 1,800. Still doable.

add Shiny (1% chance, rolled after hat): a Legendary Shiny of any species is 1 in 10,000. A Legendary Shiny of a specific species is 1 in 180,000. That's where brute-force scripts become essential.

[04]Method 1: The Buddy Checker (Quick & Easy)

The simplest way to "reroll" is to use our Buddy Checker tool. Here's the key insight most people miss:

rong>The checker accepts any string, not just real UUIDs.

typing your name, your pet's name, a random phrase, or just mashing the keyboard. Each unique string produces a unique buddy. You can manually explore dozens of inputs in a few minutes.

ick Exploration Strategy systematic variations of a base string:

code>myname-001 -002 -003 ... -100 100 tries, you have a ~63% chance of seeing at least one Legendary (1 - 0.99^100). In 200 tries, that jumps to ~87%. In 460 tries, you're at 99%.

rong>Limitation: This only shows you what buddy a given string would produce. Your actual Claude Code buddy is tied to your accountUuid — you can't change it by typing a different string into the checker.

[05]Method 2: Brute-Force Scripts

For serious hunters, the community has built brute-force tools that automate the search. The approach is simple: generate thousands of input strings, run each through the buddy algorithm, and filter for your desired criteria.

w It Works buddy generation algorithm is lightweight — a single call takes microseconds. A simple script can test 1 million inputs in under 10 seconds on modern hardware. Here's the basic logic:

code>for i in range(1_000_000): put_str = f"hunt-{i}" ddy = rollBuddy(input_str) buddy.rarity == "legendary" and buddy.shiny: print(f"Found: {input_str} → {buddy.species}") h 1 million trials, you'll find approximately:

> h>TargetExpected Hits d>Any Legendary~10,000 d>Specific Legendary species~556 d>Any Legendary Shiny~100 d>Specific Legendary Shiny species~6 e> community has published open-source reroll scripts on GitHub. These tools let you specify your desired species, rarity, and cosmetics, then search until a match is found.

rong>Important caveat: These scripts find input strings that produce your dream buddy. They don't change your actual Claude Code buddy, which is permanently tied to your account identity.

[06]The accountUuid Trap (Team/Pro Users)

This is the most common pitfall in the community, and it trips up almost everyone on a Team or Pro plan.

ude Code uses two identity fields stored in ~/.claude.json:

> h>FieldDescriptionWho Has It d>userIDTop-level user identifierAll users d>accountUuidOAuth account UUID (inside oauthAccount)Team/Pro users e> e's the trap: if accountUuid exists, it overrides userID as the seed for buddy generation. This means:

    ee-tier users: buddy is seeded from userID am/Pro users: buddy is seeded from accountUuid
y community "reroll hacks" suggest modifying your userID in the config file. This works for free-tier users but does nothing for Team/Pro users because accountUuid takes priority. If you're on a paid plan, the only way to get a different buddy is to use a different Anthropic account.

check which field your buddy actually uses, run:

code>cat ~/.claude.json | python3 -c " json, sys on.load(sys.stdin) d.get('oauthAccount', {}).get('accountUuid') d.get('userID') f'accountUuid: {acct}') f'userID: {uid}') f'Buddy seed: {acct or uid}') e>

[07]Myth vs. Reality: Community Hacks Debunked

The buddy community is full of creative "hacks." Let's separate what works from what doesn't:

> h>ClaimVerdictExplanation d>"Delete ~/.claude.json to reroll"Partially trueDeleting the file forces re-authentication, which may assign a new userID. But accountUuid is tied to your Anthropic account and won't change. d>"Edit userID in the config"Works (free tier only)Changing userID changes your buddy seed — but only if you don't have an accountUuid that overrides it. d>"Use a VPN to get a different buddy"FalseIP address has zero effect on buddy generation. The algorithm is purely based on your identity string + salt. d>"Time of day affects rarity"FalseThere is no time-based component in the algorithm. Same input = same buddy at any time. d>"Certain UUID patterns give better odds"FalseFNV-1a distributes hashes uniformly. No input pattern has a statistical advantage. d>"Create a new Anthropic account"TrueA new account means a new accountUuid, which means a genuinely different buddy. This is the only guaranteed reroll method. e>

[08]The Optimal Hunting Strategy

Based on the math and community experience, here's the most efficient approach depending on your goal:

al: See Cool Buddies (Explorer) the Buddy Checker with random strings. Try 50–100 inputs and you'll see a nice spread of species and rarities. Screenshot your favorites and share them with #ClaudeBuddy.

al: Find a Specific Dream Buddy (Collector) a brute-force script. Define your criteria (species + rarity + optional shiny/hat), run 100K–1M iterations, and collect all matching input strings. Time required: under 30 seconds.

al: Actually Change Your Claude Code Buddy (Reroller) s is the hard part. Your options depend on your account type:

    trong>Free tier: Back up ~/.claude.json, modify the userID field to a string that produces your desired buddy (found via brute-force), and restart Claude Code. trong>Team/Pro: Your buddy is locked to accountUuid. The only option is a different Anthropic account. Consider whether a different buddy is worth the hassle.
al: Legendary Shiny of a Specific Species (Whale) a brute-force script with 10M+ iterations. At 1 in 180,000 odds, you'll need patience — but the script will find matches. Then follow the reroller steps above to apply it.

[09]Expected Value Calculator

Use this quick reference to estimate how many rolls you need for any target:

> h>TargetProbability50% Chance After90% Chance After99% Chance After d>Any Legendary1%69 rolls229 rolls459 rolls d>Specific Legendary species0.056%1,247 rolls4,142 rolls8,283 rolls d>Any Shiny1%69 rolls229 rolls459 rolls d>Any Legendary Shiny0.01%6,931 rolls23,026 rolls46,050 rolls d>Specific Legendary Shiny0.00056%124,766 rolls414,558 rolls828,660 rolls e> "50% Chance After" column uses the formula: n = ln(0.5) / ln(1 - p). This tells you the number of trials needed for a coin-flip chance of success. The 90% and 99% columns use ln(0.1) and ln(0.01) respectively.

a deeper statistical analysis with 10,000 Monte Carlo simulations, see our Probability Lab article.

[10]Final Thoughts: Embrace the Roll

Here's an unpopular opinion: your first buddy is your real buddy. The one tied to your actual account, generated from your real identity — that's the companion the algorithm chose for you.

olling is fun as an intellectual exercise. The math is satisfying, the brute-force scripts are a neat hack, and exploring the possibility space is genuinely entertaining. But there's something to be said for the buddy you got honestly.

ommon Duck with SNARK 74 has more character than a brute-forced Legendary Dragon. Your coworkers will know. You'll know.

tever you decide, check your buddy on our Buddy Checker, explore the full species catalog, and share your results with the community. Happy hunting!

// COMMENTS

github_discussions.sh

Sign in with GitHub to leave a comment.

Ready to find your buddy?

CHECK YOUR BUDDY

Built by the community. Not affiliated with Anthropic.

All computation is local. No data is collected or transmitted.

> EOF