▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Viper LLM
Viper LLM

Viper LLM

A server-side Fabric mod that bridges Minecraft chat to LLM providers (OpenAI, Anthropic, Gemini, Ollama, OpenRouter, LM Studio). No client mods required.

Оцените первым
740
1

ViperLLM

ViperLLM is a Fabric mod that connects vanilla Minecraft chat to Large Language Model providers. Players talk to AI assistants through normal chat, and the assistants can read live game data (inventory, recipes, position, weather, containers, signs, books and more) through a built-in @tool system. It works on dedicated servers and in singleplayer (integrated server). No client mod is required: vanilla clients can join a ViperLLM server and use it immediately.

Supported providers: OpenAI, OpenRouter, LM Studio, Ollama, Anthropic and any OpenAI-compatible endpoint, with automatic endpoint detection and fallback.

Supported versions

MinecraftJavaLoader
1.21.121Fabric Loader 0.19.x
26.125Fabric Loader 0.19.x
26.225Fabric Loader 0.19.x
26.325Fabric Loader 0.19.5

Download the file whose version number matches your exact Minecraft version (for example 1.0.0+1.21.1 for Minecraft 1.21.1). Mixins are version-exact, so mismatched builds will not load.

Installation

Singleplayer: put the jar in your client's mods folder and launch the Fabric profile. Open your world and run the setup commands below (cheats must be enabled).

Dedicated server: put the jar in the server's mods folder and restart. Connect with any vanilla client. No API key is bundled: each player configures their own key with the commands below.

Setup

/llm configure cloud
/llm set cloud apikey YOUR_API_KEY
/llm test
/llm ask Hello!

For a local model server (LM Studio / Ollama, operator only by default):

/llm scan http://192.168.1.50:1234
/llm configure local http://192.168.1.50:1234 qwen3.5-4b YOUR_API_KEY
/llm select local
/llm set local model list

Commands

CommandDescription
/llm configure <id>Create and activate an instance from global defaults
/llm configure <id> <url> <model> [api_key]Detect and configure a custom endpoint, optionally with API key
/llm scan <url> [api_key]Detect endpoint format and available models (key used only for the scan)
/llm select <id>Select an existing instance
/llm delete <id>Delete an instance
/llm infoShow profile and active-instance details
/llm testSend an OK test through the active instance
/llm ask <message>Send a message to the active LLM
/llm upload <url> <message>Send a media URL with a prompt
/llm clearmemoryClear conversation memory (short-term history and long-term summary)
/llm mode PRIVATE|GLOBALChange response routing mode
/llm globalToggle routing all of your chat to the LLM (messages stay visible in chat)
/llm commandsToggle command-tool permission for your profile
/llm set <id> apikey <key>Set a per-instance API key
/llm set <id> url <url>Change an instance endpoint
/llm set <id> model <name>Change an instance model
/llm set <id> model listShow available endpoint models as an in-game book
/llm set <id> prompt <text>Append custom instructions after the built-in rules
/llm set <id> temperature <0-2>Change sampling temperature
/llm set <id> timeout <5-120>Set the HTTP timeout in seconds
/llm set <id> prefix <text>Change the response prefix
/llm set <id> color <code>Change the response color
/llm set <id> context playerdata <true|false>Toggle player-data context
/llm set <id> context inventory <true|false>Toggle inventory context
/llm set <id> context recipes <true|false>Toggle recipe context
/llm set <id> context maxrecipes <number>Set the recipe context limit

LLM tools

The assistant calls these itself when it needs live data. Tool calls never appear in chat, only the final answer. Malformed tool markup (for example DSML-style output from small local models) is repaired into real tool calls automatically, and the model is asked to retry when a call cannot be parsed.

ToolReturns
@player_statsDimension, health, food, XP, game mode, position
@inventoryHeld items, armor, hotbar and full main inventory (all 27 slots)
@search_recipesCrafting recipes for an item (fuzzy fallback, modded namespace:item supported)
@search_items / @search_blocksMatching registered item / block IDs
@biome / @time / @weather / @difficultyCurrent biome, time and phase, weather, difficulty
@effectsActive potion effects with durations
@look / @standing / @spawnTargeted block, block below, world spawn
@nearbyNearby entities plus what the player is looking at
@onlinePlayers currently on the server
@enchantEnchantments on the held item
@statsDeaths, damage, kills, play time, distance
@advancementsCompleted advancements
@read_bookTitle, author and pages of a held or stored book
@chest_invContents of the looked-at chest, barrel, shulker, hopper, ender chest or minecart
@read_signFront and back text of the looked-at sign
@find_blockNearest matching block within the configured radius
@look_aroundFull environment summary
@commandRuns a Minecraft command with the player's own permission level
@toolsLists available tools

Global configuration

File: config/viperllm.json (restart the server after editing).

FieldDescription
defaultProviderProvider type used for default instances
defaultModelDefault model identifier
defaultUrlDefault full chat endpoint
defaultApiKeyOptional global fallback key, empty by default
defaultMaxTokensDefault output-token ceiling
defaultTemperatureDefault sampling temperature
defaultTopPDefault nucleus-sampling value
debugExtra diagnostic logging
contextPlayerDataGlobal player-data context default
contextInventoryGlobal inventory context default
contextRecipesGlobal recipe context default
contextMaxRecipesGlobal recipe context limit
allowCommandExecutionServer-wide master switch for @command (default true)
allowPrivateNetworkScanningLet all players scan LAN endpoints (default false)
allowPrivateNetworkScanningForOperatorsLet operators scan LAN endpoints (default true)
findBlockRadiusSearch radius for @find_block (default 16)

The default system prompt is built into the mod. /llm set <id> prompt <text> appends your own instructions on top of it.

Safety

  • @command needs both the global and the per-player switch, and it always runs with the owning player's own permission level. It never elevates permissions.
  • Localhost and LAN endpoint scanning is restricted to operators unless the server config opens it, so normal players cannot use the scanner as a network probe.
  • API keys are stored as plaintext in server-side profiles (world/viperllm/players/<UUID>.json). Protect the world directory and backups.

License

MIT. Requires Fabric Loader only. No Fabric API needed.

Партнёрский материал

Как поиграть с друзьями с модом Viper LLM?

Мод Viper LLM куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Viper LLM будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки


Детали

Лицензия:
Опубликован:3 месяца назад
Обновлён:2 недели назад
Главная