Modkeel
Compile the mods Mojang left behind
Modkeel is a CLI tool that finds, compiles, and verifies unofficial Minecraft mod forks for versions the original authors don't support. When Mojang releases a patch version (like 1.21.10), major mods skip it -- but community forks exist on GitHub as uncompiled branches. Modkeel finds them, builds them, and validates the output.
Playing the mods, not building them? The Modkeel Companion mod backs up your worlds when your mods change and fixes crashes in one click.
Quick Start
pipx install modkeel # or: pip install modkeel
modkeel compile repos.txt -m 1.21.10 -l neoforge -lv 64 -t "$(cat github_token.txt)"
Quick Demo
Search for a mod
Compile mods from a list
Check status
GIFs generated with VHS. See
demo/README.mdto regenerate.
How It Works
For each repository in your list, Modkeel runs:
- Modrinth Check -- Search for a pre-compiled JAR first (skip compilation if found)
- Fork Discovery -- Search GitHub for compatible forks and independent ports
- Branch Scoring -- Rank branches by version match, loader match, and freshness
- Pre-validation -- Check
gradle.propertiesvia GitHub API before cloning - Cross-loader Fallback -- If no NeoForge match, try Fabric forks via Sinytra Connector
- Compile -- Clone, run
gradlew build, validate output JAR - Multi-pass Dependencies -- Retry failed mods with
mavenLocal()after others succeed - Docker Testing (opt-in) -- Boot a headless MC server to verify mods load
Requirements
- Python 3.10+
- Git (in PATH)
- JDK 17 or 21 (for Gradle compilation)
- Docker (optional, for
--docker-test)
python --version # 3.10+
git --version
java -version # 17 or 21
Installation
pipx install modkeel # isolated install of the `modkeel` command (recommended)
pip install modkeel # or into the current environment
From source, to work on Modkeel itself:
git clone https://github.com/Modkeel/modkeel.git
cd modkeel
pip install -e ".[dev]"
Releases and their notes: GitHub Releases.
Usage
Compile Mods
modkeel compile repos.txt \
--mc-version 1.21.10 \
--loader neoforge \
--loader-version 64 \
--github-token "$(cat github_token.txt)"
Compile and Install to Instance
modkeel compile repos.txt \
-m 1.21.10 -l neoforge -lv 64 \
--instance "/path/to/minecraft/instance" \
-t "$(cat github_token.txt)"
Compile and Test in Docker
modkeel compile repos.txt \
-m 1.21.10 -l neoforge -lv 64 \
--docker-test \
-t "$(cat github_token.txt)"
Search Without Compiling
modkeel search "Create" -m 1.21.10 -l neoforge -t "$(cat github_token.txt)"
Get One Mod
modkeel get "Create" -m 1.21.10 -l neoforge -lv 21.10.64
get (and search, without downloading) tries, in order, and prints what it tried:
- The mod's official build for that Minecraft version.
- An official build for an older version of the same line that still runs on it: its
metadata must allow your version, every Minecraft class it uses must exist there, no
method or field it calls may have been removed or renamed since the version it was
built for, and its mixins must still find their targets (with matching parameters). A
static check, so test it in game (or with
--docker-test). - A community fork compiled for that version (needs a token and
-lv). - Last resort: an older official build refused only by its declared Minecraft range. Modkeel
adds your version to that range, but keeps the result only if its bytecode resolves and a
headless server boots with it (needs Docker). The file is renamed
...+modkeel-relaxed-...and carriesMETA-INF/modkeel-relaxed.txt.
It never downloads a different mod with a similar name: addons are listed separately.
When nothing runs on your version, Modkeel looks for the nearest Minecraft version with an
official build and says so: in a terminal a 15-second countdown starts the search (Enter
starts it now, n stops it); without a terminal it only prints the command to run.
--fallback auto|never decides without asking. A result for another version goes to
out/mc-<version>/ and is never installed into --instance. compile does the same for
the whole list (never with --strict): it proposes a version where more of the mods have
an official build than were built on yours. On the few versions nearest yours, a mod also
counts when its older build passes the static checks there. JARs from the first run that also pass the
static checks on the new version are copied instead of built again; mods with an official
build there are downloaded fresh.
The last lines say what the JAR passed (Evidence: metadata ✓ · linkage ✓ · ...). With
--docker-test, a headless server boots with each result before it is accepted: a JAR that
crashes it (for example a mixin whose target changed) is removed and the next candidate is
tried. Without Docker the JAR is kept and the output says the test did not run.
compile follows the same order for each repository, with one more step after the official
build: the author's own branch for that version, prebuilt or compiled, comes before an older
build. --strict never uses an older build. The report says which source each mod came from
and, for failures, everything that was tried.
Check Status
modkeel status
Legacy:
python mod_auto_compiler.py ...still works but is deprecated. Usemodkeel compileinstead.
Repository File Format
The repos.txt file contains one repository URL per line:
# Base URL -- Modkeel finds the best branch automatically
https://github.com/Creators-of-Create/Create
https://github.com/mezz/JustEnoughItems
# Specific branch
https://github.com/PepperCode1/Continuity/tree/1.21.10/dev
# Comments start with #
Command Reference
modkeel compile
| Option | Description | Default |
|---|---|---|
repos_file |
Text file with repository URLs | (required) |
-m, --mc-version |
Minecraft version | (required) |
-l, --loader |
Mod loader: neoforge, forge, fabric |
(required) |
-lv, --loader-version |
Loader version number | (required) |
-i, --instance |
Minecraft instance path | -- |
-o, --output-dir |
Output directory | out |
-t, --github-token |
GitHub API token | -- |
--strict |
Require exact MC version match | off |
--no-cross-loader |
Disable Sinytra Connector fallback | off |
--docker-test |
Test mods in Docker server | off |
--docker-timeout |
Docker timeout (seconds) | 180 |
--output-report |
Save report to file | -- |
--log-file |
Write log to file | -- |
--no-share |
Skip anonymous data sharing (sharing is not live yet) | off |
modkeel search
| Option | Description | Default |
|---|---|---|
query |
Mod name to search | (required) |
-m, --mc-version |
Minecraft version | (required) |
-l, --loader |
Mod loader | neoforge |
-t, --github-token |
GitHub API token | -- |
modkeel status
No arguments. Shows version, config, cached loaders, and known NeoForge versions.
GitHub API Token
Without a token you're limited to 60 API requests/hour. With a token: 5,000/hour.
- Go to github.com/settings/tokens
- Generate new token > Tokens (classic)
- Select scope:
public_repo(only permission needed) - Save the token:
echo "ghp_xxx..." > github_token.txt
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
gradle.properties not found |
Branch lacks Gradle files | Try a different branch |
Compilation timeout (>10 min) |
Large mod or slow machine | Build manually with ./gradlew build |
GitHub API rate limit exceeded |
No token or too many requests | Use --github-token |
minecraft_version is X, expected Y |
Branch targets wrong version | Expected -- Modkeel tries the next branch |
No JAR file found in build/libs |
Unusual output path | Check build.gradle |
JAR declares incompatible MC version |
Misconfigured mods.toml |
Try another branch |
Contributing
See CONTRIBUTING.md for development setup, testing, and PR guidelines.
License
MIT License -- see LICENSE for details.
Metadata
Release files for modkeel 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modkeel-0.1.2.tar.gz | 628.1 kB | With provenance | Details for modkeel-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modkeel-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for modkeel-0.1.2-py3-none-any.whl |
Total release size: 800.0 kB
Release files / modkeel-0.1.2.tar.gz
| Download URL | modkeel-0.1.2.tar.gz |
|---|---|
| Size | 628.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f679926b5c61385058ad1a10d8362765a047379e695581bb58b013884704d452
|
|
BLAKE2b-256 checksum How to use checksums |
cef15c8e3e836c7c1db8d6c350aa0d5e8025a45c9a607a5be4bed8b85012eddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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 Oct 8, 2026.
Transparency logRelease files / modkeel-0.1.2-py3-none-any.whl
| Download URL | modkeel-0.1.2-py3-none-any.whl |
|---|---|
| Size | 171.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b592f5cf2b3ab40b3153384f0ca48be7f05ca382e1105f04969d6f41303bc12a
|
|
BLAKE2b-256 checksum How to use checksums |
75957d18ddf39294a0a2411603e33ad155fbeace76abc0d49507f41ab8193d99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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 Oct 8, 2026.
Transparency logSecurity for modkeel 0.1.2
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.
Attestation for modkeel-0.1.2.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 Oct 8, 2026.
Transparency logA 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.