Minecraft Instance Install
To start using Voyager, you should first make sure to have an official Minecraft game (version 1.19) installed.
There are two ways to start a Minecraft instance for Voyager. Sometimes GPT-4 will write an infinite loop that runs forever. In this case, there'll be a request timeout. Using Azure login can automatically resume the running if there's a request timeout.
Option 1: Microsoft Azure Login (Recommended)
Using this method will allow Voyager to automatically resume when there's a request timeout. This is dependent on the minecraft-launcher-lib library.
- Sign in to Azure Portal.
- Go to Azure Active Directory.
- Click on the
App Registrationstab on the left panel. - Click on the
New registrationbutton. - Fill the form with the following values:
- Name:
YOUR_APP_NAME - Supported account types:
Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts - Redirect URI Type:
Public client/native (mobile & desktop), Value:https://127.0.0.1/auth-response(If you getKeyError: 'access_token'in the end, you can try to change the type toWeb, see FAQ for more information)
- Name:
- Click on the
Registerbutton. - The
Application (client) IDwill be yourclient_id. - [Optional] Go to the
Certificates & Secretstab and click on theNew client secretbutton. Fill the description by yourself. After you clickAdd, you will see your value, this will be yoursecret_value. - Go to your Minecraft install location
YOUR_MINECRAFT_GAME_LOCATION/versions, and check all the versions you have. All the folder names are your validversionvalue.
After these steps, you will finally get your azure_login information:
azure_login = {
"client_id": "CLIENT_ID FROM STEP 7",
"redirect_url": "https://127.0.0.1/auth-response",
"secret_value": "[OPTIONAL] SECRET_KEY FROM STEP 8",
"version": "MINECRAFT VERSION YOU WANT TO USE",
}
Voyager use fabric-loader-0.14.18-1.19 version to run all the experiments. You may not have this version currently, you can move on to the Fabric Mods Install section and follow the instructions there to install the fabric version of the game.
Option 2: Minecraft Official Launcher
After you install official Minecraft, you should have a Minecraft official launcher, open it, and follow the instructions here:
- Select the version you want to play and start the game.
- Select
Singleplayerand create a new world. - Set Game Mode to
Creativeand Difficulty toPeaceful. - After the world is created, press
Escand selectOpen to LAN. - Select
Allow cheats: ONand pressStart LAN World. - You will see a port number in the chat log, that is your
mc-port, use this number to instantiate Voyager later.