Audionaut: open source multitrack editor with CLI and MCP

What building and scripting Audionaut involves: submodules, Essentia's toolchain limits, a JSON CLI with distinct exit codes, MCP support, and where it falls short.

Binary Buddies · 5 min read · 4 views

Scripting audio edits usually means one of two bad options: drive a GUI editor with keystroke automation, or shell out to a tool like ffmpeg and lose the notion of tracks, regions and clips. Neither gives you something an agent or a CI job can run, check and undo. The Audionaut repository is an open source multitrack editor that tries to close that gap by shipping a headless command-line tool and an MCP server next to the desktop app.

This is a read-through of the repository README, not a report from a production deployment. We have not benchmarked it, and the README does not state a licence or performance figures, so neither appears here. What it does document in detail is the build and the automation surface, and both have enough sharp edges to be worth walking through before you clone it.

The questions an engineer needs answered: what you have to build, which parts are optional, what the machine-readable interface guarantees, and where the design stops being a fit.

What it is and what it runs on

Audionaut is a desktop application for audio editing and recording, written in modern C++ on the JUCE framework. It targets Windows, macOS and Linux natively. The README positions it against full DAWs: precise cutting, per-track playlists, multi-channel support and clean exports, without the weight of a complete production environment.

Distribution is broad. macOS gets an installer from GitHub Releases or the Mac App Store. Windows gets an installer from Releases. Linux gets a .deb, an AppImage and a Flatpak bundle, with the Flatpak also installable and updatable through FlatPark. If you only want to use it, none of the build steps below apply.

The project file format is .audium. This matters later because the CLI, the MCP server and the GUI all operate on the same files, and the README states that projects written by the CLI open in the GUI and vice versa.

Cloning: the submodule requirement

The first trap is the checkout. Essentia and demucs.cpp are submodules, and demucs.cpp itself has a nested submodule for Eigen. A plain clone gives you empty directories and confusing build failures later.

git clone --recursive https://github.com/kvoltmer/Audionaut.git
# or, after a plain clone:
git submodule update --init --recursive

Platform builds are then conventional. On macOS, open Audionaut/Builds/MacOSX/Audionaut.xcodeproj. On Windows, open Audionaut/Builds/VisualStudio2026/Audionaut.sln, so you need a Visual Studio version new enough to have that solution format. On Linux, install the apt packages (ALSA, JACK, LADSPA, curl, freetype, fontconfig, a run of X11 development libraries, WebKitGTK 4.1, GLU, Mesa and EGL headers), then build from the Makefile directory:

cd Audionaut/Builds/LinuxMakefile/
make CONFIG=Release -j8

Essentia: optional, and fussy about its toolchain

The analysis features (BIC segmentation, onset detection, beat tracking) link against a static build of Essentia. You build it once with ./Audionaut/Builds/build_essentia.sh. The script builds Essentia's third-party dependencies statically, which is slow and skipped on re-runs unless you set FORCE_3RDPARTY=1. It then configures and builds Essentia with waf into Submodules/essentia/build.

Three prerequisites are where builds fail:

  • Python 3.11 or older. Essentia's bundled waf needs distutils, which Python 3.12 removed. The script picks a suitable interpreter itself; override with PYTHON=... ./Audionaut/Builds/build_essentia.sh.
  • pkg-config, for example via brew install pkg-config.
  • CMake 3.x. Some third-party dependencies ship CMakeLists files so old that CMake 4.x refuses them. The README suggests pip install 'cmake~=3.31.0'.

Two side effects to know about. The script patches Essentia's Linux-oriented third-party build scripts in the working tree for macOS and Apple Silicon, so the submodule shows as dirty afterwards. The README says not to commit those changes, so add a guard to your workflow. And the whole step is optional: without Essentia, ESSENTIA_ENABLED auto-detects off and the app and tests compile with analysis disabled.

Stem separation with demucs.cpp

