AI agents · Recipes
Install Mirli with a coding agent
One prompt to paste into Claude Code, Cursor or Codex, and the steps the agent follows to install Mirli and check it works.
This page is written for an agent such as Claude Code, Cursor or Codex that has been asked to install Mirli on the machine it is running on. Paste this into the agent to start:
Install Mirli on this machine and confirm it works, following
https://github.com/HamSanders/soundbox/blob/main/docs/INSTALL-AGENT.mdMirli runs entirely on the user's machine. The server listens on
http://127.0.0.1:17494 and every step below can be checked against its
HTTP API, which is documented in full in API.md.
Rules
- Say what each model costs before downloading it. Every entry from
GET /api/modelscarriesvram_estimate_mb,license.nameandlicense.commercial(yes,conditionalorno). Tell the user the model's name, footprint and licence, then wait for a yes. - Never accept a licence on the user's behalf. A model whose
license.commercialisnoorconditionalis the user's decision. The app asks for a confirmation before such weights are used; leave that to them. - Check the hardware before choosing anything.
GET /api/healthreportsdevice(cuda,metalorcpu),gpu_name,vram_total_mbandvram_free_mb. Pick models that fit, and say so if the machine is CPU-only: generation works there, but takes minutes rather than seconds. - Reuse what exists. Weights live under
~/.mirli/modelsand are shared by every profile. IfGET /api/modelsshows a model asinstalled, do not download it again. - Name what you could not do. The first launch of an unsigned installer needs a click from the user (SmartScreen or Gatekeeper). Say so rather than skipping it.
- Do not change network settings or firewall rules. The server binds to loopback and needs nothing opened.
Steps
Inspect the machine. Note the OS, the CPU architecture, the GPU and its VRAM (
nvidia-smion Windows and Linux,system_profiler SPDisplaysDataTypeon macOS), and free disk space on the home drive. Model weights are one to ten gigabytes each.Install.
Windows or macOS: download the installer for this machine from the download page (
Soundbox_<version>_x64-setup.exe, or the.dmgfor Apple silicon or Intel) and run it. The app carries its own Node and server. The builds are not signed yet, so the first launch asks the user to confirm; the exact clicks are in DESKTOP.md. Ask the user to do that step.Linux, or from source: with Node 22.12 or later and
gitinstalled, build and start the server:Terminal git clone https://github.com/HamSanders/soundbox cd soundbox npm install npm run build npx soundbox model install audiocpp npx soundboxnpx soundboxstarts the server on port 17494 and serves the web app at the same address. INSTALL.md covers the CLI, and INSTALL-ENV.md the environment variables.
Confirm the server answers. Ask it for its health report:
Terminal curl http://127.0.0.1:17494/api/healthReport
version,device,gpu_nameandvram_total_mbto the user. Ifdeviceiscpuon a machine with an NVIDIA GPU, the audio.cpp runtime was not matched to the driver;npx soundbox model status audiocppsays which binary and backend resolved, and AUDIOCPP-BINARY.md explains how to force one.Choose a model with the user.
GET /api/modelslists every enabled model. The four verified ones areaudiocpp-stable-audio-3-sfx(sound effects),audiocpp-stable-audio-3-small-music(instrumentals),audiocpp-ace-step(ACE-Step 1.5 Turbo: songs with lyrics, MIT) andaudiocpp-minimax-music3(songs, about 10 GB of VRAM). For a first test on any GPU, propose the SFX model. State its size and licence, then wait.Download it.
POST /api/models/{id}/downloadreturns a job. PollGET /api/jobs/{id}untilstatusisdone(or followGET /api/jobs/{id}/events, a server-sent event stream). Mutating requests need the headerX-Soundbox: 1when they carry no JSON body; see the request rules in API.md.Generate one sound. Send a prompt to the model you downloaded:
Terminal curl -X POST http://127.0.0.1:17494/api/generate \ -H 'Content-Type: application/json' \ -d '{ "model": "audiocpp-stable-audio-3-sfx", "prompt": "heavy wooden door slamming in a stone corridor", "duration_s": 3 }'Poll the job. When it is
done,result.soundsholds one sound id;GET /api/sounds/{id}returns itspathon disk andduration_s. Check the file exists and is not empty before calling it a success.Connect an MCP client if asked. The server is also an MCP server at
http://127.0.0.1:17494/mcp. For Claude Code:Terminal claude mcp add --transport http soundbox http://127.0.0.1:17494/mcpOther clients and the three bundled skills are in MCP.md.
Report. Tell the user: where Mirli is installed, what
GET /api/healthsaid about the GPU, which model was downloaded and under which licence, the path of the test WAV, and anything from the rules above that needed their hand.
If something fails
GET /api/healthdoes not answer: on the desktop the app starts the server itself; wait a few seconds after launch. From source, check that nothing else owns port 17494.- A model shows
needs_runtime: runnpx soundbox model install audiocpp, or on the desktop open the Models page, which offers the install. - A download fails with 401 or 403: the model is gated on Hugging Face. The user has to accept its terms on the model's page and add a token in Settings; do not ask them for the token in chat.
- Generation is far slower than expected: it is running on the CPU. See step 3.
Everything else is in INSTALL-TROUBLESHOOTING.md.