What is Packwiz?
packwiz uses simple TOML files to define your modpack:- pack.toml - Main modpack definition with metadata
- index.toml - List of all mods in the pack
- mods/*.pw.toml - Individual mod metadata files
Basic Usage
SetPACKWIZ_URL to the location of your pack.toml modpack definition.
Using GitHub for Packwiz Files
A common pattern is to host your packwiz files on GitHub and reference the raw URL:Make sure to use the raw GitHub URL, not the regular GitHub page URL.
Processing Order
packwiz modpack definitions are processed before other mod definitions to allow for additional processing/overrides you may want to perform. Processing order:- PACKWIZ_URL - packwiz modpack
- Generic packs (GENERIC_PACK)
- Modrinth projects (MODRINTH_PROJECTS)
- CurseForge files (CURSEFORGE_FILES)
- Individual mods (MODS)
- Volume mounts (/mods)
Client vs Server Mods
packwiz is pre-configured to only download server mods. Example mod configuration in a .pw.toml file:side:
"server"- Server only"client"- Client only"both"- Both client and server
Complete Example
Create a packwiz modpack
Install packwiz CLI:Initialize a new modpack:Add mods from Modrinth:Or from CurseForge:
Start the server
- Download the pack.toml file
- Parse the modpack definition
- Download all server-side mods from Modrinth/CurseForge
- Install them to
/data/mods - Start the server
Combining with Other Mod Sources
You can use packwiz for your base modpack and add additional mods:Local Development
For local development, you can serve your packwiz files using a local web server:On Linux, use your host IP address instead of
host.docker.internal.Advantages of Packwiz
✅ Version Control - Track mod changes in git ✅ Lightweight - Only text files in your repository ✅ Multi-Source - Support for both Modrinth and CurseForge ✅ Client + Server - Same pack definition for both ✅ Updates - Easy mod updates withpackwiz update
✅ Dependencies - Automatic dependency resolution
Environment Variables Reference
| Variable | Description | Required |
|---|---|---|
PACKWIZ_URL | URL or container path to pack.toml file | Yes |
Troubleshooting
Client mods are being downloaded
Check your mod .pw.toml files and ensure client-only mods have:Mods aren’t updating
Make sure you:- Ran
packwiz updatelocally - Committed and pushed changes to your repository
- Restarted the server container
Can’t access pack.toml URL
For GitHub, ensure you’re using the raw URL:- ✅
https://raw.githubusercontent.com/user/repo/main/pack.toml - ❌
https://github.com/user/repo/blob/main/pack.toml