« Back to search

Mod

LLM Connect

by H5N3RG · score 7.3 · license: LGPL-3.0-or-later

LLM Connect

Download latest release

Connecting to various text2text ai models (llm) using the OpenAI compatible API endpoint

chat complex_installation developer_tools gui

⚠️ Important Setup Note

Add the following line to your minetest.conf for API connectivity:

secure.http_mods = llm_connect

About LLM Connect

LLM Connect turns Luanti into a Lua-first AI-assisted development and agent environment. It connects your server to OpenAI-compatible LLM endpoints, local or hosted, and provides integrated chat, Smart Lua IDE tooling, and modular agent skills.

Features

AI Chat

  • Talk to an LLM directly from inside Luanti.
  • Context-aware responses using relevant server and player state.
  • Configurable provider support through OpenAI-compatible endpoints.

Smart Lua IDE

  • In-game editor with code and output panels.

  • AI code generation, explanation and repair workflow.

  • Sandboxed execution for llm_dev.

  • Owner-level development workflow for llm_root.

  • World-backed snippet storage compatible with Luanti 5.16+.

  • Explicit cold reload management through the File Manager:

    • Run executes code transiently.
    • Save persists snippets without enabling startup execution.
    • Enable on Restart loads selected scripts during the next server/world startup.
  • Supports startup registration workflows for generated nodes, tools, entities and crafts.

Lua-first Agent and Skills

  • Dual-channel architecture: visible assistant replies plus structured Lua actions.

  • Centralized execution through the runtime executor.

  • Capability-separated permissions for chat, development, agents and root access.

  • Internal skill modules:

    • command_agent
    • mapgen_painter
    • node_printer_preview
  • External Lua-first skill mods can register through the skill registry and are validated at startup.

Supported API Providers

Any compatible OpenAI-style endpoint may work, including:

  • OpenAI API
  • Mistral API
  • Ollama
  • LocalAI
  • Open WebUI and compatible local gateways

Privileges

Privilege Access
llm AI chat
llm_dev Smart Lua IDE and sandboxed code execution
llm_agent Agent mode and skill tools
llm_root Full LLM Connect owner access

Quick Start

  1. Add secure.http_mods = llm_connect to minetest.conf.
  2. Enable the mod for your world.
  3. Configure your API in-game using /llm_config.
  4. Grant appropriate privileges, for example: /grant <name> llm_root.
  5. Open LLM Connect with /llm.