Prepare your development environment
Prepare a GS2 tutorial project and an empty Unity scene. The GS2 account created here is a developer account for managing game settings.
Screenshots show the Japanese interface. The steps below use English interface labels.
1. Register with GS2
Register a developer account on the GS2 website (new tab). Verify your email address using the link you receive, then log in to the management console (new tab).
2. Create a tutorial project
- Open Project → Project list → Create project.
- Enter
adventureas the name and “Adventure game practice” as the description. - Select East Asia as the first region to enable. The tutorial code also connects to East Asia (
ap-northeast-1). - Review the plan and other details, then click Create.

Project names can contain letters, numbers, hyphens, and underscores. If you already have a tutorial project, you can use it with the East Asia region enabled.
3. Find the connection credentials for Unity
In your project’s East Asia region, open Deploy → Stack list → Default → Output list. Use these two values in Unity’s connection settings.
| Output name | Unity field |
|---|---|
ApplicationClientId | Client ID |
ApplicationClientSecret | Client Secret |
4. Prepare Unity and tools
Create an empty Unity project and save the scene as Adventure.
With Studio, you choose features in the app and enter settings in tables. With SDK (Unity), you write GS2 settings and C# code yourself. With Agent, you ask a coding agent to build what you want, then play the finished game yourself to check it. Select a tab below to see the setup steps for that approach.
Switching to a different approach partway through is not supported. Whichever approach you choose, start from this setup chapter.
- Install the desktop app from the GS2 Studio download page (new tab).
- On the start screen, choose Create project, name it
Adventure, and choose a folder. This project stores the design files on your computer. - Select Simple at the top right. The left sidebar shows Home, Add features, Tables, and Publish.
- Download the GS2 SDK for Unity installer.
- In Unity, choose Assets → Import Package → Custom Package…, select the downloaded file, and click Import.
- Open Window → Game Server Services → SDK Installer and click Install.
- In Window → Package Manager, check that GS2 C# SDK and GS2 SDK for Unity have been added.

Install UniTask
The SDK examples in this tutorial use UniTask’s async / await.
- In Window → Package Manager, search the installed packages for UniTask.
- If it is not installed, open + → Install package from git URL…, enter the following URL, and click Install.
https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.5.11Once importing finishes, you can use SDK methods such as LoginAsync() and ModelAsync().
In the Agent course, the agent creates both the settings and the code. Your part is to prepare the tools, sign in to GS2, and play the game built in each chapter to check it. This tutorial has been tested from start to finish with Claude Code on macOS.
You do not need to note the values from “3. Find the connection credentials for Unity” above. The agent sets them in Unity. If you have a GS2 project that you used for another course, create a separate project (for example, adventure-agent). Replace the GS2 project name adventure with that name in two places: the sign-in command below, and the line “The GS2 project is adventure” in each chapter’s request. If you use the same project, settings with the same names conflict and deployment fails.
1. Install the tools
- Install the desktop app from the GS2 Studio download page (new tab) and launch it once. On macOS, when GS2 Studio asks whether to make the gs2studio command available from the terminal, install it. You can also install it later from the menu with Install ‘gs2studio’ Command in PATH. On Windows, the installer adds it.
- Install the LTS version of Node.js (new tab).
- Install the Unity 6 Editor or later from Unity Hub.
- Install a coding agent. With Claude Code, run the following inside the agent to install the skill for using GS2 Studio.
/plugin marketplace add gs2io/gs2-studio-dsl
/plugin install gs2-studio@gs2-studio-dslFor other agents, copy the plugins/gs2-studio/skills/gs2-studio folder from gs2io/gs2-studio-dsl (new tab) into the agent’s skills folder.
- Install Unity’s command-line tool so that the agent can operate Unity. On macOS, run the following in Terminal. With Claude Code, also install the skill for using it with
/plugin install unity@claude-plugins-official.
curl -fsSL https://unity.com/install.sh | bashOn Windows, run irm https://unity.com/install.ps1 | iex in PowerShell.
2. Create a working folder and a Unity project
- Create a working folder (for example,
adventurein your home folder). In this tutorial, always start the agent in this folder. - Instead of creating the empty Unity project described above, create a new project named
AdventureUnityinside the working folder in Unity Hub. An empty template such as Universal 3D is fine. - Save the scene as
Adventure. - If your game will show Japanese text, download the Noto Sans JP font file (new tab) with Download raw file and put it in
AdventureUnity/Assets/Fonts.
3. Sign in to GS2
Run the following in your own terminal. It asks for the email address and password of your GS2 developer account. To keep your password away from the agent, do not let the agent run this command. Type it yourself.
gs2studio login --project adventure --region ap-northeast-1If gs2studio is not found, open a new terminal window. On macOS, you can use '/Applications/GS2 Studio.app/Contents/MacOS/GS2 Studio' instead of gs2studio. If the agent later says that no sign-in is saved, or that the saved sign-in was refused (for example, after you change your password), run the command again.
If your account asks for a one-time code at each sign-in, your sign-in is not saved. In that case, the agent cannot deploy to GS2, so run the deploy commands the agent gives you in your own terminal.
4. Have the agent check your setup
Start the agent in your working folder and give it the following request.
In this folder, I am going to build a small adventure game with GS2 and Unity.
Do not build anything yet. Check the following three things and tell me the results.
1. Whether you can find the GS2 Studio command (look for it as the gs2-studio skill says)
2. Whether I am signed in to the GS2 project adventure (region ap-northeast-1)
3. Whether you can operate the Unity Editor that has AdventureUnity in this folder open.
If the Unity project needs anything set up for you to operate it, do that too.
If anything does not work, tell me what I need to do, without technical terms.You are ready when
- Running
gs2studio guidein the terminal shows a guide to the steps -
gs2studio loginfinished without errors - The agent’s report says all three things work
Even if the agent cannot operate Unity, you can continue. Add “I will operate Unity myself, so write down the steps for me.” to the end of each chapter’s request, and operate Unity yourself by following the steps the agent writes.
