Fabric API logoFabric API
Home/Guide/Installation
Installation

How to Install Fabric API on Windows, macOS and Linux

Mods folder open on a desktop computer during a Fabric API installation

Installing Fabric API is one of the first tasks anyone faces when they move from vanilla Minecraft to a modded setup. The process is not complicated, but the order of the steps matters, and a single mismatched version can stop the game from starting. This guide walks through the complete installation on Windows, macOS and Linux, covers the most popular launchers, and explains how to confirm that everything is working before you add the rest of your mods.

What you need before you begin

Gather a few things first so the installation runs smoothly:

  • Minecraft: Java Edition. Fabric does not work with Bedrock Edition on consoles, phones or the Windows Store version.
  • A suitable Java runtime. The official launcher bundles the correct Java for each game version. If you use a third-party launcher or run a server, check the requirement: Java 25 for Minecraft 26.1 and newer, Java 21 for 1.20.5 to 1.21.11, and Java 17 for 1.18 to 1.20.4.
  • Your target game version. Decide which Minecraft version you want to play. Every mod you add, including the library, must match it.
  • A few minutes of time. The whole procedure usually takes less than ten minutes.

It is also wise to back up any existing worlds you care about before experimenting with mods. Worlds are stored in the saves folder inside your game directory.

Step 1: Install Fabric Loader

Fabric API is a mod, and mods need a loader. The official Fabric installer is available from the Fabric website and runs on all three operating systems.

  1. Download the installer. Windows users can choose the executable version; macOS and Linux users can use the universal jar.
  2. Open the installer and select the Client tab.
  3. Choose your Minecraft version from the list and leave the loader version on the latest stable release unless a modpack asks for something specific.
  4. Make sure the launcher location points to your game directory, then confirm with Install.

The installer creates a new profile in the official Minecraft Launcher named after the loader and game version. Nothing in your existing vanilla profile is changed.

Locating the game directory

  • Windows: %APPDATA%\.minecraft (paste this into the File Explorer address bar).
  • macOS: ~/Library/Application Support/minecraft (use Finder's Go to Folder option).
  • Linux: ~/.minecraft in your home directory; enable hidden files to see it.

Step 2: Start the Fabric profile once

Open the Minecraft Launcher, select the new Fabric profile and start the game. Wait until the title screen appears, then quit. This first launch downloads the required libraries and creates the folder structure, including the mods directory if it does not already exist.

If the game fails to start at this stage, the problem is with the loader or Java rather than any mod, which makes it much easier to diagnose.

Step 3: Obtain the correct Fabric API build

Open the Fabric API listing on Modrinth or CurseForge and switch to the versions or files tab. Filter the list by your game version and choose the most recent release for it. The file name contains both the library version and the game version, separated by a plus sign. A file such as fabric-api-0.164.0+26.3.jar is library build 0.164.0 for Minecraft 26.3.

Only the number after the plus sign needs to match your game. Within the same game version, newer library builds are generally preferred because mods may require recent features.

Step 4: Place the jar in the mods folder

Move the downloaded .jar file into the mods folder inside your game directory. Do not unzip it; Fabric reads the jar exactly as it is. Make sure there is only one copy of the library in the folder. Duplicate copies, often left over from earlier downloads, cause an error at start-up.

Step 5: Verify the installation

Launch the Fabric profile again. Fabric does not include a mod list screen by default, so the simplest checks are:

  • The game reaches the title screen without an error message.
  • The file logs/latest.log contains a line listing loaded mods, with fabric-api among them.
  • If you install the popular Mod Menu mod, a Mods button appears on the title screen showing Fabric API and its modules.

Once these checks pass, you can add other Fabric mods to the same folder. Each one should match the same game version.

Installing with the Modrinth App

The Modrinth App handles most of the work automatically. Create a new instance, select Fabric as the loader and choose your game version. When you browse and add a mod that depends on the library, the app recognises the dependency and offers to install the matching build at the same time. Each instance keeps its own mods folder, so different setups never interfere with one another.

Installing with Prism Launcher

Prism Launcher is a popular open-source launcher that runs on Windows, macOS and Linux. Create a new instance, pick your game version, then open Edit → Version and choose Install Fabric. Under the Mods tab, use Download mods to search Modrinth or CurseForge directly. Prism resolves dependencies and will add the library when a mod requires it. You can also drag a downloaded jar into the mods list.

Installing with the CurseForge app

In the CurseForge app, create a custom profile, select Minecraft as the game and Fabric as the mod loader, and choose your version. Search for mods within the profile and install them; required dependencies, including the library, are added automatically. The app also makes it easy to update all mods in a profile together.

Platform-specific notes

Windows

If the installer jar opens as an archive instead of running, your system has associated .jar files with a compression tool. Use the Windows executable installer instead, or right-click the jar and open it with Java.

macOS

Gatekeeper may warn that the installer comes from an unidentified developer. Open it via right-click and Open to proceed. On Apple silicon Macs, the official launcher provides a native Java runtime, so no extra setup is needed.

Linux

Most distributions run the universal installer with java -jar fabric-installer.jar from a terminal. If you play through Flatpak, install the loader through the launcher of your choice instead, since the Flatpak sandbox uses its own game directory.

Common installation mistakes

  • Wrong game version. A build for 26.2 will not load in 26.3. Always compare the number after the plus sign.
  • Wrong profile. Starting the vanilla profile instead of the Fabric profile means mods are ignored completely.
  • Wrong folder. Launchers with separate instances use separate mods folders. Place files in the instance you actually start.
  • Extracted files. Unzipping the jar breaks it. Keep the file intact.
  • Outdated Java. Third-party launchers may default to an older runtime. Point them to the version your game requires.

If you still encounter problems, our guide to fixing common errors and crashes covers the messages you are most likely to see and how to resolve each one.

Updating the library after installation

Fabric API receives new builds regularly, and keeping it current within your game version is good practice. Newer builds fix bugs, add hooks that recently released mods may depend on and occasionally improve performance. To update manually, download the latest build for your game version, place it in the mods folder and delete the older file. Leaving both copies in place triggers a duplicate mod error the next time you launch.

Launchers simplify this considerably. The Modrinth App, Prism Launcher and the CurseForge app can all check every mod in an instance for updates and apply them together. Before updating a large profile, it is sensible to back up your worlds and review the changelogs of any mods that interact closely with each other.

Switching or removing versions

If you decide to play a different Minecraft version, do not reuse the same mods folder. Builds for one game version will not load in another, and mixing them causes errors that can be confusing to untangle. The cleanest approach is to create a separate profile or launcher instance for each game version, each with its own library build and mods.

To remove Fabric entirely, delete the Fabric profile from your launcher and remove or rename the mods folder. Your vanilla profile remains untouched throughout, because the Fabric installer never modifies it. Worlds created in a modded profile can still be opened in vanilla, but any modded blocks or items they contain will be lost, so keep a backup if you might return to them.

Conclusion

Installing Fabric API comes down to a clear sequence: set up Fabric Loader for your chosen game version, start the profile once, add the matching library build to the mods folder and confirm that the game loads. Modern launchers can automate most of these steps, but understanding the manual process makes troubleshooting far easier when something goes wrong. With the library in place, your profile is ready for the mods that brought you to Fabric in the first place.