Stem separation uses demucs.cpp, a C++ port of Meta's Demucs, compiled directly from its submodule with no separate build step. The one dependency is the vendored Eigen under Submodules/demucs.cpp/vendor/eigen, which is the nested submodule that --recursive fetches. CMake detects it and sets AUDIONAUT_ENABLE_DEMUCS accordingly.

Model weights are not in the repository. The app downloads them on first use into its Models folder, or you can point the CLI at your own copy with --model. For an air-gapped CI runner or a container image, that first-use download is the thing to plan around: pre-seed the weights and pass --model rather than letting a job discover it has no network.

The CLI command is audionaut-cli separate song.audium --track 1, which produces Drums, Bass, Other and Vocals tracks and needs the Demucs model.

audionaut-cli as the automation surface

The CLI gives scripts, CI and agents headless access to .audium projects with no GUI and no audio device. It builds alongside the Catch2 tests:

cmake -B build -S Audionaut/Catch2Tests
cmake --build build -j8 --target AudionautCli
./build/AudionautCli_artefacts/AudionautCli --help

The command set operates on musical structure rather than raw samples: create, import, info, analyze, auto-edit, assemble, split, create-region, set-region, place-clip, move-clip, remove-clip, clip-gain, clip-fades, separate and export. Positions can be given in bars by default, or with --unit beats|seconds|clocks. For example, split song.audium --at 23 splits at bar 23, and export song.audium -o mix.wav --sample-rate 48000 --bit-depth 24 renders the mix.

The contract worth scripting against

Every command accepts --json, which emits exactly one result envelope on stdout, with all logging on stderr. The envelope carries ok: true with a result, or ok: false with an error. --quiet is also available, and option values work as either --opt value or --opt=value.

Exit codes are distinct enough to branch on:

CodeMeaning
0Success
1Operation failed
2Usage error
3Feature unavailable in this build

Code 3 is the useful one. If you built without Essentia, analyze exits 3 rather than 1, so a pipeline can tell 'this binary cannot do that' from 'that input broke'. The README's suggested agent flow is create, import, analyze, auto-edit or assemble, then export, checking ok in each envelope before moving on.

MCP: letting Claude edit a session

The MCP server is installed with Node.js 18 or newer and the app present:

claude mcp add audionaut -- npx -y audionaut-mcp

The README's guidance is to keep the project open in Audionaut, and each edit then arrives as one undo step. That is the property that makes agent edits tolerable: if the model makes a bad cut, you press undo once per edit instead of restoring a file. On macOS, keep projects in your Music folder. Claude Desktop setup is in chapter 11 of the manual, which we have not read.

Note the split of responsibilities. The CLI works headlessly on files; the MCP route, as described, works against a project open in the running app. Which one you want depends on whether a human is watching the session.

Telemetry and consent

CLI invocations report anonymous usage statistics under the same strictly opt-in consent as the app. The report is a single cli_command event containing the verb and the exit code, and nothing is sent unless consent was granted in the app's settings. Setting AUDIONAUT_DISABLE_ANALYTICS=1 switches the CLI's reporting off. The README extract we had is cut off mid-sentence at that point, so check the repository for the rest of that clause.

On a CI runner there is no app settings screen, so consent is never granted there, but setting the environment variable explicitly is still cheap and removes any ambiguity for reviewers.

Where this does not fit

The README itself says Audionaut is for editing without the weight of a full DAW. If your workflow depends on a plugin ecosystem, extensive MIDI work or mixing automation, the README gives no evidence it replaces that, and you should test with your own sessions before committing.

Building from source is the heaviest path. The Essentia step needs a pinned Python and CMake, dirties a submodule, and is slow on first run. If you can use the CLI with analysis disabled, you skip all of that but lose analyze, which an agent flow built around beat-aware auto-edit will likely need. Stem separation adds a runtime model download on top.

Finally, the format is .audium. Interop with the GUI is documented; interop with other DAW project formats is not mentioned in the material we reviewed, so treat export to WAV as your exit route.

  • #Audionaut
  • #JUCE
  • #MCP
  • #Open Source
  • #audio editor
  • #multitrack audio editor

Comments

Add a comment
Sign in with Google to join the conversation