# How to vibe code a game in Unity with Claude Code

> How to vibe code a game in Unity with Claude Code in 2026: Unity's official plugin, an MCP server, the setup steps, the real costs and where it breaks.

Source: https://synagy.org/blog/vibe-code-unity-game-claude-code
Published: 2026-11-06
By: the Synagy team (https://synagy.org)

**Short answer:** to vibe code a game in Unity, you install Unity 6 (free for Personal users), Claude Code ($20 a month on Claude Pro) and a bridge that lets the agent drive the Editor. Unity's official Claude Code plugin adds 29 skills in two commands. An MCP server lets the agent read the console and run Play mode. Then you describe one small feature at a time and test it after every step.

We make Synagy, which has its own Unity package and MCP server. So we are not neutral. Every outside number below links to its source, checked on 2026-11-06.

## What do you need to vibe code a Unity game?

You need three things: the engine, an agent and a bridge between them. The bridge matters most. Without it, Claude Code can only write C# files and guess whether they work.

| Part | What it does | Price |
|---|---|---|
| [Unity 6 Personal](https://unity.com/products/unity-personal) | The engine and Editor | Free under $200K revenue and funding in 12 months |
| [Claude Code](https://claude.com/pricing) | The agent that writes and edits code | Pro $20 a month, or $17 a month billed yearly |
| [Unity's Claude Code plugin](https://docs.unity.com/en-us/ai/unity-plugin/claude-code) | 29 Unity skills plus the Unity CLI | No price stated in the docs |
| An MCP server | Lets the agent see the scene, console and Play mode | Free options exist (see below) |

Claude Code is not part of the free Claude plan. You need Pro or a higher plan.

## Which bridge should you pick?

Pick the bridge by how much you want to pay and which Unity version you use. There are three common choices right now.

- **Unity's official plugin.** Unity [announced it on 9 September 2026](https://unity.com/blog/unity-plugin-for-claude-code). It ships skills such as `/new-unity-project` and `/unity-cli`. It does not use an MCP server itself. Live Editor control runs through the Unity CLI and the Pipeline package.
- **Unity's official MCP server.** It needs Unity 6 (6000.0) or newer, a project linked to Unity Cloud and a trial or subscription to Unity's AI beta. Unity's [getting started post](https://unity.com/blog/unity-ai-how-to-get-started) says it uses no credits. Personal users get it on a 14-day trial.
- **CoplayDev MCP for Unity.** An open-source server under the MIT license. Its [GitHub page](https://github.com/CoplayDev/unity-mcp) lists Unity 2021.3 LTS to 6.x and needs Python 3.10 or newer through `uv`.

**Choose Unity's plugin if … | you use Claude Code and want Unity's own skills for UI, sprites and services**

- **Choose Unity's MCP server if …**: you already pay for Unity Pro or want the trial
- **Choose CoplayDev if …**: you are on Unity Personal or an older version and want a free bridge

Our [Unity MCP servers comparison](https://synagy.org/blog/unity-mcp-servers-compared) goes deeper into five servers, with their tools and limits.

## How do you set it up, step by step?

The whole setup takes a few commands. This is the path with Unity's plugin plus a free MCP server.

**Vibe coding in Unity in five steps**

1. **Install Unity 6**: create an empty 3D project in Unity Hub
2. **Install Claude Code**: sign in with a Pro or higher plan
3. **Add Unity's plugin**: two slash commands inside Claude Code
4. **Connect the Editor**: Unity CLI or an MCP server, then check the link
5. **Build in small steps**: one feature, one Play mode test, one commit

1. Open a terminal in your Unity project folder and start `claude`.
2. Run `/plugin marketplace add Unity-Technologies/unity-agent-plugin`.
3. Run `/plugin install unity@unity-agent-plugin`.
4. For live Editor control, install the Unity CLI, run `unity pipeline install` and keep the Editor open. Then run `unity status` to confirm the link.
5. For an MCP server, add CoplayDev through Package Manager with its git URL. Then use **Window › MCP for Unity › Configure All Detected Clients**.

> **Tip:** put the project in Git before the first prompt. If the agent breaks a scene, you can roll back in seconds.

## How do you prompt so the game actually works?

Ask for one testable change per prompt. "Make a 3D platformer" is too big. The agent writes many files at once, and one compile error stops all of them.

A better first session has four prompts:

1. "Add a player capsule with WASD movement and a jump on Space."
2. "Add a third-person camera that follows the player."
3. "Add five floating platforms and a goal flag at the end."
4. "Show a win text when the player touches the flag."

After each prompt, ask the agent to enter Play mode and read the console. A bridge with console access makes this the most useful habit you can build. Fix errors before you add the next feature.

**Check the code you keep**

The agent can delete or overwrite scripts. Read the diff before every commit, and never paste API keys or passwords into a prompt.

## Where does vibe coding in Unity break?

It breaks in the same places for most people: big prompts, scene files and art. Plan for these four limits.

- **Scenes and prefabs.** They are large YAML files. Agents edit C# far more safely than raw scene data, so let the bridge create objects instead.
- **Art and sound.** Claude Code writes code. It does not draw models or record audio. You still need assets.
- **Cost of long sessions.** A long chat with many files uses up plan limits faster. Start a fresh session per feature.
- **Your own judgement.** The agent does not know if the game is fun. You still have to play every build.

## Where does Synagy fit, and where does it stop?

Synagy is the other way in, if you do not want to run a coding agent at all. The free [Synagy package for Unity](https://synagy.org/unity) works in Unity 6 (6000.0 or newer). It is tested on 6000.0, 6000.3 and 6000.6.

- **Synagy chat:** you describe the game, and our agent crew plans every part with a price in credits. It writes C# scripts, scene objects and materials into `Assets/Synagy/`. Then it compiles, runs Play mode, checks a screenshot and fixes itself. No Claude Code needed.
- **Your own agent:** Claude Code, Codex, Cursor or any other MCP client can drive the Editor through the free Synagy MCP server.
- **Cost:** Synagy is in a free beta. Every account gets 25 Free Credits a day, and payments are paused. Planned plans are on the [pricing page](https://synagy.org/pricing).

Where Synagy stops: it does not draw 3D models inside Unity, and it is not a replacement for knowing your own game design. For a no-agent walkthrough, read [how to make a Unity game without coding](https://synagy.org/blog/make-a-unity-game-without-coding).

## FAQ

### Can you vibe code a Unity game for free?

Almost. Unity 6 Personal and the CoplayDev MCP server are free, but Claude Code needs a paid Claude plan from $17 a month billed yearly. Synagy's chat in Unity runs on 25 Free Credits a day during the free beta, with no agent subscription.

### Does Unity's Claude Code plugin need an MCP server?

No. Unity's docs say the plugin only ships skills and does not use an MCP server. Live Editor control works through the Unity CLI and the Pipeline package. You can still add an MCP server next to it.

### Which Unity version works best for vibe coding?

Unity 6 (6000.0 or newer) is the safe choice. Unity's own MCP server and AI tools need it, and Synagy's package is tested on 6000.0, 6000.3 and 6000.6. CoplayDev also supports Unity 2021.3 LTS.

### Is vibe coding good enough for a real Unity game?

It is good enough for prototypes, game jams and small games. Bigger projects still need someone who reads the code, plays every build and keeps the scenes tidy. Start small, commit often and grow the game one tested feature at a time.
