LLMAI Plugin Installation Guide

The LLMAI plugin is distributed as source code that compiles automatically when you enable it. This ensures compatibility with all Unreal Engine 5.6+ versions on Windows 64-bit platforms.

Installation Steps

Step 1: Extract Plugin

  1. Download and extract the LLMAI plugin from fab.com or other distribution source
  2. Copy the LLMAI folder to your project's Plugins/ directory:
YourProject/ └── Plugins/ └── LLMAI/ # Complete plugin folder here

Step 2: Enable Plugin & Auto-Compile

  1. Open your Unreal Engine project
  2. Go to Edit > Plugins
  3. Search for "LLMAI"
  4. Check the Enabled checkbox
  5. Click "Yes" when prompted to compile the plugin
  6. Wait for compilation to complete (1-3 minutes depending on system)
  7. Restart the editor when prompted
Note: The plugin will compile automatically from source code. This works with both Blueprint and C++ projects.

Step 3: Configure AI Service

Choose one of the following options:

Option A: OpenAI (Cloud Service)

  1. Go to Edit > Project Settings
  2. Navigate to Plugins > LLMAI
  3. Enter your OpenAI API Key:
    • Enter your key in "Default OpenAI API Key" field
    • Alternative methods if needed:
      • Environment Variable: Set LLMAI_OPENAI_API_KEY or OPENAI_API_KEY
      • Command Line: Launch with -OpenAIKey=your_key_here parameter
  4. Optionally adjust other settings like default model and voice
Note: The plugin checks for API keys in this priority order and uses the first valid key found.

Option B: LocalAI (Offline/Local Processing)

For offline operation, use the LLMAI LocalAI distribution (available separately):

See LocalAI Quick Start Guide for download and setup instructions.

Verification

Test Plugin Installation

  1. Create a new Actor Blueprint
  2. Add Component > Search for "LLMAI Client Component"
  3. If the component appears in the list → Installation successful!
  4. If not found → Check troubleshooting section below

Test Basic API Connection

  1. Add LLMAI Client Component to any Actor
  2. In Begin Play: Add "Connect to AI" node
  3. Set parameters: Model = gpt-realtime, Instructions = You are helpful
  4. Play the level and check Output Log for connection status
  5. Look for: "AI Session Ready" message = Success!

Test Complete Setup

If you have the complete LLMAI project with demos, try the LLMAI Terminal Demo:

  1. Open level: Content/LLMAITerminal/Levels/LVL_LLMAITerminal
  2. Play in editor
  3. Connect to AI using the dialog
  4. Chat with AI to verify everything works

Troubleshooting

Plugin Not Appearing in Plugin List

Compilation Errors

Plugin Compilation Taking Too Long

API Connection Issues

For OpenAI:

For LocalAI:

Complete Documentation

For comprehensive guides, demos, and examples beyond basic plugin installation:

This installation guide focuses specifically on the plugin. For quick-start tutorials, demo walkthroughs, and integration examples, refer to the main project documentation.