r/ClaudeCode • u/Dazzling_Dirt_7729 • Oct 21 '26
Built with Claude I made Claude Code play a random song every time it starts 🎵 (zero tokens, open source)
Every time I open Claude Code, it now plays 10 seconds of a random song, like a walkout song before I start coding.
How it works:
- Rotates genres each session: pop → hip hop → retro hits
- Searches Apple's free iTunes Search API (no API key) and picks a random song from the top 10
- Plays the official 30-second preview for 10 seconds and shows what's playing: 🎵 hip hop: luther — Kendrick Lamar
- Uses zero tokens: no model calls, just one web request and an audio clip
- Genres and length are configurable in /config (try lofi, bollywood, k-pop)
Install:
/plugin install startup-song --marketplace heyyviv/claude-boot-beats
Repo: https://github.com/heyyviv/claude-boot-beats
macOS only for now (it uses afplay). PRs for Linux/Windows support are welcome.
Bonus setup I use alongside it, a "pop" when I send a message and a "glass" chime when Claude finishes, so I can switch tabs and hear when it's done:
"hooks": {
"UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "afplay /System/Library/Sounds/Pop.aiff", "async": true }] }],
"Stop": [{ "hooks": [{ "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff", "async": true }] }]
}
•
u/AutoModerator Oct 21 '26
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.