Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

any-buddy

npm CI License: WTFPL Node version

Pick any Claude Code companion pet you want. Choose your species, rarity, eyes, hat, and name.


Quick Start

npx any-buddy@latest

That's it. If Bun is installed, you get the full interactive builder with live preview. Otherwise you'll see sequential prompts with a note to install Bun.

Interactive Builder

The builder lets you browse species, eyes, rarity, hats, and stats with a live ASCII art preview that updates as you scroll. Navigate with arrow keys, Tab/Enter to advance, Esc to cancel.

Install

# npm (global) npm install -g any-buddy # or clone git clone https://github.com/cpaczek/any-buddy.git cd any-buddy && pnpm install && pnpm link --global

Requirements

  • Node.js >= 20
  • Bun -- for the interactive builder TUI and correct hash computation (typically already installed with Claude Code). Without Bun, the tool falls back to basic sequential prompts.
  • Claude Code -- installed via any standard method

Platform Support

PlatformStatusNotes
LinuxTestedAuto-detects ~/.local/share/claude/versions/
macOSTestedAuto-detects + ad-hoc re-signs after patching
WindowsTestedWorks with npm-based installs (cli.js)

Set CLAUDE_BINARY=/path/to/binary if auto-detection fails.

Usage

any-buddy # Start screen — build, browse presets, or switch buddies

The start screen lets you pick between:

  • Build your own — full interactive builder with live ASCII preview
  • Browse presets — 23 curated themed builds with animated preview
  • Saved buddies — switch between your saved pets (shown when you have saves)

After picking your pet, the entire flow stays in the TUI — salt search with progress bar, naming, personality, patching, and hook setup.

any-buddy current # Show your current pet any-buddy preview # Browse without applying any-buddy apply # Re-apply after Claude Code update any-buddy restore # Restore original pet any-buddy buddies # Browse and switch between your buddies any-buddy rehatch # Delete companion, re-hatch via /buddy

Non-Interactive Mode

Skip prompts with flags (bypasses the start screen):

any-buddy -s dragon -r legendary -e '✦' -t wizard --shiny --name Draco -y any-buddy --preset "Arcane Dragon" -y
All CLI Flags
FlagShortDescription
--species <name>-sSpecies (duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk)
--rarity <level>-rRarity (common, uncommon, rare, epic, legendary)
--eye <char>-eEye style (· ✦ × ◉ @ °)
--hat <name>-tHat (crown, tophat, propeller, halo, wizard, beanie, tinyduck)
--preset <name>Use a curated preset (e.g., "Arcane Dragon")
--name <name>-nRename companion
--personality <desc>-pSet personality (controls speech bubble)
--shinyRequire shiny (~100x longer search)
--peak <stat>Best stat (DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK)
--dump <stat>Worst stat
--yes-ySkip confirmations
--no-hookDon't offer auto-patch hook
--silentSuppress output (for hooks)

All 18 Species

All 18 species

Customization Options

Customization options

Restoring

any-buddy restore

Patches the salt back to original and removes the auto-patch hook. Your saved buddies are preserved — use any-buddy buddies to reactivate one later.

How It Works

See HOW_IT_WORKS.md for the full technical deep-dive on hashing, binary patching, the salt search algorithm, and the auto-patch hook.

Known Limitations

  • macOS: Binary is ad-hoc re-signed after patching. If Claude Code won't launch, run any-buddy restore
  • Bun recommended: Required for the interactive builder and correct wyhash computation. Without Bun, falls back to sequential prompts with FNV-1a (Node-based installs)
  • Salt dependent: If Anthropic changes the salt string, the tool will detect this and warn you
  • Stats: You pick peak/dump stats, but exact values are seed-determined

Contributing

See CONTRIBUTING.md for development setup, project structure, and how to submit changes.

Credits

License

WTFPL -- Do What The Fuck You Want To Public License.

关于 About

Hack Claude Code to get any buddy you want

语言 Languages

TypeScript93.6%
JavaScript6.4%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
72
Total Commits
峰值: 72次/周
Less
More

核心贡献者 Contributors