Configuration quick-start
LLMAI uses the OpenAI Realtime API over WebSocket. OpenAI, Grok (xAI), and LocalAI are three provider profiles on the same session model—you configure one place in the editor, then connect with ConnectToAI.
Enable the plugin first: Installation on your projects. Compare provider capabilities (not setup steps) on the Providers comparison table.
Open Project Settings
All provider defaults live under Edit → Project Settings → Plugins → LLMAI.
Set Default AI Provider to the profile you use most often. You can override provider, model, voice, and instructions per session via ConnectToAI or the Terminal demo connection dialog.
Choose a provider
You only need one provider configured to get started. Fill in the subsection that matches your choice.
OpenAI (cloud)
- Open OpenAI Provider under LLMAI Project Settings
- Enter your API Key (platform.openai.com)
- Set Model to
gpt-realtime-2(default for LLMAI v2.2) - Pick a Realtime Voice (for example
alloy)
Grok (cloud)
- Open Grok Provider under LLMAI Project Settings
- Enter your API Key from console.x.ai
- Set Realtime Voice — Ara, Rex, Sal, Eve, or Leo
LocalAI (self-hosted)
- Start a LocalAI Realtime server — see LocalAI Realtime Endpoint
- Set Default AI Provider to
LocalAI - Under LocalAI Provider, set:
- Realtime Base URL — e.g.
ws://localhost:8080/v1/realtime(usews://, nothttp://) - Model — e.g.
gpt-realtime - Realtime Voice — voice ID your TTS backend supports
- Realtime Base URL — e.g.
LocalAI does not require an API key unless your server is configured for authentication.
Verify your setup
Plugin installed
- Create an Actor Blueprint
- Add Component → search for LLMAI Client Component
- If it appears, installation succeeded — if not, see Installation troubleshooting
Realtime connection
- Add LLMAI Client Component to an Actor
- On Begin Play, call Connect to AI
- Use your Default AI Provider, or pass the provider explicitly
- For Grok, pass Voice (e.g.
Ara) - For LocalAI, ensure the server is running first
- Play the level and check Output Log for AI Session Ready
Try a demo (optional)
If you have LLMAI demo content, open Content/LLMAITerminal/Levels/LVL_LLMAITerminal.umap, play in editor, and connect via the Terminal dialog. See the Demo guide.
Troubleshooting
- Upgrading the plugin? See Changelog — Upgrading from a previous version.
- Confirm the correct provider is selected and API Key (or LocalAI Realtime Base URL) is set.
- Check Output Log for errors; run
llmai.debug.EnableAllin the console for more detail. - Cloud (OpenAI, Grok): verify key, credits, network, and WebSocket access.
- LocalAI: verify the server is running and the URL uses
ws://.
For API key priority, environment variables, and advanced settings, see the Configuration reference. Also see the FAQ, Debug and logging, and Installation troubleshooting.