Before You Get Started

Minecraft Setup

Confirmation

Installation Guide

Here is a video guide detailing how to setup everything required for the AI Companion Mod. Alternatively, you may read the written guide below.

Here’s a checklist of everything you should have setup/downloaded:

Downloads/Tutorials for these respective files can be found by clicking on them.

Now that you have forge installed, you can simply navigate to your Minecraft installation folder and place the mod jar file into the mods folder. Your Minecraft installation folder can be found by clicking the windows button, then typing %appdata%.

To confirm the mod and forge have been setup properly, launch minecraft and create a new world. You should be able to see the companion next to you, as well as an error message in the chat. If not, you have setup forge wrong or placed the mod in the wrong place and should double check this.

Screenshot of a Windows File Explorer window showing a list of folders and files on the C: drive, including directories like .minecraft
Minecraft game screenshot showing a girl. Error messages in red text indicate connection failure and retry prompts.

Server Setup

API Key Setup

The next step is to setup the server app. Upon running the executable file, you should see an app which looks like this. Before starting the server, you’ll need to properly setup your API keys.

ElevenLabs

To create an ElevenLabs API key, head here. When creating your API key, make sure to enable Text To Speech permissions or else you will get an error. Note that the ElevenLabs API comes with a free trial, but after that you will have to pay and add credits.

OpenAI

To create an OpenAI API key, head here. Note that the OpenAI API does not come with a free trial and to use it at all you must pay and add credits to it. The billing page where you manage your credits can be found here.

Screenshot of an AI companion server interface showing the console tab.
Screenshot of ElevenLabs API key creation page.
Screenshot of OpenAI API key creation page.

Importing Your API Keys

Next you will need to import your API keys to the server app. To do this, navigate to the settings tab. Paste in your two API keys and then click the refresh button to save them. You will only need to do this once and in future, your API keys should automatically be loaded upon opening the app. If you wish to clear the API key you have currently set, simply click the clear button.

Starting The Server

If you have done everything correctly so far, you should be ready to start the server. Navigate back to the console page of the app and click the green “Start” button. Any errors the server app encounters will be logged in red in the terminal on the right of the app. A list of commonly encountered errors and their solutions can be found here. Finally, back in Minecraft run the command

/retryConnection ws://127.0.0.1:8000

And the companion should now successfully receive all your actions and respond accordingly. Check out here for a list of everything the companion can do, here for how you can customise it and here for solutions to any errors you may encounter.

Screenshot of the Minecraft Forge downloads page showing latest and recommended downloads
Screenshot of an AI Companion Server settings page with fields for entering API keys for OpenAI and ElevenLabs.
Screenshot of AI Companion Server interface showing status as RUNNING and a WebSocket server running on ws://0.0.0.0:8000.
Minecraft character with orange hair and blue outfit standing by a tree at night.