HomeJavaModsONNX Spigot
ONNX Spigot

onnx-spigot

A Spigot plugin that runs local ONNX LLM models, provides in-game chat via a trigger, and exposes a Bukkit service API for dependent plugins.

Features

Model Folder

Place your model files in:

plugins/onnx-spigot/models/<model-name>/

Required files:

Optional files:

Set <model-name> in plugins/onnx-spigot/config.yml under llm.model.

Model Support

Qwen3-0.6B-ONNX (Confirmed Working)

  1. Download the model from: https://huggingface.co/onnx-community/Qwen3-0.6B-ONNX

  2. Create a folder at plugins/onnx-spigot/models/Qwen3-0.6B-ONNX/.

  3. Copy the model files into that folder:

    • *.onnx (for example model.onnx)
    • tokenizer.json or vocab.json
    • Optional: merges.txt, tokenizer_config.json, config.json
  4. Set this in plugins/onnx-spigot/config.yml:

    llm:
      model: "Qwen3-0.6B-ONNX"
    

API Usage (from another plugin)

import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import tr.alperendemir.onnxSpigot.api.OnnxChatApi;

RegisteredServiceProvider<OnnxChatApi> registration =
        Bukkit.getServicesManager().getRegistration(OnnxChatApi.class);
if (registration != null) {
    OnnxChatApi api = registration.getProvider();
    api.generate("Explain redstone clocks in one paragraph.")
            .thenAccept(response -> Bukkit.getLogger().info(response));
}

Build

./gradlew.bat clean build
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more