Skip to main content

KHIDL

NOTE: THIS PROJECT IS NOT AFFILIATED WITH KHINSIDER.

Download soundtracks from KHInsider with a simple CLI.

Installing

Download the latest version from PyPi using pip with the following command.

pip install khinsider-dl

You can also download the .whl file from the github releases here and install it with pip install.

There's an AUR package available too: python-khidl

Usage

Download

khidl download [soundtrack id/url]

This command will download the specified soundtrack to a named directory in the current working directory.

khidl download minecraft output --format flac --no-images

This command will download the minecraft soundtrack to a directory called output. If the second positional command is left empty it will download the soundtrack to a new directory named after the requested soundtrack.

The --format flag can be used to specify the requested music format. All soundtracks are available in mp3 format. Most soundtracks have other optional formats, like flac or m4a. If a soundtrack is unavailable in the requested format, the program will stop and notify the user about available formats. If the user specifies the format as nomusic, the program will not download music, only images.

The --no-images argument makes sure khidl doesn't download images belonging to the soundtrack.

For more detail please read the help page:

khidl download -h
khidl search [query]

This command will query the KHInsider database for soundtracks containing the query. Afterwards it will print the result to the terminal in a pretty table.

khidl search lonely rolling star --song

This command will search the database for songs with the query 'lonely rolling star'. Afterwards it will return all soundtracks with a song that features the query.

khidl search returns the name and ID of the soundtrack, as well as the year of release. You need to pass the ID into the download function to download the ost.

Note that searcing for a specific song is considerably slower, it can take about 10 seconds to show data.

Using the -j (json) option will make the program write the search results to a new json file for use with the batch downloader.

khidl search -j ggxrd.json "guilty gear xrd"

This will create a new file ggxrd.json containing the search results from the query "guilty gear xrd". Searching for songs and saving them in json works the same.

Batch

To create the default configuration, run

khidl batch --init

This creats a soundtracks.json. In this file, you can specify multiple soundtracks to be downloaded. For each soundtrack you can set the requested download format.

The example showcases all options and ways to configure it. There is a JSON schema included, please use it, as it will warn you before running the script if you have made an error.

You can specify the name of a json file by putting it at the end of the command. When running --init, this will create the base configuration in a file with that name. When running normally, you can use this to specify the exact json file to be loaded. By default the script will create and use soundtracks.json

The script will validate the json before parsing it. This behavior can be stopped by using -f/--force. This is intended for testing and development only. If the formatting is wrong the program will crash.

Special thanks

Special thanks to KHInsider for the incredible database.
Special thanks to obskyr's khinsider.py project.

Metadata

Release files for khinsider-dl 1.4.0

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

Built distribution (wheel)

Table of built distributions (wheels) for khinsider-dl 1.4.0
File Interpreter ABI Platform Actions
khinsider_dl-1.4.0-py3-none-any.whl Python 3 none any Details for khinsider_dl-1.4.0-py3-none-any.whl

Release files / khinsider_dl-1.4.0-py3-none-any.whl

Download URL khinsider_dl-1.4.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6416218808e97ee7bc29ba663083a14e10568f79cba7a22596654b3fa9752593
BLAKE2b-256 checksum
How to use checksums
ff0f6da89c5b720c38c37f0c4d38f8a1e8b866d9d2ec5198e66a329846848121
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log

Security for khinsider-dl 1.4.0

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

1 file in this release has been uploaded with provenance metadata.

Attestation for khinsider_dl-1.4.0-py3-none-any.whl

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 Sep 4, 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