LLM Connect
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:
Runexecutes code transiently.Savepersists snippets without enabling startup execution.Enable on Restartloads 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_agentmapgen_painternode_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
- Add
secure.http_mods = llm_connecttominetest.conf. - Enable the mod for your world.
- Configure your API in-game using
/llm_config. - Grant appropriate privileges, for example:
/grant <name> llm_root. - Open LLM Connect with
/llm.
Links
- Source: https://github.com/H5N3RG/LLM-Connect
- Issues: https://github.com/H5N3RG/LLM-Connect/issues
- Website: https://github.com/H5N3RG/LLM-Connect
- Original ContentDB page: content.luanti.org/packages/H5N3RG/llm_connect/
License
LGPL-3.0-or-later
Development state
ACTIVELY_DEVELOPED
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| LLM-Connect 1.3.0 - Multi-chat-gui | 2026-10-01 20:37:57 | 234 KB | Download |