Skip to main content

Jamly Logo

Jamly

Website & Setup Guide · Download Releases · PyPI · Architecture (DESIGN.md)

Split any song or video into isolated drums and drumless practice tracks—or karaoke (vocals + no_vocals), bass, guitar, piano, or all individual stems—100% locally on your computer.

  • Practice, karaoke, or transcribe: Mute the drums (or vocals/bass/guitar) to play or sing along, solo any stem to learn parts note-for-note, or export the full multi-track stem pack.
  • URLs or local audio: Pass a media URL supported by yt-dlp or drop in local .wav, .mp3, .flac, .m4a, .ogg, or .opus files.
  • Phase-accurate & private: Runs Meta's Hybrid Transformer Demucs v4 models locally on your CPU or GPU with shared peak-safe gain staging—no cloud uploads, subscriptions, or per-minute limits.

Note: Stem separation is an estimate and can contain bleed or artifacts depending on the mix; "drumless" is not a guarantee of perfect removal.


Quick Start

Option A: Desktop Companion (No Python setup required)

Self-contained archives for macOS (Apple Silicon & Intel), Windows x64, and Linux x64 bundle Python, Demucs, yt-dlp, Deno, ffmpeg, and ffprobe out of the box.

  1. Download the archive for your OS from Releases (or the Companion packages GitHub Actions workflow).
  2. Launch the companion:
    • macOS 13+: Install via Homebrew (brew install --cask kurtisnotcurtis/tap/jamly), or extract the zip, move Jamly.app to Applications, and open it.
    • Windows: Install via WinGet (winget install kurtisnotcurtis.Jamly and run jamly), or extract the entire zip and run Jamly.exe (keep all files in the extracted folder together).
    • Linux (glibc 2.35+): Extract the .tar.gz and run ./Jamly inside the extracted folder.
  3. Jamly opens your browser to the local companion page automatically:
    • Paste a track URL or local file path—or click Choose files to upload audio from your computer.
    • Pick a Preset and Format (MP3 or WAV), then click Split drums.
    • Click a track's drum / no-drum (or other stem) button to play it in the docked practice player—switching stems keeps your place, and the Speed slider slows down or speeds up playback without changing pitch.
    • Click Open export folder (or a track's folder icon) to open files on disk, or use Clear list / Rescan folder to manage the Exports list.

(Closing the browser tab does not interrupt running jobs; reopen Jamly anytime to reconnect, or click Quit companion to stop the background worker. Note: preview builds are unsigned, so macOS Gatekeeper or Windows SmartScreen may prompt on first launch.)


Option B: CLI & Python Install (via uv)

If you prefer the command line or already use Python (3.11 or 3.12), install uv and ffmpeg:

macOS:          brew install ffmpeg
Debian/Ubuntu:  sudo apt install ffmpeg
Windows:        winget install Gyan.FFmpeg

Then install Jamly and verify your environment:

uv tool install --python 3.12 jamly-audio-sep
jamly-doctor

From there, you can launch the local web companion or split tracks directly from your terminal:

# Open the local web companion UI
jamly-companion

# Or split directly from the CLI
jamly -i "https://youtu.be/VIDEO_ID"
jamly -i "https://youtu.be/VIDEO_ID" --stem vocals
jamly -i "/path/to/song.flac" --model htdemucs_ft --audio-format wav
jamly -i "/path/to/song.flac" --model htdemucs_6s --stem guitar

Separation Presets & Output Layout

Preset CLI Flag How It Works & Tradeoff
Balanced (default) --model htdemucs Fast 4-stem Hybrid Transformer Demucs; computes no_drums by phase-aligned residual subtraction (mix - drums).
Higher quality --model htdemucs_ft Fine-tuned 4-stem ensemble; cleaner transient isolation, takes ~4× longer and downloads larger weights on first use.
6-stem (HTDemucs) --model htdemucs_6s 6-stem Demucs (drums, bass, guitar, piano, vocals, other); single-pass speed and sums all 5 non-drum stems.

Model weights download automatically on first use of each preset. Completed exports are saved directly in ~/Music/jamly by default (with internal cache manifests tucked inside a hidden .jamly/ folder so your music folder stays clean):

~/Music/jamly/
  Artist - Song [id]_drums.mp3
  Artist - Song [id]_no_drums.mp3

Re-running a track with a new preset or format keeps your earlier exports intact alongside the new one.

Processing Pipeline

Every input flows through the same local pipeline, whether it comes from the companion UI, the CLI, or the browser extension:

flowchart TD
    A["URL / ID or local-file inputs"] --> B["normalize_inputs_full — validate ids and resolve a stable watch_id"]
    B --> C["Dedupe by watch_id"]
    C --> Q["Add pending jobs to the queue"]
    Q --> P{"Smart cache check"}
    P -- "checksum valid, not --replace-existing" --> S(["Reuse existing export"])
    P -- "new job" --> M{"Fetch metadata"}
    M --> L{Local file?}
    L -- yes --> F1["ffprobe: read audio + duration from the file"]
    L -- no --> F2["yt-dlp: fetch title, artist, uploader, duration"]
    F2 --> D["yt-dlp: extract audio to a temp workspace"]
    F1 --> D2["Use local file directly as source"]
    D --> R{URL input?}
    R -- yes --> O["Retain original beside stems: .jamly/{watch_id}/<name>_original + record manifest source_url"]
    R -- no --> SE["Demucs v4: separate all stems"]
    D2 --> SE
    O --> SE
    SE --> MIX["ffmpeg: phase-aligned mix of the target pair (stem + no_<stem> residual subtraction)"]
    MIX --> PUB["publish_directory to ~/Music/jamly/.jamly/{watch_id}/{model}/{stem}/{format}"]
    PUB --> MANI["Write metadata.json manifest with a sha256 per stem and a generation id"]
    MANI --> DONE(["Done: playable in the player and Exports list"])
    S --> DONE
  • Input normalization: URLs, bare IDs, and local file paths are all resolved to a stable watch_id; duplicate sources are dropped.
  • Smart cache: when an export's checksum already matches the manifest and --replace-existing is not passed, the job is skipped and reused without re-downloading or re-separating.
  • Metadata: yt-dlp handles URLs/IDs; ffprobe reads local files directly.
  • Original retained: for URL inputs, the extracted audio is copied next to the stems (named with an _original suffix) so it can be replayed as "Original" even offline; local-file inputs keep their own source path.
  • Separation & mix: Demucs v4 separates all stems, then ffmpeg builds the requested pair (drums/no_drums, or vocals/bass/guitar/piano and their residuals) with phase-aligned subtraction.

Guides & Reference

Optional Browser Extension & Userscript (One-click from YouTube)

The companion works out of the box by pasting URLs or picking local files, but you can also add the unpacked Chrome/Edge extension to send the active tab in one click:

  1. In the companion UI, expand Optional Chrome / Edge extension and click Prepare extension.
  2. Open chrome://extensions (or edge://extensions), enable Developer mode, click Load unpacked, and select the displayed folder.
  3. Open the extension's Pair / settings page and paste the displayed backend URL (http://127.0.0.1:8765) and private pairing token.
  4. Click the Jamly toolbar icon on a YouTube video and select Use current page → Split drums.

CLI-only setup: Run jamly-server, then run jamly-service browser (prints the unpacked extension folder) and jamly-service token (prints the pairing token).

Optional Userscript: Run jamly-service userscript to export a lightweight YouTube / YouTube Music button for Tampermonkey or Violentmonkey. Use its Pair Jamly menu command to set your token.

Full CLI Reference & Caching Rules
jamly -i "https://youtu.be/VIDEO_ID"
jamly -i "/path/to/local_song.wav"
jamly -i URL -i ANOTHER_URL --audio-format wav
jamly -i URL --model htdemucs_ft
jamly -i URL --model htdemucs_6s
jamly -i URL --replace-existing
  • Piped inputs: Newline-separated URLs, IDs, or file paths can be piped via stdin. For a bare ID starting with -, pass -i=-VIDEO_ID.
  • Single-recording policy: Playlists, search results, multi-item pages, and live/upcoming streams are rejected; pass individual recordings. Cookie/account login is not used.
  • Resume & retry: Running jamly with no -i arguments processes any pending items and retries failed CLI jobs once.
  • Smart cache: Checksum-valid exports are reused without re-downloading or re-separating unless --replace-existing is passed.
Option Default Description
-o, --output-dir DIR ~/Music/jamly Directory for exported audio files
--stem {drums,vocals,bass,guitar,piano,other,all} drums Target stem pair (<stem> + no_<stem>), such as vocals for karaoke, or all for every individual stem
--audio-format {mp3,wav} mp3 320 kbps MP3 (checked with 1 dB decoded peak headroom) or float32 WAV
--model {htdemucs,htdemucs_ft,htdemucs_6s} htdemucs Demucs v4 preset (guitar and piano require htdemucs_6s)
--device {auto,cpu,cuda,mps} auto Inference device selection
-t, --threads N 0 Parallel Demucs worker threads (higher values use more RAM)
--state-dir DIR / --queue FILE Per-user app data Override state directory or queue file path
--dry-run false Preview what would be processed without modifying state
Background Login Service & Updating

Start a CLI installation automatically at login

jamly-service install
jamly-service status
jamly-service restart
jamly-service stop
jamly-service uninstall

jamly-service install registers a per-user systemd unit on Linux, a LaunchAgent on macOS, or a user logon task on Windows using absolute paths and your detected ffmpeg location. Pass --dry-run to preview the generated service definition, or pass pipeline defaults during install:

jamly-service install --audio-format wav --output-dir "/path/to/music" --port 8765

Updating Jamly

  • Desktop package: Click Quit companion, then run brew upgrade --cask kurtisnotcurtis/tap/jamly (macOS), winget upgrade kurtisnotcurtis.Jamly (Windows), or replace the extracted folder/Jamly.app with the new release archive and launch it again. Your queue, settings, and exports are stored outside the application directory and are preserved.
  • CLI install:
    uv tool upgrade jamly-audio-sep
    jamly-doctor
    jamly-service browser
    jamly-service restart
    
    Reload the unpacked browser extension in chrome://extensions after exporting updated assets.
Local HTTP API

The local backend speaks API version 3 on 127.0.0.1. All job, settings, upload, and download endpoints require Authorization: Bearer <token>.

Endpoint Purpose
GET /healthz Public health & api_version check (exposes no paths or credentials)
GET /status (or /items) Queue counts, active stage + percentage progress, and job records with download URLs
POST /add {"inputs":["URL_OR_PATH"],"model":"htdemucs_ft","stem":"vocals","audio_format":"wav","replace_existing":false}
POST /app/upload?name=song.wav Stream raw audio bytes (audio/* or application/octet-stream) into private state and return its local path
POST /settings Persist default model, stem, audio_format, and output_dir
POST /retry/<id> {"replace_existing":false}
POST /app/clear Remove one finished/failed job ({"id":"<id>"}) or all terminal jobs ({}) from the list (keeps files on disk)
POST /app/rescan Scan output_dir/.jamly manifests and repopulate missing exports into the list
GET /outputs/<id>/<kind>?generation=... Download an exported stem (drums, no_drums, vocals, no_vocals, etc.) or metadata for a completed generation
Development, Testing & Packaging

Local development & tests

Requires Python 3.11–3.12, uv, ffmpeg/ffprobe, and Node 24+:

uv sync --locked
python tools/dev-check.py            # run the whole CI suite locally before pushing

tools/dev-check.py reproduces .github/workflows/ci.yml step-for-step (lockstep version check, jamly-doctor, pytest, unittest, ruff, Node extension tests, and a fresh-install wheel smoke) and fails fast on the first broken stage. Opt into the heavier real-model checks:

python tools/dev-check.py --integration    # real Demucs pipeline on synthesized WAV
python tools/dev-check.py --browser         # headless-Chrome companion workflow (~15 min)

Pre-commit / pre-push hooks. tools/hooks/ ships a fast pre-commit gate (no wheel rebuild) and a thorough pre-push gate (adds the audio pipeline); install them once per repo:

git config core.hooksPath tools/hooks

Releasing Jamly

Version metadata is kept in lockstep across Python, the browser extension, the userscript, and the desktop bundle by tools/version.py (--check, --set X.Y.Z). A release is cut atomically with tools/release.py, which bumps every file to a new version and moves the top ## [Unreleased] changelog section into a dated entry while opening a fresh empty one on top:

python tools/release.py bump minor    # start dev on the next version + open [Unreleased]
# ... changes accumulate under ## [Unreleased] ...
python tools/release.py new 0.3.0     # cut the release: set versions + date the changelog
git commit -m "Release 0.3.0"
git tag -a v0.3.0 -m "Release 0.3.0"
git push origin main --tags
python tools/version.py --check --tag v0.3.0

Tag vX.Y.Z must match the package version; PyPI publishing triggers on v* tags. See DESIGN.md for release versioning details and AGENTS.md for contributor guidelines.

Building native desktop archives

Build on the target OS with uv-managed Python 3.12 and a C/C++ toolchain (build-essential pkg-config perl on Linux, Xcode CLT + pkg-config on macOS, or MSYS2 MINGW64 on Windows):

export UV_PROJECT_ENVIRONMENT=.venv-bundle
uv sync --locked --group bundle --managed-python --python 3.12
uv run --no-sync python tools/build_companion.py
uv run --no-sync python tools/bundle_smoke.py --real-models

See DESIGN.md for architecture, security boundaries, and release versioning details, and AGENTS.md for contributor guidelines.


License

Jamly is licensed under the MIT License, covering the jamly application code (src/jamly/) and browser extension/userscript assets (browser/). Third-party runtime dependencies—including Demucs (htdemucs), PyTorch, ffmpeg/ffprobe, yt-dlp, Deno, and bundled native libraries—retain their own licenses.

Only download or process media you are authorized to use, and follow the source site's terms of service.

Metadata

Release files for jamly-audio-sep 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jamly-audio-sep 0.2.3
File Size Uploaded Provenance Actions
jamly_audio_sep-0.2.3.tar.gz 342.2 kB With provenance Details for jamly_audio_sep-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jamly-audio-sep 0.2.3
File Interpreter ABI Platform Actions
jamly_audio_sep-0.2.3-py3-none-any.whl Python 3 none any Details for jamly_audio_sep-0.2.3-py3-none-any.whl

Total release size: 460.3 kB

Release files / jamly_audio_sep-0.2.3.tar.gz

Download URL jamly_audio_sep-0.2.3.tar.gz
Size 342.2 kB
Tags Source
SHA-256 checksum
How to use checksums
18e929f6fe449230b442f9f9cfbbe22e6f0ac8bac9175b7f9c339c1a8212012d
BLAKE2b-256 checksum
How to use checksums
1fb9a87a8c9fbbbba7bc05d34682e9c8af611630285e7bc190ba398c2d8e2585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / jamly_audio_sep-0.2.3-py3-none-any.whl

Download URL jamly_audio_sep-0.2.3-py3-none-any.whl
Size 118.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26d0557a07c3c199b27b72ee7ec53757b9f979f5d1db5ae1aa88e7fc2f50a45b
BLAKE2b-256 checksum
How to use checksums
bd68a838c31137561f16c5b1b762ede04e73ddc92c91e6238d5a08f3fdeb2e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for jamly-audio-sep 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jamly_audio_sep-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page