Claude & Unity setup: have Claude install the Unity CLI and Editor

Translated from the original Traditional Chinese version.

Summary

To learn Unity with AI, the first step is getting your development environment ready. You hand the downloading and installing to Claude, while signing in to your Unity account and accepting the license terms stay your decisions. This article asks Claude in the Claude desktop app to install the Unity CLI and the Unity Editor, and shows where you take over.

Table of contents

To learn Unity with AI, you first need a computer with the Unity Editor installed and an AI that can operate Unity for you. Claude can download, install, and configure these for you, but two things stay yours: signing in to your Unity account and deciding whether to accept Unity’s license terms. This is the first article in the Claude & Unity getting started series. In the Claude desktop app, you ask Claude to install the Unity CLI and the Unity Editor, and you take over when it is time to sign in and accept the license terms.

You and Claude take turns through the whole process:

Flow chart: you install the Claude desktop app, Claude installs the Unity CLI and plugin, you sign in to Unity and activate the license, Claude checks the size and installs the Editor, and the Editor installation finishesFlow chart: you install the Claude desktop app, Claude installs the Unity CLI and plugin, you sign in to Unity and activate the license, Claude checks the size and installs the Editor, and the Editor installation finishes

Claude Code is Claude running commands and editing files on your computer. The Claude desktop app puts it in the Code tab, so you can use it without opening a terminal. I tested on Windows 11. Before you start, get your Claude and Unity accounts and enough disk space for the Editor:

Item Requirement
Claude account A paid plan of Pro or higher. The free plan can’t use Claude Code
Unity account A free Unity ID
Disk space About 10 GB for the Editor and the Windows build module

Install the Claude desktop app and choose the games folder

  1. Download the Windows version from the Claude download page, install it, and sign in with your paid account.
  2. Create the folder C:\UnityGames on the C drive. All your Unity projects will go here.
  3. Click the </> icon at the top left of the window to switch to the Code tab.
  4. In the environment menu below the input box, choose This computer. Then, in the folder menu, choose the C:\UnityGames folder you just created.
  5. At the bottom right of the input box, set the permission mode to Auto.

When you finish, the area below the input box shows This computer, the folder name UnityGames, and Auto:

The Claude desktop app input box. Below it, This computer and the UnityGames folder are on the left, and the model Opus 5.5 High and the Auto permission mode are on the right

In the Auto permission mode, Claude runs the commands that install software and edit files on its own, so you don’t have to click Allow at every step. You can still see every command it ran in the session.

Ask Claude to install the Unity CLI and Unity plugin

The Unity CLI is Unity’s official command-line tool. It installs Editors, manages licenses, and creates projects. For what each command does, see Unity CLI install guide. The Unity plugin is an add-on that Unity made for Claude. It teaches Claude how to use the Unity CLI and how to create a project. With the plugin installed, Claude doesn’t have to look up Unity’s commands online each time.

I wrote the prompts in this series in Chinese. The ones shown here are English equivalents. In the input box, enter:

1I want to learn to make games with Unity. On this Windows computer, install the Unity CLI with winget, then use unity setup claude to install Unity's plugin for Claude Code.

Claude installs the Unity CLI with winget first and then installs the plugin with the Unity CLI:

1winget install --id Unity.CLI -e --source winget --accept-package-agreements --accept-source-agreements
2unity setup claude

winget is the software installer built into Windows, and --accept-package-agreements accepts the terms of use of the Unity CLI installer. unity setup claude installs the Unity plugin from Anthropic’s official plugin marketplace, the catalog Claude Code installs plugins from. The prompt has to name this command. The first time, I wrote only “install Unity’s plugin for Claude Code”, and Claude searched online, found Unity’s plugin source on GitHub, and installed a plugin with the same name from a different marketplace. After both commands finish, Claude reports the installed versions.

A plugin takes effect only in a new session, so start one:

  1. Click New in the sidebar to open a new session.
  2. Choose the C:\UnityGames folder, as before.

Sign in to Unity and activate the Personal license

Signing in and accepting terms both use your own identity, so you don’t hand this step to Claude. You type the commands in PowerShell yourself. Open Windows PowerShell from the Start menu, enter the following command, and press Enter:

1unity auth login

The terminal shows a sign-in URL, opens your browser, and waits for you to finish signing in. My Windows is set to Traditional Chinese, and the Unity CLI printed its messages in Chinese. The screenshot shows the sign-in URL and a message that the CLI is waiting for the browser to finish signing in:

The terminal shows the Unity sign-in URL and a message, in Chinese, that it is waiting for the browser to finish signing in

After you sign in with your Unity ID in the browser, the terminal shows 你已成功登入 (you are signed in) and the account you signed in with:

The terminal shows a message, in Chinese, that you are signed in, along with the signed-in account and organization

After signing in, you also have to activate a license before Unity can open the Editor. For personal learning, you use the free Personal license, which requires that your revenue and funds raised over the last 12 months total less than US$200,000. Before you activate it, read the Unity Editor Software Terms. If you accept them, enter:

1unity license activate --personal --accept-eula

--accept-eula means you accept the license terms. Without this parameter, the Personal license can’t be activated. When the terminal shows 已啟用:Unity Personal Version (activated: Unity Personal Version), the license is active:

The terminal shows, in Chinese, that Unity Personal Version is activated

Ask Claude to install the Unity Editor

Go back to your session with Claude and ask it to install the Editor. The download is several GB, so the prompt asks Claude to report the size and location first:

1I've signed in to Unity and activated the Personal license. Please use the Unity CLI to install the latest Unity 7 Editor, and add the Windows IL2CPP build module. Before installing, tell me how large the download is and where it will be installed.

Claude looks up the latest version and the download size, then stops to report before it starts installing. This is what Claude reported in my test. The table also explains the version number and the module name:

Item What Claude reported, with an explanation
Editor version 7000.0.0a23. 7000.0 is Unity 7, a means Alpha (a test version), and 23 is the 23rd Alpha
Build module Windows Build Support (IL2CPP), the module that outputs your game as a Windows executable
Download size About 3.66 GiB for the Editor and about 0.47 GiB for the IL2CPP module
Install path C:\Program Files\Unity\Hub\Editor\7000.0.0a23

Unity 7 currently has only an Alpha version, which is a test version before the official release and may still have bugs. According to Unity’s roadmap, Unity 7 is expected to ship in the first quarter of 2027.

Claude also lists the command it is about to run and explains that --accept-eula means you accept Unity’s terms of use:

1unity install 7000.0.0a23 -m windows-il2cpp --yes --accept-eula

If the size, location, and terms are all fine with you, reply “OK, install it that way.” Claude runs the installation in the background, and you can keep talking to Claude while it downloads. On my computer, downloading and installing took about 19 minutes and used about 9 GB of space on the C drive. When the installation finishes, Claude checks the Editor and module files itself and then reports that both are installed.

Test notes

Item Details
System Windows 11 physical machine
Claude Claude Code 2.1.329, default model
Unity CLI 1.1.0
Unity plugin 0.1.9-beta
Editor 7000.0.0a23 plus Windows Build Support (IL2CPP)

Before testing, I signed out of my Unity account and removed the Unity CLI, the Unity plugin, and 7000.0.0a23. Then I ran through the prompts in this article from scratch.

Summary

This approach is for beginners who haven’t installed any tools yet and want to learn Unity with AI. The next step is Claude & Unity project creation, where you ask Claude to create your first Unity project.

Further reading

Ted Liou

Ted Liou

Software engineer writing about Unity and AI development.

Comments