How to control Unity from terminal-based AI tools like Claude Code, Codex CLI, and Gemini CLI.
We prepared a detailed guide for those who want to control Unity with ChatGPT (Codex CLI).
This guide is for users who want to control Unity with AI tools other than Claude Desktop, Cursor, or VS Code (Copilot).
If you're using Claude Desktop, Cursor, or VS Code (Copilot), please see the Setup Guide (one-touch configuration available).
Install the CLI tool for your preferred AI service.
Anthropic's official CLI. Powerful code understanding and generation.
npm install -g @anthropic-ai/claude-codeOpenAI's official CLI. Available with ChatGPT Plus or higher.
npm install -g @openai/codexGoogle's official CLI. Free tier available (60 requests/min).
npm install -g @google/gemini-cliFor VS Code or Cursor extensions (like Codex extension), this method is also required.
Extensions cannot use the editor's MCP settings, so they connect via HTTP API.
In Unity menu: Tools β Synaptic Pro β Setup Window

Click HTTP Server tab to switch

Click Copy Prompt Template button

Paste the prompt to Claude Code, Codex CLI, Gemini CLI, etc.

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.
π‘Pro Tip: Automate with Skills
Using CLI's Skills feature, you don't need to paste the template every time.
How to set up:
Thanks: Synaptic AI user
Click Start HTTP Server button and you're done!

You're all set!
Now just talk to the AI. Try saying "create a red cube" to test it out.
Node.js is not installed. Please install from nodejs.org.
Check if Unity Editor is running. Also verify Synaptic AI Pro is installed.
Make sure you're working in the Unity project folder. Check that Assets/Synaptic AI Pro/MCPServer folder exists.
On Windows PowerShell, 'curl' may be an alias for Invoke-WebRequest. Try using 'curl.exe http://localhost:8086/health' instead.