ChatGPT PlusBeginner Friendly

How to Control Unity with ChatGPT (Codex CLI)

Step-by-step setup guide for ChatGPT Plus users

Why is setup required?

ChatGPT doesn't support local MCP connections, so a slightly more complex setup is needed. Unlike Claude Desktop or Cursor, one-touch setup isn't available, but following this guide will get you up and running.

Before You Start

  • 1Synaptic AI Pro package imported into Unity
  • 2ChatGPT Plus subscription or higher
  • 3
    Node.js 18 or later installed(nodejs.org)

Import UnityPackage

Import the purchased UnityPackage file into Unity.

Drag UnityPackage to Assets folder
  1. Open your Unity project
  2. Drag and drop the UnityPackage file into the Assets folder
  3. Click 'Import' when the import dialog appears
0

Install Node.js

Skip if already installed

Node.js is required to run the Synaptic MCP server. It's a JavaScript runtime that anyone can use - just install and you're ready.

Check if installed

node -v

If a version number appears (e.g., v20.10.0), you're good. If you see "command not found", installation is required.

Installation steps

  1. nodejs.org Download the LTS version from nodejs.org
  2. Run the installer (default settings are fine, just click Next)
  3. After installation, close and reopen your terminal before proceeding
1

Install Codex CLI

Install Codex to use ChatGPT from your terminal.

Install command:

npm install -g @openai/codex

Verify installation:

codex --version

If a version number appears, you're good

Important: How to run Codex

After installation, run Codex with just "codex" - NOT "openai codex".

βœ“codexCorrect (use this)
βœ—openai codexWrong (won't work)

Launch Codex

After installation, launch Codex from your terminal.

codex

First-time launch requires signing in with your ChatGPT account.

πŸ’‘

Model Selection Tip

Models with 'codex' in the name are code-optimized but may have weaker conversation abilities. If things aren't working well, try changing the model.

/modelto view and change models

Recommended: Latest general-purpose models like gpt-5.2 may work more reliably.

Reasoning Level

Models like gpt-5.2 let you select reasoning level. It's a tradeoff between performance and speed.

Low (fast) β†’ Medium (default) β†’ High β†’ Extra High (accurate)

If responses feel slow, try Low. It's sufficient for simple tasks.

How to Use (6 Steps)

2

Open Setup Window

From Unity menu: Tools β†’ Synaptic Pro β†’ Setup Window

Step 2: Open Setup Window
3

Switch to HTTP Tab

Click the HTTP Server tab to switch

Step 3: Switch to HTTP Tab
4

Copy Prompt

Click Copy Prompt Template button

Step 4: Copy Prompt
5

Paste to CLI

Paste the prompt to Codex

Step 5: Paste to CLI

Key Point

Since it just hits HTTP endpoints, CLI can run from any directory. The server is started from Unity, so no cd commands needed in CLI.

Now just talk to the AI. Try saying "create a red cube" to test it out.

"Create a red cube""Create a Cube for Player""Move MainCamera back a bit"

πŸ’‘Pro Tip: Automate with Skills

Using Codex CLI's Skills feature, you don't need to paste the template every time.

How to set up:

  1. Copy prompt from Unity Setup Window's HTTP tab
  2. Tell Codex: "Create a skill with this content"
  3. From now on, the template is applied automatically

Thanks: Synaptic AI user

6

Start HTTP Server

Click Start HTTP Server button and you're done!

Step 6: Start HTTP Server

You're all set!

Connected to Unity! Now you can control it with just conversation. Try saying "create a red cube" to test it out.

Troubleshooting

'node: command not found' error

Node.js is not installed. Please install from nodejs.org.

Codex stuck loading

Check if your ChatGPT Plus subscription is active. Also check OpenAI status page for outages.

'Connection refused' error

Make sure Unity Editor is running and Synaptic AI Pro is installed.

Back to CLI Integration Guide
Synaptic AI - Professional AI Tools for Unity & Creative Software