Plugins

Plugins add what beatcode doesn’t ship with: 53 programming languages, 46 written languages, two more AI providers, a recorder and a gist previewer. Each is a small program that beatcode starts when it needs it.

The command output was taken against a local copy of the release, in an empty home folder. The screenshot was recorded with beatcode record after installing C.

01Install and remove

beatcode plugins install with no name lists every plugin in the Releases of the same version as your beatcode. Give names to install them: the short form (c, zh, ollama, record) is enough when it means one plugin.

Each one is downloaded for your machine (Apple silicon or Intel), checked against its SHA-256 and put in ~/.local/share/beatcode/plugins/. beatcode looks there after PATH, so a plugin of the same name on PATH wins.

A new language gets its own tab after the built-in ones, with two or three bundled charts, and is used for the files in your repos too. beatcode plugins uninstall zh removes one.

beatcode plugins install c zhDownloading beatcode-plugin-lang-c-aarch64-apple-darwin.tar.gzInstalled: ~/.local/share/beatcode/plugins/beatcode-plugin-lang-cDownloading beatcode-plugin-nlang-zh-aarch64-apple-darwin.tar.gzInstalled: ~/.local/share/beatcode/plugins/beatcode-plugin-nlang-zhCheck with: beatcode plugins
The song select screen with a C tab after the built-in languages, showing fizzbuzz.c and stack.c and the code of fizzbuzz.c
After installing C: a C tab with two bundled charts, fizzbuzz.c and stack.c.

02Programming languages

53 languages. Charts from code in them: the bundled ones, AI charts and the files in your repos. The name on the left is what you give beatcode plugins install.

InstallLanguageFiles
asmAssembly.s .asm
batchBatch.bat .cmd
cC.c .h
clojureClojure.clj .cljs .cljc .edn
cobolCOBOL.cob .cbl .cpy
coffeescriptCoffeeScript.coffee
cppC++.cpp .cc .cxx .hpp .hh .hxx .h .ipp .tpp .inl .ixx .cppm
csharpC#.cs .csx
cssCSS.css .scss
cudaCUDA.cu .cuh
dartDart.dart
dockerfileDockerfileDockerfile Containerfile *.Dockerfile
elixirElixir.ex .exs
erlangErlang.erl .hrl
fsharpF#.fs .fsi .fsx
gleamGleam.gleam
graphqlGraphQL.graphql .gql
groovyGroovy.groovy .gradle
haskellHaskell.hs
htmlHTML.html .htm
ipynbJupyter.ipynb
javaJava.java
jsonJSON.json
juliaJulia.jl
kotlinKotlin.kt .kts
liquidLiquid.liquid
luaLua.lua
makeMakefileMakefile GNUmakefile .mk .mak
mdxMDX.mdx
moonbitMoonBit.mbt
nimNim.nim .nims .nimble
nixNix.nix
objcObjective-C.m .mm .h
ocamlOCaml.ml .mli
perlPerl.pl .pm .t
powershellPowerShell.ps1 .psm1 .psd1
prismaPrisma.prisma
protoProtocol Buffers.proto
rR.r
scalaScala.scala .sc
shellShell.sh .bash .zsh
soliditySolidity.sol
sqlSQL.sql
svelteSvelte.svelte
swiftSwift.swift
tclTcl.tcl .tm .tk
terraformTerraform.tf .tfvars .hcl
tomlTOML.toml
vimVim script.vim vimrc gvimrc
vueVue.vue
xmlXML.xml .xsd .xsl .xslt .plist
yamlYAML.yml .yaml
zigZig.zig .zon

03Written languages

46 languages, for charts from text instead of code. Like the bundled Japanese and English, they read .md and .txt files and look at the text to tell which language it is, so a German README becomes a German chart.

InstallLanguageName on the tab
amAmharicአማርኛ
arArabicالعربية
bnBengaliবাংলা
csCzechČeština
daDanishDansk
deGermanDeutsch
elGreekΕλληνικά
esSpanishEspañol
faPersianفارسی
fiFinnishSuomi
frFrenchFrançais
guGujaratiગુજરાતી
heHebrewעברית
hiHindiहिन्दी
huHungarianMagyar
hyArmenianՀայերեն
idIndonesianBahasa Indonesia
itItalianItaliano
kaGeorgianქართული
kmKhmerខ្មែរ
knKannadaಕನ್ನಡ
koKorean한국어
mlMalayalamമലയാളം
mrMarathiमराठी
msMalayBahasa Melayu
myBurmeseမြန်မာ
nbNorwegian BokmålNorsk
nlDutchNederlands
paPunjabi (Gurmukhi)ਪੰਜਾਬੀ
plPolishPolski
ptPortuguesePortuguês
roRomanianRomână
ruRussianРусский
siSinhalaසිංහල
svSwedishSvenska
swSwahiliKiswahili
taTamilதமிழ்
teTeluguతెలుగు
thThaiไทย
tlTagalogTagalog
trTurkishTürkçe
ukUkrainianУкраїнська
urUrduاردو
viVietnameseTiếng Việt
zh-hantTraditional Chinese繁體中文
zhChinese中文

04AI providers

OpenRouter and OpenAI are built in. These two add more places to send AI chart requests. beatcode setup ai also lists them and installs the one you pick.

Switch with beatcode provider ai <id>, then paste the key in beatcode setup ai. Ollama runs on your own machine and doesn’t use a key, but beatcode won’t ask without one, so enter anything.

beatcode plugins install ollamabeatcode provider ai ollama
InstallProviderKeyDefault model
google-ai-studioGoogle AI Studio (Gemini API)aistudio.google.com/apikey · GEMINI_API_KEYgemini-3.5-flash-lite
ollamaOllama, on your machine (localhost:11434)Not used (enter anything)qwen3.8:27b-mlx

05beatcode record

A plugin can add a command. beatcode record starts beatcode, records the screen and the sound of beatcode and YouTube Music, and makes an .mp4 in the current folder when you quit. It needs ffmpeg. The videos on this site were made with it.

The song is in the video, so don’t share what you record. On macOS 14.2 and later, the first run asks to allow beatcode record to capture system audio.

beatcode plugins install recordbeatcode record

06beatcode gist preview

beatcode gist preview takes a beatmap gist’s URL or ID and opens a page in your browser, the same as a board on the ranking: the song’s card, and its notes playing themselves without sound. Play this song copies the gist’s URL to paste after G on the song select.

It fetches the gist with gh, so it shows your secret gists too. -o <file.html> writes the page where you say; --no-open only writes it.

beatcode plugins install gistbeatcode gist preview <gist URL or ID>

07Make your own

Without writing a program: describe a language in ~/.config/beatcode/langs/<id>.toml with its keywords, comments and strings. beatcode plugins example prints one for Lua.

As a program: put an executable called beatcode-plugin-lang-<id> (beatcode-plugin-nlang-<id> for a written language) on PATH. beatcode talks to it in JSON lines. In Rust, implement LangPlugin from beatcode-plugin-api and call beatcode_plugin_api::protocol::serve.

beatcode plugins lists every language, where it comes from and why one failed to load. To read no external languages at all, set [plugins] external = false in config.toml.

beatcode pluginsRust         rust         .rs                      built-in…English      en           .md .txt                 built-inC            c            .c .h                    ~/.local/share/beatcode/plugins/beatcode-plugin-lang-c中文         zh           .md .txt                 ~/.local/share/beatcode/plugins/beatcode-plugin-nlang-zh
← How to play: one song from start to finish