Files and settings
claudius keeps songs, sounds, models and caches in separate places, so that each can be backed up, moved or deleted on its own. The paths below are for macOS and Linux; where an environment variable moves a folder, it is named.
Where everything is
| what | macOS | Linux | moved by |
|---|---|---|---|
| songs saved from the studio and the MCP tools | ~/Music/claudius | $XDG_MUSIC_DIR/claudius, else ./out | the path of save |
| songs written by the command line | ./out (where you run it) | ./out | -o |
| caches | ~/Library/Caches/claudius | $XDG_CACHE_HOME/claudius or ~/.cache/claudius | CLAUDIUS_HOME |
| sample packs | ~/Library/Application Support/claudius/packs | ~/.local/share/claudius/packs | CLAUDIUS_PACKS |
| samples from online libraries, each with its credit | ~/Library/Application Support/claudius/samples | ~/.local/share/claudius/samples | CLAUDIUS_SAMPLES |
| scratch space while a pack installs | ~/Library/Caches/claudius/packs | ~/.cache/claudius/packs | |
| listening models | ~/.cache/earshot-rs | ~/.cache/earshot-rs | EARSHOT_HOME |
| your genres | ~/Library/Application Support/claudius/genres | ~/.config/claudius/genres | |
| the themes you added, a file each | ~/Library/Application Support/claudius/themes | ~/.config/claudius/themes | CLAUDIUS_HOME |
| your voice, as a pitch check heard it | ~/Library/Application Support/claudius/voice.json | ~/.config/claudius/voice.json | CLAUDIUS_HOME |
| the answer about usage statistics | ~/Library/Application Support/claudius/telemetry.json | ~/.config/claudius/telemetry.json | |
| whether to update automatically, and the day it last looked | ~/Library/Application Support/claudius/updates.json | ~/.config/claudius/updates.json | |
studio window preferences, under settings | ~/Library/Application Support/claudius-studio/app.ron | ~/.local/share/claudius-studio/app.ron | |
| Apple Loops (read only) | /Library/Audio/Apple Loops, ~/Library/Audio/Apple Loops | ||
| programs and web studio (install script) | ~/.local/bin, ~/.local/share/claudius/web | the same | CLAUDIUS_INSTALL_DIR |
On Linux, $XDG_MUSIC_DIR comes from ~/.config/user-dirs.dirs; without it, the studio saves under out in the
folder it was started from. The web studio keeps its preferences in the browser’s local storage.
Every settings file says which version of it claudius wrote, and any later claudius reads it, a setting at a time: one it cannot read is its default alone, and one a later claudius added is kept when an earlier one writes the file (0016). Updating from any version keeps what you set.
Song folders
A song folder holds a song in every form claudius has for it. One function, song::write_folder, writes every
folder, whether the CLI (make, script, render, remake, evolve, mutate) or a save in the studio or over
MCP made it, so they hold the same files:
| file | what it is |
|---|---|
song.wav | the master, 48 kHz, 24-bit |
song.mp3 | a 256 kbps copy (Exporting writes other formats) |
blueprint.json | the song’s genome |
song.rhai | the song as a script |
project.json | the arranged session |
report.json | tempo, key, form, loudness, and every track’s level and gain |
verdict.json | the critic’s verdict |
credits.txt | attributions, when sample packs play |
stems/<track>.wav | every track, 32-bit float: from a save with stems, and from make and render with --stems; a save without them takes out the stems an earlier save wrote, and one with them those of tracks the song no longer has, so that the folder never holds stems of another version of its song (other files in stems/ stay) |
release.json | what you gave claudius publish: the artist, the songwriters, the artwork, how the song was made |
release/ | the release kit claudius publish writes (Publishing) |
takes/ | the song’s takes, 24-bit FLAC: recordings made for it, which a save copies in |
history.jsonl | every change made to the song since it began, one a line, from a save in the studio or over MCP: what it changed, when, and what undo calls it; opening the folder again brings undo and redo back as they were |
Stems are floating point because a track can peak above full scale before the master’s limiter brings the mix down.
claudius judge runs its arrangement and theory checks when project.json sits next to the audio, so any song
folder gets the full verdict.
blueprint.json is the song: claudius render, claudius script --on, claudius evolve --from, claudius mutate, and open in the studio and the MCP tools all start from it. The song model
describes its fields. Every later claudius opens it; a newer claudius’s song, in a format this one does not read
yet, says so and asks for an update. A blueprint that plays audio files (Apple Loops, chops, files from scripts) stores their paths,
so it plays on another computer only where those files exist. Takes are the exception: they travel in the folder’s
takes/, and a song folder that moved finds them there.
Caches
Everything in the cache folder can be deleted while claudius is not running; it is rebuilt on demand.
| folder | what | grows by |
|---|---|---|
decoded/ | the sounds of 30 seconds or less claudius has read (samples, loops, one-shots), decoded to raw 48 kHz stereo .f32, keyed by path, size and modification time | up to 2 GB |
stretched/ | Apple Loops and samples warped to a tempo and key | up to 1 GB |
samples/ | drum one-shots cut from Apple Loops | a few hundred KB each |
user/library.json | the user library: chops and found sounds from claudius chop | |
models/ | the command palette’s models: potion-base-8M.clde, which finds what your words mean, needle3.cact, which reads requests the palette cannot make out otherwise, and whistle.cact, which hears what you say to it | 8 MB, 35 MB and 17 MB, once each |
renders/<process id>-<session>/ | a running session’s renders: <version>.wav, .mp3, and <version>/ with stems | about 70 MB per four-minute render, and a WAV per track more for the latest render with stems (Export, Each track on its own) |
A session keeps its last ten renders and deletes older ones as it goes. It holds a lock on .in-use in its folder
while it runs, which the system lets go of when the process ends, however it ends. When a session starts, it deletes
the folders of sessions that have ended: a free lock, and nothing written for a minute. Folders without a lock file,
from claudius before 0.3, go once nothing has been written to them for 12 hours. decoded/ and stretched/ keep
what was used lately: past their size, the files used least lately go until each holds three quarters of it. A
longer recording is decoded each time it is read, which takes a fraction of a second, rather than kept: its decoded
file would be about ten times the size of its MP3.
The pack installer’s scratch space holds downloaded archives and their unpacked files only while a pack installs, and is removed afterwards.
Sample packs and models
A pack is a folder under the packs folder with an index.json and a files/ folder;
Sample packs covers installing and removing them. claudius-packs list prints the folder in use.
The models live under models/<repository>/<revision>/ in the models folder, one revision folder per pinned model,
with CLAP’s text embeddings of earshot’s vocabulary cached in text/clap-d78c3994912c.bin. Deleting the folder makes
the next verdict download 785 MB again (1.13 GB with the AudioSet tagger).
Your genres
A genre is a JSON file. claudius loads its built-in genres, then every .json file in your genres folder; a file
whose name matches a built-in genre replaces it. The fields are those of
crates/claudius/data/genres/house.json; copy it, rename the name, change what you like, and
claudius genres lists it: under its family (“house”, “hip hop”) if it names one, else under “your own”, and a
search finds it by its aliases too, the other names it goes by. A file that does not parse makes every genre lookup fail, the built-in genres included,
so make and song() fail with Error: genre file <path> and the JSON error under Caused by:, and the studio’s
list of genres comes up empty. Fix or move the file and try again.
The web studio
claudius studio, serve and mcp serve the web studio at / from the first of these folders that has an
index.html:
--web <dir>, orCLAUDIUS_WEB;share/claudius/webnext to the program’s folder (~/.local/share/claudius/webfor~/.local/bin/claudius);webinside the program’s folder;crates/claudius-ui/distof the checkout the program was built from (cargo xtask webbuilds it there).
Without one, / shows a page that says how to build it, and the API and MCP work as usual.
Assistant configuration
claudius connect edits these files, keeping a copy of the previous version as <file>.bak:
| client | file |
|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows), ~/.config/Claude/claude_desktop_config.json (Linux) |
| Cursor | ~/.cursor/mcp.json |
| Claude Code | its own configuration, through claude mcp add --scope user |
Environment variables
| variable | default | what it changes |
|---|---|---|
CLAUDIUS_HOME | the cache folder above | where caches and session renders go |
CLAUDIUS_PACKS | the packs folder above | where packs are installed and read |
CLAUDIUS_SAMPLES | the samples folder above | where samples from online libraries are downloaded and read |
CLAUDIUS_PACKS_CACHE_MB | 3072 | memory for decoded sample-pack audio |
CLAUDIUS_PORT | 7878 | --port of studio, serve, mcp, doctor and connect |
CLAUDIUS_TOKEN | none | --token of serve and mcp |
CLAUDIUS_WEB | found as above | the web studio folder |
CLAUDIUS_FFMPEG | ffmpeg on PATH, then /opt/homebrew/bin, /usr/local/bin, /usr/bin | the ffmpeg claudius uses for formats it cannot decode, and to export AAC and Apple Lossless off macOS; none turns it off |
CLAUDIUS_DEBUG | unset | when set, renders print their timings and the beat tracker its cues to stderr |
DO_NOT_TRACK, CLAUDIUS_TELEMETRY | unset | DO_NOT_TRACK=1 or CLAUDIUS_TELEMETRY=0 keeps usage statistics off whatever the answer |
CLAUDIUS_TELEMETRY_URL | the Worker in telemetry/ | where usage statistics go, to test an endpoint (the only place a debug build sends them) |
CLAUDIUS_UPDATES | on | off stops the studio’s daily look for updates |
CLAUDIUS_UPDATE_SINCE | unset | a version for the updater to act as, to try an update against the latest release |
EARSHOT_HOME | ~/.cache/earshot-rs | where the listening models and text embeddings go |
EARSHOT_OFFLINE | unset | 1 never downloads models; a verdict without them uses meters and theory |
EARSHOT_THREADS | half the cores, at most 4 | threads per model |
EARSHOT_FFMPEG, EARSHOT_FFPROBE | found like CLAUDIUS_FFMPEG | the ffmpeg and ffprobe earshot decodes reference tracks with |
GITHUB_TOKEN, GH_TOKEN | unset | sent to GitHub’s API while installing packs, for its higher rate limit |
CLAUDIUS_SERVER | http://127.0.0.1:7878 | the server the standalone claudius-ui program connects to |
CLAUDIUS_MOCK | unset | 1 makes claudius-ui run against its built-in demo song |
CLAUDIUS_DEMO_SAMPLES | unset | the address the native demo asks for the samples a genre built on them plays, such as http://127.0.0.1:4321/studio/samples (The studio UI); without it, those genres play what stands in for their samples |
CLAUDIUS_UI_PLAN | unset | a scripted run of the studio window, for testing (The studio UI) |
The install script reads CLAUDIUS_VERSION, CLAUDIUS_INSTALL_DIR and CLAUDIUS_DOWNLOAD_URL; see
Install.