Command line
claudius is one program with a subcommand per task. claudius --help lists them and claudius <command> --help
shows the flags of one. The sample packs have a second program, claudius-packs, described in
Sample packs.
Every command that fails prints Error: and the reason on stderr and exits with status 1.
Make a song
claudius make
Composes, arranges, mixes, masters and judges a new song, and writes it into a folder.
claudius make --genre deep_house --seed 7 --short
ears loaded in 3.4 s
Glass Garden — deep_house at 118 BPM in D minor, 64 bars (2:10)
progression A: i7 iv7 v7 i7
progression B: iv9 v7 i7 VImaj7
form: intro 4 | groove 8 | break 8 | build 4 | drop 16 | drop2 16 | outro 8
tracks: kick (synth kick), clap (sampled cp (tr707:cp)), hat (hat cut from 'Silver Hi-Hat 04' (Apple Loops)), shaker (shaker cut from 'Ride With Me Shaker' (Apple Loops)), perc (perc cut from 'Latin Day Bongo 05' (Apple Loops)), bass (synth patch 'pluck_bass'), chords (synth patch 'keys'), pad (sampled violins (vsco2:violins)), lead (sampled pianet (epianos:pianet)), crash (crash cut from 'Beautiful Memories Percussion 02' (Apple Loops)), riser (synth riser)
master: -11.1 LUFS, true peak -1.1 dBTP (pre-master -9.5 LUFS); done in 6.5 s
ears: 'house music' z +3.7 (closest confusion 'techno music' +3.7); production z +1.6 vs 'a low quality recording with hiss' +1.0; p_real 0.69
sounds like: house music, tech house music, techno music, drum and bass music
verdict: 88/100 (arc 0.90, genre 0.77, mix 0.95, production 0.66, theory 1.00). Fix first: dull 4-8 kHz: hats, claps and snare lack bite (presence -27.9 dB, healthy from -26); not enough sub: the kick and bass lack weight (sub -14.3 dB, healthy from -14)
wrote out/deep_house-glass-garden-7/song.mp3
The result depends on what is installed: the same genre and seed give the same song on any machine with the same packs and Apple Loops, and a different one, in its sounds and possibly its drum patterns, on a machine without them.
| flag | default | what it does |
|---|---|---|
-g, --genre | house | a genre from claudius genres |
-s, --seed | the clock | the same genre, seed and options give the same song |
--bpm | from the genre’s range | tempo |
--key | from the genre | "Am", "F# minor", "Eb", "D dorian" |
--short | off | halves every section (at least 4 bars), for a quick sketch |
--stems | off | also writes every track to stems/<track>.wav (32-bit float) |
--samples | 0.75 | the chance that a drum lane uses a one-shot cut from Apple Loops or your library instead of a synthesized voice |
--synth-only | off | synthesizes every sound: no sample packs, Apple Loops or user library |
--no-library | off | leaves out Apple Loops and your user library; the sample packs, and the samples a song built on samples gathered, still play |
--offline | off | downloads no samples: a song built on samples plays what was gathered before, or the layers it plays without them |
--sample <file> | none | flips a recording into the song, warped to its tempo and key; repeatable |
--loops | off | builds the song around a family of Apple Loops (their chords, bass and beat), GarageBand style |
--sampled | as the genre is | builds it on samples from free libraries, as the genre’s producers sample: a phrase it takes its key, tempo and chords from, a break, a texture (Songs built on samples); trip-hop, boom bap, lo-fi, jungle, big beat and filter house are by default |
--unsampled | off | makes it of the genre’s own sounds, without samples from free libraries |
--sample-search <words> | none | searches the libraries for its phrase with your words, a kind of record ("70s soul", "bossa nova guitar"); implies --sampled |
--complexity <0..1> | the genre’s own | how layered it is: 0 the genre’s core, 0.5 the genre as written, 1 its harmony and lead doubled on second instruments, a counter-melody, a pad, more percussion, samples on samples |
--no-ears | off | judges with meters and theory only, without loading earshot’s models |
--refs <path> | none | reference tracks or folders; with two or more, the verdict scores how typical the song is of them |
--tags | off | also runs the AudioSet tagger and prints its labels as held-out evidence |
-o, --out | out | the folder the song folder goes into, relative to where you run the command |
A seed from the clock is a number below one million, printed in the folder name, so you can make the same song again.
The song folder is <out>/<genre>-<title>-<seed>, for example out/deep_house-glass-garden-7, and holds:
| file | what it is |
|---|---|
song.wav | the master, 48 kHz, 24-bit |
song.mp3 | a 256 kbps copy; claudius export writes other formats |
blueprint.json | the song’s genome: open it, edit it, render it again |
song.rhai | the song as a script, for claudius script or the studio’s script editor |
project.json | the arranged session the blueprint expanded into |
report.json | tempo, key, form, loudness and every track’s level and gain |
verdict.json | the critic’s scores, measures and issues |
credits.txt | attributions, when the song plays sample-pack instruments |
stems/ | with --stems |
Files and settings compares this with the folders claudius script and the studio write.
claudius script
Runs a script and renders the song it makes or edits.
claudius script song.rhai # a script that starts its own song
claudius script edit.rhai --on out/house-glass-haze-9
echo 'tempo(120); mute("lead");' | claudius script - --on out/house-glass-haze-9 --print
| flag | default | what it does |
|---|---|---|
<file> | the script, or - to read it from stdin | |
--on <path> | none | edits this song (a blueprint.json or a song folder) instead of starting with none |
--print | off | prints the resulting song as a script and renders nothing |
--no-ears, --refs, --tags | as for make | |
-o, --out | out | where the song folder goes |
The folder has the same files as make writes. The script’s log goes to
stderr: the song it started, the sounds each track resolved to (track hats: hh), and anything it printed with
print() or debug(). A script that ends without a song fails:
Error: the script made no song (start it with song("house") or blank("house"))
Script errors come back with the line and position; Errors and limits lists them.
Error: Runtime error: tempo between 40 and 240 BPM (line 1, position 1)
claudius render
Renders a blueprint.json again, for example after you edited it by hand.
| flag | default | what it does |
|---|---|---|
<blueprint> | the blueprint file | |
--stems | off | stems too |
--no-ears, --refs, --tags | as for make | |
-o, --out | the blueprint’s folder | where to write; without it the song files next to the blueprint are replaced |
claudius mutate
Writes variations of a blueprint, each rendered in full, with what changed.
claudius mutate out/house-glass-haze-9/blueprint.json -n 4
Each variation goes into <blueprint folder>/mutations/<n>/ (or -o), and one line per variation reports the
change and its verdict: 1: <what changed> -> <score> (<folder>). Unlike mutation in the studio, these mutations
are not steered by the critic’s issues.
| flag | default | what it does |
|---|---|---|
<blueprint> | the blueprint to vary | |
-n | 4 | how many variations |
-s, --seed | the clock | the random choices |
--no-ears, --refs, --tags | as for make | |
-o, --out | <blueprint folder>/mutations | where they go |
claudius change-genre
Writes the song in another genre, rendered and judged: its form, chords and key, the recordings it plays, the notes written on its parts, its lead’s melody and its pattern tracks kept, the genre’s drums, bass, parts, sounds, swing and mix playing it (Changing the genre).
claudius change-genre out/house-glass-haze-9/blueprint.json --genre lofi
It says what it kept, then -> <score> (<folder>), as make does.
| flag | default | what it does |
|---|---|---|
<blueprint> | the song to play in another genre | |
-g, --genre | the genre, or any number fused (trip_hop+idm, trip_hop+neo_soul+idm) | |
-s, --seed | the clock | another take of it in that genre |
--no-ears, --refs, --tags | as for make | |
-o, --out | beside the song’s folder, named after it and the genre | where it goes |
claudius evolve
Runs an evolutionary search: mutation and crossover over generations, each candidate judged on a preview of its build-up and first drop. Evolution and analysis explains the search.
claudius evolve --genre techno --seed 4 --start 2 --generations 2 --children 3 --preview-bars 16 --keep 0 --no-ears
evolving techno (2 start, 2 generations x 3 children, 16-bar previews, without ears)
g0-0 90.5 Velvet Orbit
g0-1 97.1 Hollow Harbor
g1-0 97.1 from g0-1: tempo 128 -> 126 BPM
g1-1 90.4 from g0-0: mix: bass -1.3 dB (now -1.3); form: outro now 12 bars
g1-2 90.5 from g0-0: ride: synth voice parameter 0 -> 0.931
generation 1: best 97.1
g2-0 97.1 from g0-1: form: peak drums main -> sparse; tempo 128 -> 130 BPM
g2-1 97.1 from g0-1: form: groove drums main -> sparse; drums (main): nudged a hat hit by +0.25 beats
g2-2 91.4 from g1-0: crossover: drums and form of one parent, harmony and parts of the other; form: break drums main -> sparse; form: build loses gap
generation 2: best 97.1
searched 8 candidates in 7 s; rendering the best 0 in full
A child that beats the best parent so far is marked with +. Every candidate goes into
<out>/evolve-<genre>-<seed>/evolution.json (id, generation, parent, change, score, summary), and the best --keep
are rendered in full into numbered folders next to it, with their history printed.
| flag | default | what it does |
|---|---|---|
-g, --genre | house | the genre |
--from <blueprint> | none | starts from this song instead of fresh ones |
-s, --seed | the clock | the fresh songs use seeds seed, seed + 1, …; the search uses it too |
--start | 4 | how many fresh songs start the search |
--generations | 5 | generations |
--population | 4 | parents kept per generation |
--children | 8 | children per generation |
--preview-bars | 32 | bars auditioned per candidate |
--keep | 3 | best songs rendered in full at the end |
--samples, --synth-only, --no-library, --loops | as for make | |
--no-ears, --refs, --tags | as for make | |
-o, --out | out | where the run folder goes |
claudius remake
Analyses an audio file and reworks it in a genre, so that it stays the song it is: all of it plays through, its voice
and its chords as they are, without its drums and its bass (taken apart from the rest with earshot’s models; without
them, its low end), in its own sections and on its chords, with the genre’s
drums, bass and mix under it (Remaking a song from audio). With --flip it makes a new
song of the genre on the recording’s sound instead: its hook without its drums in the hooks, another passage of it in
the other sections, its drums as the break where the genre plays one, a flip of it cut from all over it, and its sung
phrases. With --rebuild it makes the song itself again on claudius’s sounds, every note of it editable: its drums,
its bass and the rest as the hits and notes it plays (heard with earshot’s models), in its own sections and on its
chords, its voice kept on a track of its own. The recording, its pieces or its voice, go into takes/ in --out. It
prints the analysis (as analyze does) and the new song.
| flag | default | what it does |
|---|---|---|
<file> | any audio file claudius can decode | |
-g, --genre | house | the genre of the new song. A rework plays at the recording’s own tempo, or double or half it when that is nearer the genre’s range (half only where the recording holds its chords two bars); --bpm stretches it. A flip plays it at its own tempo when the genre does, else at a multiple of it, faster or slower by whole semitones as a sampler plays a record, or chopped onto the song’s grid at two thirds to three halves of it |
-s, --seed | the clock | the new song’s own choices |
--bpm | as above | the new song’s tempo |
--flip | off | a new song of the genre on the recording’s hook and pieces of it, rather than a rework of all of it |
--rebuild | off | the song itself, every part of it played on claudius’s sounds: its drums struck as it strikes them, its bass and the rest as the notes the ears hear them play, its voice kept on a track of its own and its melody written out (Rebuild it) |
--skeleton | off | a new song on the recording’s skeleton only (tempo, key, swing, form, progressions, drum habits, bass style), none of its sound; a skeleton remake out of the genre’s range plays at half or double the tempo when that falls in it, else at its nearest end |
--no-ears, --refs, --tags | as for make | |
-o, --out | out | the folder is remake-<genre>-<title>-<seed> |
Listen and judge
claudius export
Writes a song’s master in other formats: WAV, AIFF, FLAC, Apple Lossless, MP3, AAC, Opus and Ogg Vorbis.
Exporting has every format and what each is for. -f project writes a song folder as a project file
instead, a .claudius to open in claudius anywhere: the song, the recordings it plays, and its release (the
release.json and the cover) when it has one. It needs no render. Apple loops and a pack’s sounds stay out of it, as
their licences ask, and claudius says so: a computer that has them plays them.
claudius export out/deep_house-liquid-avenue-21 -f mp3,flac,wav:16
claudius export ~/Music/mix.wav -f opus:96 -o ~/Desktop/mix.opus
claudius export ~/Music/claudius/house-glass-garden-12 -f project -o ~/Desktop
| flag | default | what it does |
|---|---|---|
<song> | a song folder (its song.wav) or any audio file | |
-f, --format | format[:quality][@rate], repeated or comma-separated: mp3, mp3:v0, wav:16, flac, aac, opus:96; or project | |
-o, --out | the song’s folder | the file to write for one format, or the folder for several |
--title, --artist, --album | the song’s title | the tags the files carry; the files are named after the title |
--list | lists the formats, and any this machine cannot write |
claudius publish
Checks a rendered song as stores and distributors check a release (its artwork, its audio, the licences of its sounds
and its details), and writes a release kit: the WAVs and the cover a distributor takes, and release.txt with every
answer its form asks for. What you give is kept in the song’s release.json. Publishing has the checks
and the kit.
claudius publish out/lofi-hollow-harbor-5 --artwork cover.jpg --artist "Ana Lima" --writer "Ana Lima" --made written
claudius publish out/lofi-hollow-harbor-5 --check --json
| flag | default | what it does |
|---|---|---|
<song> | a rendered song’s folder | |
--artwork | the cover: a square JPEG or PNG, 3000 × 3000 | |
--artist, --title, --version, --featuring, --album | the song’s title | the release’s names; --featuring repeats |
--genre, --subgenre | the song’s genre as stores list it | |
--date, --label, --owner | the label and owner are the artist | the release date (YYYY-MM-DD), the record label, and who the ℗ and © lines name |
--writer, --producer | songwriters by full legal name, and producers; each repeats | |
--isrc, --upc | assigned by the distributor | the codes, if you have them |
--explicit | no | the lyrics are explicit |
--made | written, assisted or generated: how the song was made, which distributors ask | |
--check | check, and write no kit | |
-o, --out | release/ in the song’s folder | the kit’s folder |
--json | prints the checks as JSON |
It fails while a check finds a problem, so a script can tell.
claudius thumbnail
Writes a project file’s cover as a PNG, at most SIZE pixels on a side (256 when not given), for a file manager to
show the file by. The cover is the one you gave in Publish, which a project file
carries. The .deb and the .rpm install a thumbnailer
(/usr/share/thumbnailers/claudius.thumbnailer) that runs it, so GNOME’s Files, KDE’s Dolphin and the other file
managers that read thumbnailers show a project by its cover. A project without a cover writes nothing and fails, and
the file manager shows the usual icon.
claudius thumbnail "Glass Garden.claudius" cover.png 512
| argument | default | what it is |
|---|---|---|
<project> | the project file, as a path or a file:// address | |
<out> | the PNG to write | |
[size] | 256 | its largest side, in pixels |
claudius judge
Gives the critic’s verdict on any audio file. When the file has a project.json next to it (as make writes), the
arrangement and theory checks run too; without one, only the meters on the master and the ears do.
claudius judge out/deep_house-glass-garden-7/song.wav --no-ears
out/deep_house-glass-garden-7/song.wav: 95/100 (arc 0.94, mix 0.93, theory 1.00). Fix first: dull 4-8 kHz: hats, claps and snare lack bite (presence -28.6 dB, healthy from -26); fizzy top end (air -16.2 dB, healthy up to -17)
arc_correlation: 0.89
band_air_db: -16.2
band_low_db: -2.6
band_lowmid_db: -5.5
band_mid_db: -12.2
band_presence_db: -28.6
band_sub_db: -11.4
bass_roots_on_changes: 1
drop_minus_break_lu: 3.5
lead_chord_tones_on_strong_beats: 1
lead_in_key: 1
lead_range_semitones: 12
lead_stepwise: 0.63
length_s: 106
low_end_correlation: 1
lra_lu: 3.73
lufs: -10.98
stereo_correlation: 0.86
true_peak_db: -1.05
voice_leading_chords: 1
voice_leading_pad: 1.1
- [0.44] dull 4-8 kHz: hats, claps and snare lack bite (presence -28.6 dB, healthy from -26) (band:presence-)
- [0.13] fizzy top end (air -16.2 dB, healthy up to -17) (band:air+)
| flag | default | what it does |
|---|---|---|
<file> | the audio file | |
-g, --genre | the project’s, or none | the genre the ears compare against; without one they report the closest genre in earshot’s vocabulary |
--no-ears, --refs, --tags | as for make | |
--json | off | prints the whole verdict as JSON |
The critic and the ears explains every measure and score.
claudius analyze
Reads a song the way a producer does before remaking it.
claudius analyze out/deep_house-glass-garden-7/song.wav --genre deep_house
118.0 BPM (pulse clarity 0.48), D minor (confidence 0.81), swing 0.54, 64 bars from 1.52 s
progression A: i VImaj7 v i7 | B: v7 i7 (1 bar(s) per chord)
bars 1-4 intro (A) energy 0.73, kick hats
bars 5-12 drop (B) energy 0.95, kick bass hats
bars 13-19 break (C) energy 0.30, hats
bars 20-23 break (D) energy 0.45, hats
bars 24-56 drop (E) energy 1.00, kick bass hats
bars 57-64 drop (B) energy 0.83, kick bass hats
kick X..-X.-xX.--X..-
snare X.x.x.xxX.x-x.x.
hats XxXXx.XXXxX-xxXX
bass style: syncopated
This is claudius reading its own D minor song, whose sections are an intro of 4 bars, a groove of 8, a break of 8, a
build of 4, two drops of 16 and an outro of 8, on i7 iv7 v7 i7 (iv9 v7 i7 VImaj7 in the break and the build). The
tempo, the key and the swing are right. It hears each section where it starts, but three beats late, as it took the
song’s fourth beat for its first (its bars start at 1.52 s), and the two drops, the same music twice, as one of 33
bars. It names the groove and the outro drops (each the music of one, and nearly as loud) and the quiet build a second
break; the outro plays the groove’s music, and both have its letter. Progression A has two of the song’s chords
where they are (i and v), and B the break’s middle two. A section’s line says what it is, the letter of the
music it plays (sections with one letter play the same), its energy, how much of it is sung, how many of its last bars
build into the next and what plays in it; a song with a voice adds the phrases sung, to the beat (27.2-31.4, bar
27’s second beat to bar 31’s fourth). Analysis of full mixes is approximate; the
engineering page says where it goes wrong. In the step
grids, X is a hit in almost every bar, x a common one, . a rare one and - none.
| flag | default | what it does |
|---|---|---|
<file> | the audio file | |
-g, --genre | none | a genre whose tempo range guides the beat tracker (else 70 to 180 BPM, centred on 120) |
--json | off | the whole analysis as JSON, including the chord of every bar |
claudius voice
Hears how a recording of one voice is sung: the notes it means, how near each came, and the singer (see Your voice).
claudius voice vocal.wav --key "A minor" --notes
| flag | default | what it does |
|---|---|---|
<file> | the audio file | |
-k, --key | none | the key it is sung in, which settles doubtful notes (else any note is as likely as another) |
--notes | off | every note too: where it starts, the note meant, how far off it was sung, how long, how sure |
--json | off | the whole assessment as JSON, the singer and every note |
claudius tune
Tunes a recording of one voice to the notes it means and writes the tuned recording (see Your voice).
claudius tune vocal.wav --key "A minor" --speed 20
| flag | default | what it does |
|---|---|---|
<file> | the audio file | |
-o, --out | <file>-tuned.wav beside it | where to write it |
-k, --key | none | the key it is sung in (else any note) |
--notes | none | only these notes, in any octave: "C D E G A" |
--strength | 1 | how much of the way to the notes, 0 to 1 |
--speed | 40 | how fast a note is brought onto its pitch after it starts, ms; 0 at once |
--humanize | 10 | the cents of the singer’s own wandering around a note that stay |
--vibrato | 1 | how much of the vibrato stays, 0 to 1 |
Make material
claudius chop
Cuts a recording into material: one bar loop per section it finds and a kick, clap and hat one-shot, saved as WAV
files and added to the user library, where make and scripts find them.
claudius chop out/deep_house-glass-garden-7/song.wav --bars 2
chopped 3 loops and 3 one-shots (added to the user library):
out/chops/song/01-intro-2bars.wav (118 BPM, 8 beats, key A#)
out/chops/song/02-break-2bars.wav (118 BPM, 8 beats, key A#)
out/chops/song/03-drop-2bars.wav (118 BPM, 8 beats, key A#)
kick: out/chops/song/kick.wav
clap: out/chops/song/clap.wav
hat: out/chops/song/hat.wav
The analysis is printed first, as analyze prints it.
| flag | default | what it does |
|---|---|---|
<file> | the recording | |
--bars | 2 | bars per loop |
-g, --genre | none | a tempo range for the beat tracker |
--find <description> | none | also cuts out the moments that best match a description (“a vocal chop”, “a snare hit”); repeatable; needs earshot’s models |
--top | 3 | cuts per --find |
-o, --out | out/chops | the files go into <out>/<file name>/ |
Apple Loops and your own samples shows how to use the chops.
claudius sample
Samples a recording’s vocals into a song: its best sung phrases, cut on the bars it plays from its vocals apart (with
earshot’s models; else cleaned of its drums),
fitted to the song’s tempo and key, placed where they agree with its chords and mixed as vocals
(Sampling a song’s vocals). The song is written to a new folder, with the
phrases in its takes/, and rendered and judged.
claudius sample ~/Music/a-cappella.wav --on out/deep_house-velvet-orbit-4 --count 2
| flag | default | what it does |
|---|---|---|
<file> | the recording | |
--on | the song: a blueprint.json or a song folder | |
--count | 2 | how many phrases, 1 to 4 |
--bars | 1 or 2 | how long each phrase is, in bars: 1, 2 or 4 |
--find <description> | “a person singing” | what earshot’s models listen for |
--in <section> | the sections that suit each phrase | a section to put them in, by name or kind; repeatable |
--every <how often> | as the song suits | how often each phrase comes round: once (from the start of each section), 2, 4, 8 or 16 (once every so many bars) or through (how the song decides) |
--no-ears | find the phrases by pitch and stereo picture alone | |
-o, --out | out | the song goes into <out>/<genre>-<title>-<seed>/ |
claudius samples
Finds sounds in free online libraries and downloads them, keeping only what their licences let you publish music made with (Samples from free online libraries).
claudius samples search "drum break" --limit 4
claudius samples get freesound:629052
claudius samples list
freesound:51247 "Silly Drum Break 1.wav" by RutgerMuller, CC0 1.0, 3 s
commons:Bauchamp - 130 old drum break.ogg "Bauchamp - 130 old drum break" by Bauchamp, CC0
ccmixter:37792 "Drops of H2O ( The Filtered Water Treatment )" by J.Lang, CC BY 3.0, 315 s
freesound:629052 "Crunchy Drum Break 2 [128bpm]" by deadrobotmusic, CC0 1.0, 15 s
`claudius samples get <id>` downloads one
get prints where the sound went and the credit a song that plays it gives.
| subcommand and flag | default | what it does |
|---|---|---|
search <description> | asks the libraries | |
search --source <library> | all | openverse, commons or ccmixter; repeatable |
search --limit | 12 | how many sounds at most |
search --json | prints the results as JSON | |
get <id> | downloads a sound a search found, with its credit beside it | |
list | lists the downloaded sounds and their credits | |
gather <genre> | gathers what the genre’s songs built on samples play, until it has as many as it keeps: searches, downloads, cuts, and with the ears keeps the best | |
gather <genre> --search <words> | gathers phrases for your words instead, for the songs that ask for them | |
--us-public-domain | search and get also keep recordings in the public domain by age | |
--share-alike | search and get also keep CC BY-SA sounds |
claudius sounds
Renders every built-in synthesized sound to WAV files, so you can hear them: the 13 drum voices in drums/, the 20
synth presets playing a phrase in synth/, and five transition effects in fx/.
| flag | default | what it does |
|---|---|---|
-o, --out | out/sounds | where they go |
Information
| command | prints |
|---|---|
claudius genres | every genre by family, with its tempo range and description, including your own genre files (under “your own” when they name no family) |
claudius genres WORDS | the genres that answer a search, best first: a name or another name, an era, a scene, an artist or a sound (claudius genres west coast, claudius genres 90s) |
claudius examples | the example songs by decade, then the classics remade, the songs built of layered sounds and the studies of famous records: each one’s name, title, style and the artists the style is heard on (of a classic, the piece; of a study, the record) |
claudius examples NAME | that example’s script, with the notes on how its style is made: claudius examples flashbulb > flashbulb.rhai, then claudius script flashbulb.rhai renders it |
claudius reference | the script language reference, the same text /api/reference and the MCP tool script_reference return |
claudius --version | the version |
$ claudius genres
afro and latin
afrobeats 100-115 BPM Afrobeats: 100 to 115 BPM, a rolling West African groove ...
...
hip hop
alt_hip_hop 76-98 BPM Alternative hip hop: 76 to 98 BPM, lush ninth and eleventh chords ...
boom_bap 86-96 BPM Boom bap: 90s hip hop at 86 to 96 BPM, built on samples: ...
...
$ claudius genres golden age
boom_bap 86-96 BPM Boom bap: 90s hip hop at 86 to 96 BPM, built on samples: ...
Run the studio and the server
These three commands run a session: one song with undo, renders and verdicts, which the studio window, browsers, assistants and the HTTP API share. They take the same session flags:
| flag | default | what it does |
|---|---|---|
--port | 7878 (CLAUDIUS_PORT) | the port the HTTP server listens on |
--no-ears | off | no earshot models; verdicts use meters and theory |
--synth-only | off | synthesizes every sound: no sample packs, Apple Loops or user library |
--no-library | off | no Apple Loops or user library; the sample packs, and the samples a genre built on them gathered, still play |
--offline | off | gathers no samples: a song built on samples plays what was gathered before, or what stands in for it |
--no-auto-render | off | renders only when asked, instead of after every change |
--web <dir> | found automatically (CLAUDIUS_WEB) | the built web studio; see Files and settings |
claudius studio
Opens the studio window. It first asks http://127.0.0.1:<port> what answers there:
- a claudius: the window opens on that session, says
a claudius is already running on port 7878: opening the studio on it, and ignores the session flags; - a claudius older than this one, such as one an assistant set up with an earlier version starts: the window runs
beside it, since this version’s studio would drive it wrong. It says
the claudius on port 7878 is 0.2.0, older than this one (an assistant set up before this version may have started it): the studio runs beside it, opens on a claudius as new as itself on one of the twenty ports after it if there is one, or else starts a session on the first free one of them, and shows a banner that says how to connect the assistant again; - a claudius that asks for a token: it stops, since the window cannot send one, and says to open
http://127.0.0.1:<port>/?token=<token>in a browser or to start another studio with--port; - nothing: it starts a session and an HTTP server on 127.0.0.1 and
--port(which also serves the web studio and MCP), then opens the window on it. A port taken by another program stops it withport 7878 is taken, by another claudius or another program (--port picks another).
claudius studio FILE opens a song in the window once it is open, as Open would: a project (a .claudius file,
or the .zip an earlier demo saved), a blueprint.json or a .rhai script. A project double-clicked on Windows or
on Linux starts the studio so; on a Mac the system hands the file to the app, starting it first if it is not running.
A claudius built without the studio feature prints the address to open in a browser and keeps serving.
claudius serve
Runs the session and the HTTP server without a window: the web studio at /, the HTTP API under
/api, and MCP at /mcp.
$ claudius serve
claudius at http://127.0.0.1:7878: web UI at /, API at /api, MCP at /mcp
It prints the address once the port is bound; a taken port stops it with port 7878 is taken, by another claudius or another program (--port picks another).
| flag | default | what it does |
|---|---|---|
--host | 127.0.0.1 | the address to listen on; 0.0.0.0 listens on every interface. Any address but loopback requires a token and limits file access, as --public does |
--public | off | answers requests addressed to any host name (a tunnel, your LAN), requires a token (one is made when --token is not given), and limits file access to claudius’ own folders |
--token <secret> | none (CLAUDIUS_TOKEN) | requires this token on every request; a blank one counts as none |
--files <dir> | none | a folder commands and scripts may read and write, besides ~/Music/claudius, claudius’ caches and the sound libraries; repeatable |
--public without --token makes a random token and prints how to use it:
$ claudius serve --public --port 7920
claudius at http://127.0.0.1:7920: web UI at /, API at /api, MCP at /mcp (token required)
shared with a new token: open http://127.0.0.1:7920/?token=<token> (through your tunnel, its address with ?token=<token>), or send Authorization: Bearer <token>. --token sets your own.
The token is new at every start; pass --token to keep one across restarts, as an assistant’s configuration needs.
MCP tools shows the tunnel setup and the security
model what each flag protects. --host with any address but loopback makes a token
the same way, with or without --public: browsers on the network are refused by the host-name check, and the token
keeps out programs that send Host: localhost.
--public, --host with an address other than loopback, or --files limits file access to ~/Music/claudius,
claudius’ caches and the sound libraries, plus the --files folders; without any of them, commands read and write
wherever you can. What a shared claudius may read and
write has the details.
claudius mcp
Speaks MCP over stdin and stdout, for assistants that start claudius themselves (Claude Desktop, Claude Code,
Cursor). It first asks the address in --url, or http://127.0.0.1:<port>, whether a claudius is running there:
- if one answers, every tool works on that session: the song open in your studio;
- if the one on the port is older than this one, and
--urlwas not given, it runs beside it, asclaudius studiodoes: it drives a claudius as new as itself on one of the twenty ports after it (the studio, which stepped round the same one), or else starts a session of its own on the first free one of them. With--urlit drives the older one, and says so; - if one answers but asks for a token that
--tokendid not give (or gave wrong), it fails withError: the claudius at <url> asks for a token: pass --token or set CLAUDIUS_TOKEN (a wrong one is refused too); - if none answers and
--urlwas given, it fails withError: no claudius answers at <url>; - otherwise it starts a session of its own and serves the web studio on
--port, so you can open it to listen.
What it decided goes to stderr, which MCP clients show in their logs:
claudius mcp: driving the claudius app at http://127.0.0.1:7878
| flag | default | what it does |
|---|---|---|
--url | http://127.0.0.1:<port> | a claudius elsewhere |
--token | none (CLAUDIUS_TOKEN) | the token of that claudius |
| session flags | used only when it runs a session of its own |
Set up and check
claudius setup
Downloads what does not ship with the program: the default sample packs and earshot’s listening models. On a
terminal it asks before each download; elsewhere (and with --yes) it does not ask.
| flag | what it does |
|---|---|
-y, --yes | does not ask |
--no-packs | skips the sample packs |
--no-models | skips the models |
--tags | also downloads the AudioSet tagger, 347 MB more, used by --tags |
The prompt shows what is missing and how much it downloads: about 3.1 GB for the default packs, which take 1.5 GB on
disk because several arrive as WAV and are converted to FLAC, and 1.1 GB for the models: 918 MB of listening models
(CLAP, and the 133 MB of Audiobox Aesthetics) and 157 MB of Spleeter’s nets, which separate a recording’s vocals,
drums and bass (the prompt says about 1.1 GB, or 1.4 GB with --tags). An interrupted pack download resumes where it stopped; a model file that was cut off
downloads again from its start, and the files that finished are kept. After the models arrive, the first load spends
about 30 s embedding earshot’s vocabulary once.
claudius doctor
Checks the installation and says what is missing.
$ claudius doctor
claudius 0.1.0 (macos aarch64)
ok web studio ~/.local/share/claudius/web
ok sample packs 22 default packs (1.5 GB) in ~/Library/Application Support/claudius/packs
ok ears models in ~/.cache/earshot-rs
ok Apple Loops 14096 loops and samples
ok ffmpeg 9.0.2 (reads the formats claudius cannot)
ok port 7878 free
.. Claude Desktop not connected: `claudius connect claude-desktop`
.. Cursor not connected: `claudius connect cursor`
.. statistics off (`claudius telemetry` explains them)
Everything claudius needs is here.
ok is fine, -- counts as a problem, .. is optional. The port line says whether --port (or CLAUDIUS_PORT) is
free, already serving claudius (claudius is running here, also for one that asks for a token), or taken by another
program.
claudius connect
Adds claudius to an assistant, or removes it: its MCP configuration, and the skills that teach it claudius. MCP tools covers each client.
| argument or flag | what it does |
|---|---|
claude-desktop | edits claude_desktop_config.json, and writes the skills as zips into ~/Music/claudius/skills/ to upload in Claude’s settings |
claude-code | runs claude mcp add --scope user ..., and installs the skills in ~/.claude/skills/ |
cursor | edits ~/.cursor/mcp.json, and installs the skills in ~/.cursor/skills/ |
codex | edits [mcp_servers.claudius] in ~/.codex/config.toml, and installs the skills in ~/.codex/skills/ |
print | prints each assistant’s own command for setting it up by hand (claude mcp add, codex mcp add, Cursor’s install link), and the configuration for any other client, with the full path of this claudius |
--http | connects over HTTP to a running studio instead of starting claudius mcp (not for Claude Desktop or Codex) |
--no-skills | connects the MCP server only |
--remove | takes claudius, and its skills, out again |
--port | the port the --http URL uses (CLAUDIUS_PORT) |
Every configuration file it edits keeps a .bak copy of the old one. Installing the skills replaces only claudius’
own skill folders (claudius-songs, claudius-remix, claudius-setup). An assistant reads its configuration when
it starts, so connect ends by saying how to restart it: quit and reopen Claude Desktop, restart Cursor or reload its
window, start a new Codex or Claude Code session.
claude-code runs the claude command, found on PATH or where its installers put it (~/.local/bin,
~/.claude/local, ~/.npm-global/bin, /opt/homebrew/bin, /usr/local/bin), and replaces a claudius Claude Code
already has. The studio’s Connect an assistant does what connect does, and claudius doctor lists the
assistants that are connected.
claudius update
claudius update # downloads the latest release, and installs it after asking
claudius update --check # only says whether there is a newer release
claudius update --auto off # the studio stops looking for updates (on turns it back on)
It installs the latest release the way this claudius was installed: the Mac app, an AppImage, the install script’s
programs, or the Windows installer, from the release’s file for this computer, checked against its SHA256SUMS.
Installed with Homebrew, cargo, a .deb or .rpm, or built from source, it says how to update instead. --yes
does not ask. Updates has the details.
claudius telemetry
claudius telemetry # whether anonymous usage statistics are on, and an event exactly as it is sent
claudius telemetry on
claudius telemetry off
Anonymous usage statistics are off until you turn them on, here or when the studio’s tour asks. When they are on,
claudius sends each kind of event at most once a day: which command started it, the version and the system, and
where a setup or a panic failed. DO_NOT_TRACK=1, CLAUDIUS_TELEMETRY=0 and CI keep them off whatever the answer.
Privacy and usage statistics lists every field and where they go.
claudius skills
claudius skills --out ~/my-project/.claude/skills
Writes the skills that teach an assistant claudius into a folder (claudius-skills by default): a folder with a
SKILL.md for each, and a zip of each for the Claude apps. They are built into the binary, so they match it.