Requirements
What you need before the first song, and what makes playing nicer. A coding agent can do it all for you; otherwise, only what you need and where songs play are must-haves, and the rest adds pictures, sound or speed.
01Let a coding agent set it up
The quickest way: copy this prompt into a coding agent (Claude Code, Codex and the like) on the machine you’ll play on. It reads this site, looks at your machine and terminal, and walks you through the rest of this page.
It asks before installing anything, and leaves the logins that need a browser (Spotify, gh) for you to type. API keys are only checked for, never read.
Set up beatcode, a rhythm game that runs in the terminal, on this machine so I can play it comfortably. 1. Read https://beatcode.run/llms-full.txt first. It is the whole beatcode site, including the Requirements page.2. Look at this machine without changing anything: the OS and CPU, whether beatcode is installed (beatcode --version), which terminal I'm in ($TERM_PROGRAM, and $TMUX for tmux), and whether ffmpeg and gh are installed.3. If beatcode isn't installed, show me the install command that fits (Homebrew, npm or curl, from the site) and ask before running it.4. Run beatcode skills, then read ~/.agents/skills/beatcode-setup/SKILL.md and follow it. It asks what to connect: Spotify or YouTube Music, AI charts, the combo voice, icons and shell completion.5. Anything that needs a browser or my typing (beatcode setup music, gh auth login): give me the command to run myself.6. Never read or print API keys or credentials. Only check whether they exist.7. At the end, tell me what is set up, what isn't, and what the Requirements page says about my terminal (pictures, key release, tmux), with what I could change.02What you need
beatcode runs in a terminal on macOS 11 or later (Apple silicon or Intel). Linux and Windows aren’t supported yet.
Give it room. The screenshots on this site were taken at 120 columns by 34 rows; song select puts the songs and charts in 62 columns on the left and the code on the right, and 8 lanes take about 80 columns before the score panel. A smaller window still works, with narrower lanes and less code.
A keyboard you can hit quickly. Four lanes use D F J K, six S D F J K L, eight A S D F J K L ; (all can be changed in config.toml).
| Needed | |
|---|---|
| OS | macOS 11+ (Apple silicon or Intel) |
| Terminal size | 120 × 34 or more is comfortable |
| Keys | D F J K (4 lanes), up to A S D F J K L ; (8 lanes) |
03Where songs play
Pick one with beatcode setup. You can also play with no song at all: Silent keeps a fixed tempo and lights the judgment line on the beat.
With Spotify, beatcode analyzes the song’s sound on your machine to place notes on its beats. With YouTube Music it can’t read the sound, so you tap the tempo once per song.
beatcode ytmusic check tests the connection to Pear Desktop. beatcode spotify reset forgets the saved Spotify login and beatcode ytmusic reset the Pear Desktop token, so the next beatcode setup music signs in again.
beatcode setup| Where | What you need | Notes |
|---|---|---|
| Spotify | A Premium account | Plays inside beatcode. Beats come from analyzing the song |
| YouTube Music | The Pear Desktop app with its API Server plugin on | beatcode drives the app. Tap the tempo with t |
| Silent | Nothing | A fixed tempo (BPM 100 by default) |
04Which terminal
Any terminal plays the game. Two things depend on it: pictures (the logo, cover art, the camera) and whether beatcode hears a key being let go (needed to hold HARD’s long notes; without it a long note only needs the press).
The author plays in Ghostty (inside cmux), so that’s the one we recommend. The others are listed by what beatcode does with them; we haven’t played on them, so treat their rows as expected, not checked.
You can check your own: beatcode logo check prints whether the terminal answered and how pictures will be drawn, and the ready screen before a song says “key release: supported” or “not supported”.
Inside herdr, pictures are off until you turn on its experimental kitty graphics: add the lines below to herdr’s config.toml and run herdr server reload-config. The terminal outside herdr also has to draw kitty graphics. Until then, beatcode logo check says “text logo” even though the terminal answered.
[experimental]kitty_graphics = truebeatcode logo check| Terminal | Pictures | Key release | Checked |
|---|---|---|---|
| Ghostty | Yes (kitty graphics) | Expected (kitty keyboard protocol) | Pictures: yes, in cmux. Key release: not yet |
| kitty | Yes (kitty graphics) | Expected (kitty keyboard protocol) | No |
| WezTerm | Expected | Expected | No |
| iTerm2 | Expected (its own image format) | Not known | No |
| Terminal.app | No: a logo in letters, the camera in ▀ blocks | Not known | No |
| Inside tmux | No: beatcode doesn’t ask | Not known | No |
| Inside herdr | Yes, once kitty_graphics is on (see above) | Not known | Pictures: yes, with herdr 0.8.2 |
05A font with icons
beatcode marks repos, files and ranks with Nerd Font icons. Without a Nerd Font they show as boxes; set icons = "text" in config.toml to use letters instead (or "none").
BEATCODE_ICONS=text beatcode tries it for one run without editing the file.
[display]icons = "text"06Nice to have
None of these are needed to play. Each one turns on something more.
| What | For | Set up |
|---|---|---|
| An OpenRouter or OpenAI API key | AI writing a chart for the song (a) | beatcode setup, or OPENROUTER_API_KEY / OPENAI_API_KEY |
| gh (GitHub CLI), signed in | Sharing charts as gists and fetching them (g, G) | gh auth login |
| VOICEVOX or AivisSpeech engine | A voice calling out the combo | [voice] in config.toml |
| ffmpeg | The front camera in the lower right (macOS), and the beatcode record plugin | brew install ffmpeg |
| A GitHub account | Sending plays to a ranking server | beatcode setup rank |
07Tips for playing well
Turn your Japanese (or other) input method off before playing. With it on, the keys never reach the game.
After a song of 30 notes or more, the results screen shows your average timing. Press o to shift judgment by that much; it’s kept for next time.
↑ ↓ on the ready screen change the scroll speed (x0.5 to x4.0). Faster notes are farther apart and easier to read.
Wired speakers or headphones are safer than Bluetooth, which tends to lag the sound (not measured here). If you hear the song late, o on the results screen makes up for it.
Play outside tmux if you can: beatcode doesn’t draw pictures there.