claude-buddy-forge
v1.0.7
Published
Interactive Claude Code buddy reroll CLI with bundled ASCII previews
Maintainers
Readme
Claude Buddy Forge 🔨
Interactive CLI to customize your Claude Code companion buddy with animated ASCII art previews.
What is Claude Buddy?
When you use Claude Code, a small ASCII art companion sits beside your input box — that's your buddy. Each buddy is randomly generated based on your account ID and a salt value, determining its species, rarity, eyes, hat, and whether it's shiny.
Claude Buddy Forge lets you take control: browse all 18 species, pick your exact combination, and patch your local Claude launcher to get the buddy you actually want.
/^\ /^\ (\__/) /\_/\
< ◉ ◉ > ( ✦ ✦ ) ( ✦ ✦)
( ~~ ) =( .. )= ( ω )
`-vvvv-´ (")__(") (")_(")
★★★★★ LEGENDARY ★★★★ EPIC ★★★ RAREQuick Install
# Just run it (no install needed)
npx claude-buddy-forge
# Or install globally
npm install -g claude-buddy-forge
# Or one-liner install
curl -fsSL https://raw.githubusercontent.com/dwkim0101/claude-buddy-forge/main/install.sh | shPreview
Title Screen
╔══════════════════════════════════════════════════╗
║ ║
║ ✦ C L A U D E B U D D Y F O R G E ✦ ║
║ ║
║ Interactive Companion Reroller ║
║ ║
╚══════════════════════════════════════════════════╝
✦ Press Enter to start ✦
18 species • 6 eyes • 8 hats • 5 raritiesMode Selection
⚡ Choose Your Mode ⚡
╔════════════════════════════╗ ╭────────────────────────────╮
║ ⭐ ULTRA PRESET ⭐ ║ │ 🎨 CUSTOM BUILD 🎨 │
║ ║ │ │
║ /^\ /^\ ║ │ /\_/\ │
║ < ◉ ◉ > ║ │ ( ✦ ✦) │
║ ( ~~ ) ║ │ ( ω ) │
║ `-vvvv-´ ║ │ (")_(") │
║ ║ │ │
║ Legendary + Shiny ║ │ Choose everything │
║ Dragon + Tinyduck ║ │ Your way │
╚════════════════════════════╝ ╰────────────────────────────╯
← → Navigate │ Enter Select │ Esc BackSpecies Grid (Animated!)
✦ Choose Your Species ✦
Rarity: legendary │ 18 species available
╔══════════════════╗ ╭──────────────────╮ ╭──────────────────╮
║ __ ║ │ (·> │ │ .----. │
║ <(◉ )___ ║ │ || │ │ ( · · ) │
║ ( ._> ║ │ _(__)_ │ │ ( ) │
║ `--´ ║ │ ^^^^ │ │ `----´ │
║ ▸DUCK ║ │ goose │ │ blob │
╚══════════════════╝ ╰──────────────────╯ ╰──────────────────╯
╭──────────────────╮ ╭──────────────────╮ ╭──────────────────╮
│ /\_/\ │ │ /^\ /^\ │ │ .----. │
│ ( · ·) │ │ < · · > │ │ ( · · ) │
│ ( ω ) │ │ ( ~~ ) │ │ (______) │
│ (")_(") │ │ `-vvvv-´ │ │ /\/\/\/\ │
│ cat │ │ dragon │ │ octopus │
╰──────────────────╯ ╰──────────────────╯ ╰──────────────────╯
...and 12 more
↑ ↓ ← → Navigate │ Enter Select │ Esc BackFinal Preview
⚡ Final Preview ⚡
╔═══════════════════════════════════════════════════╗
║ ║
║ ,> Rarity: LEGENDARY ★★★★★ ║
║ /^\ /^\ Species: dragon ║
║ < ◉ ◉ > Eyes: ◉ ║
║ ( ~~ ) Hat: tinyduck ║
║ `-vvvv-´ Shiny: ✨ YES ║
║ ║
║ ✨ DRAGON ✨ ─── Stats Preview ─── ║
║ DEBUGGING ████████████░░░░ 65 ║
║ PATIENCE ██████████░░░░░░ 50 ║
║ CHAOS ██████████████░░ 72 ║
║ WISDOM ██████████░░░░░░ 50 ║
║ SNARK ████████░░░░░░░░ 42 ║
║ ║
║ Probability: ~1 in 864,000 ║
╚═══════════════════════════════════════════════════╝
⏎ Press Enter to search & patchAuthentication & Login
Claude Buddy Forge automatically detects your Claude account using both methods:
- OAuth login — reads
oauthAccount.accountUuidfrom your Claude config - Legacy login — reads
userIDas fallback
The tool searches both ~/.claude.json and ~/.claude/.config.json.
⚠️ Important: You must log in to Claude Code at least once before using this tool. If no account is detected, you'll see an error asking you to run
claudeand complete login first.
Features
- 18 species with animated ASCII art (3 frames each)
- Interactive grid catalog with real-time animation
- 5 rarities: common (60%), uncommon (25%), rare (10%), epic (4%), legendary (1%)
- 6 eye styles: · ✦ × ◉ @ °
- 8 hat options: none, crown, tophat, propeller, halo, wizard, beanie, tinyduck
- Shiny variants with sparkle effects (1% chance per roll)
- Ultra preset: legendary shiny dragon + tinyduck hat
- Arrow key navigation with visual previews
- Automatic backup and restore
What It Needs
- Node.js 18+
- Bun runtime (strongly recommended — Claude Code uses
Bun.hash()internally; without Bun the forge produces wrong buddy results) - Claude Code 2.1.89+ (the buddy companion system was introduced in this version)
- Claude Code logged in at least once
- Permission to edit your local Claude launcher and
~/.claude.json
⚠️ Before You Start
- Quit Claude Code completely before running this tool. The launcher file must not be in use while patching.
- Run
claude-buddy-forgein a regular terminal (not inside Claude Code's terminal). - After patching, restart Claude Code.
- Run
/buddyinside Claude Code — your chosen buddy will now appear and stay locked in. - If a Claude Code update resets your buddy, just run the tool again — your preferences are quick to re-apply.
- The tool automatically creates a backup of your launcher on first patch. You can always restore with
claude-buddy-forge restore.
Commands
claude-buddy-forge guided # Interactive flow with animated previews (default)
claude-buddy-forge catalog # Browse all species in a grid
claude-buddy-forge current # Show your current buddy
claude-buddy-forge apply --rarity legendary --shiny --species dragon --eye "◉" --hat tinyduck
claude-buddy-forge restore # Restore original buddyGuided Flow
- Animated title banner
- Choose Ultra preset or Custom build
- Pick rarity with probability display
- Toggle shiny mode with visual comparison
- Browse all 18 species in an animated grid
- Preview each eye style on your chosen species
- Try on different hats
- Final preview with stats and probability
- Search for a matching salt and patch the launcher
Restore
The first successful patch creates a stable backup:
<launcher>.buddy-orig.bakRestore with:
claude-buddy-forge restoreSpecies Catalog
1. duck 5. dragon 9. turtle 13. capybara 17. mushroom
2. goose 6. octopus 10. snail 14. cactus 18. chonk
3. blob 7. owl 11. ghost 15. robot
4. cat 8. penguin 12. axolotl 16. rabbitHow It Works
Claude Code is a Bun-based binary that uses Bun.hash() (wyhash) to generate buddy characteristics from your account ID + salt. The forge:
- Searches for a salt that produces your desired buddy combination
- Patches the salt directly in the binary (byte-level, preserving file size)
- Re-signs the binary with an ad-hoc code signature (macOS)
- Backs up the original on first run, and restores from backup before re-patching
The forge automatically re-executes under Bun to ensure hash compatibility. If Bun is not installed, buddy results will not match what Claude Code displays.
Notes
- This is not an official Claude Code workflow.
- It patches your local launcher, so Claude updates may overwrite it.
- After patching, fully restart Claude Code.
- The tool is self-contained — no external data files needed.
- You can re-forge as many times as you want — the backup is always preserved.
🇰🇷 한국어 가이드
Claude Code를 사용할 때 입력창 옆에 작은 ASCII 아트 캐릭터가 있습니다 — 이것이 **버디(buddy)**입니다. 각 버디는 계정 ID와 솔트 값으로 랜덤 생성되어 종, 레어리티, 눈, 모자, 샤이니 여부가 결정됩니다.
Claude Buddy Forge는 18종의 캐릭터를 미리 보고, 원하는 조합을 선택해서 로컬 Claude 런처를 패치하는 인터랙티브 CLI 도구입니다.
빠른 설치
# 설치 없이 바로 실행
npx claude-buddy-forge
# 글로벌 설치
npm install -g claude-buddy-forge
# 원라이너 설치
curl -fsSL https://raw.githubusercontent.com/dwkim0101/claude-buddy-forge/main/install.sh | sh인증 & 로그인
이 도구는 Claude 계정을 자동으로 탐지합니다:
- OAuth 로그인 —
oauthAccount.accountUuid사용 - 레거시 로그인 —
userID사용 (폴백)
~/.claude.json과 ~/.claude/.config.json 모두 탐색합니다.
⚠️ 중요: 이 도구를 사용하기 전에 Claude Code에 최소 한 번은 로그인해야 합니다. 계정이 감지되지 않으면
claude명령어로 로그인을 완료하라는 안내가 표시됩니다.
주요 기능
- 18종 캐릭터를 애니메이션 그리드로 미리보기
- 5단계 레어리티: common (60%), uncommon (25%), rare (10%), epic (4%), legendary (1%)
- 6종류 눈: · ✦ × ◉ @ °
- 8종류 모자: none, crown, tophat, propeller, halo, wizard, beanie, tinyduck
- 샤이니 변형 — 반짝이 효과 (확률 1%)
- 울트라 프리셋 — 전설급 샤이니 드래곤 + 작은오리 모자
- 화살표 키 탐색, 실시간 미리보기
- 자동 백업 및 복원
필요 조건
- Node.js 18 이상
- Bun 런타임 (강력 권장 — Claude Code가 내부적으로
Bun.hash()를 사용하므로, Bun 없이는 잘못된 버디가 생성됩니다) - Claude Code 2.1.89 이상 (버디 컴패니언 시스템이 이 버전에서 도입되었습니다)
- Claude Code 최소 1회 로그인 완료
- Claude launcher 및
~/.claude.json편집 권한
⚠️ 사용 전 확인사항
- 이 도구를 실행하기 전에 Claude Code를 완전히 종료하세요. 패치 중에 런처 파일이 사용 중이면 안 됩니다.
- 일반 터미널에서 실행하세요 (Claude Code 내부 터미널이 아닌).
- 패치 후 Claude Code를 재시작하세요.
- Claude Code에서
/buddy를 실행하면 — 선택한 버디가 나타나고 고정됩니다. - Claude Code 업데이트로 버디가 초기화되면, 다시 실행하면 됩니다 — 금방 다시 적용할 수 있습니다.
- 첫 패치 시 런처 백업이 자동 생성됩니다. 언제든
claude-buddy-forge restore로 복원 가능합니다.
명령어
claude-buddy-forge guided # 인터랙티브 가이드 모드 (기본)
claude-buddy-forge catalog # 전체 종 그리드 보기
claude-buddy-forge current # 현재 버디 확인
claude-buddy-forge apply --rarity legendary --shiny --species dragon --eye "◉" --hat tinyduck
claude-buddy-forge restore # 원래 버디로 복원가이드 플로우
- 애니메이션 타이틀 배너
- 울트라 프리셋 또는 커스텀 빌드 선택
- 레어리티 선택 (확률 표시)
- 샤이니 모드 토글 (시각적 비교)
- 18종 캐릭터를 애니메이션 그리드에서 선택
- 눈 스타일 미리보기 및 선택
- 모자 미리보기 및 선택
- 최종 프리뷰 (스탯 + 확률)
- 매칭 솔트 검색 후 런처 패치
복원
첫 패치 시 안정 백업이 자동 생성됩니다:
<launcher>.buddy-orig.bak복원:
claude-buddy-forge restore작동 원리
Claude Code는 Bun 기반 바이너리로, Bun.hash() (wyhash)를 사용하여 계정 ID + salt로 버디 특성을 생성합니다. Forge는:
- 원하는 버디 조합을 생성하는 salt를 검색
- 바이너리에 salt를 직접 패치 (바이트 수준, 파일 크기 유지)
- macOS에서 ad-hoc 코드 서명으로 재서명
- 첫 실행 시 원본을 백업하고, 재패치 전에 항상 백업에서 복원
Forge는 해시 호환성을 위해 자동으로 Bun 아래에서 재실행됩니다. Bun이 설치되어 있지 않으면 버디 결과가 Claude Code에 표시되는 것과 일치하지 않습니다.
주의사항
- 이 도구는 공식 Claude Code 워크플로우가 아닙니다.
- 로컬 런처를 패치하므로 Claude 업데이트 시 덮어쓸 수 있습니다.
- 패치 후 Claude Code를 완전히 재시작해야 합니다.
- 외부 데이터 파일 없이 자체 포함된 도구입니다.
- 원하는 만큼 재forge 가능 — 백업은 항상 보존됩니다.
