Easy Ollama Plugin and Samples for Unity

EasyLocalLLM is a Unity library that makes it easy to use a local LLM (Ollama / wllama). With just a few lines of code, you can build offline AI chatbots and natural in-game NPC conversations.
OllamaConfig or WllamaConfigGet running in just a few lines:
using EasyLocalLLM.LLM;
using UnityEngine;
public class QuickStart : MonoBehaviour
{
void Start()
{
var client = LLMClientFactory.CreateOllamaClient();
StartCoroutine(client.SendMessageAsync(
"Hello!",
response => Debug.Log($"AI: {response.Content}")
));
}
}
Prerequisites: Ollama server is running at localhost:11434, and the mistral model is installed.
For setting up Ollama itself, or building a game that includes Ollama server management, see Inference Server Setup.


For detailed usage, API reference, sample code, and troubleshooting:
The Samples/ folder includes the following sample scenes:
This library is provided under the MIT License.
MIT License
Copyright (c) 2026 EasyLocalLLM
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Samples/ folderBring the power of AI to your Unity games with EasyLocalLLM! 🎮✨