by TomLeeLive
55 MCP tools to drive the Unity Editor from any MCP-compatible AI agent — scenes, GameObjects, prefabs, assets, tests, and builds. OpenClaw gateway included for remote and chat access.
# Add to your Claude Code skills
git clone https://github.com/TomLeeLive/openclaw-unity-pluginGuides for using ai agents skills like openclaw-unity-plugin.
openclaw-unity-plugin is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by TomLeeLive. 55 MCP tools to drive the Unity Editor from any MCP-compatible AI agent — scenes, GameObjects, prefabs, assets, tests, and builds. OpenClaw gateway included for remote and chat access. It has 107 GitHub stars.
openclaw-unity-plugin's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/TomLeeLive/openclaw-unity-plugin" and add it to your Claude Code skills directory (see the Installation section above).
openclaw-unity-plugin is primarily written in C#. It is open-source under TomLeeLive on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh openclaw-unity-plugin against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
TL;DR: Vibe-code your game development remotely from anywhere! 🌍
한줄요약: 이제 집밖에서도 원격으로 바이브코딩으로 게임 개발 가능합니다! 🎮
Connect Unity to OpenClaw AI assistant via HTTP. Works in Editor mode without hitting Play!
This software is in beta. Use at your own risk.
See LICENSE for full terms.
This plugin supports two connection modes - use whichever fits your workflow:
Telegram/Discord/Web → OpenClaw Gateway → Unity Plugin
Claude Code/Desktop → MCP Server → Unity Plugin
| Mode | Setup |
|---|---|
| OpenClaw | Install plugin + gateway extension; the gateway's bridge token authenticates the connection |
| MCP | Enable MCP Bridge: Window > OpenClaw > Start MCP Bridge — the panel shows the token file MCP clients read |
Both local bridges are authenticated with a per-launch secret. Neither accepts an anonymous caller any more, and neither answers a browser.
Gateway bridge — this add-on is the client. When the OpenClaw gateway loads
the Unity extension it writes a random 32-byte token to
~/.openclaw/unity-bridge.token with mode 0600. This add-on reads it and sends
it as X-OpenClaw-Bridge-Token on POST /unity/register; the gateway answers
with a per-session token that every later request carries as
X-OpenClaw-Session. Each command the gateway queues has a nonce, and this
add-on echoes that nonce with the result, so no other local process can answer in
its place.
MCP bridge — this add-on is the server. When the bridge starts it generates a
per-launch token and writes it to ~/.openclaw/unity-mcp-bridge.token with mode
0600. MCP~/index.js reads that file and sends it as X-OpenClaw-Token. Every
request needs it (401 otherwise), the listener binds 127.0.0.1 only, requests
carrying Origin or Referer are refused with 403, and no CORS headers are sent
— before 1.7.0 it replied Access-Control-Allow-Origin: *, which let any open web
page run Editor tools including script.execute.
| Variable | Effect |
|---|---|
OPENCLAW_CONFIG_DIR / OPENCLAW_HOME |
Where both token files live (default ~/.openclaw) |
OPENCLAW_BRIDGE_TOKEN |
Use this token instead of the files, on both sides |
OPENCLAW_UNITY_ALLOW_LEGACY_UNAUTHENTICATED=1 |
Restore the pre-1.7.0 open MCP bridge. Off by default; the Editor log and the OpenClaw panel say so loudly while it is on. |
Tokens are never written to the Unity console — only the token file's path is.
The 0600 file keeps other users out; a process running as you can read it,
which is the same boundary that protects your SSH keys.
📖 Setup Guide | 셋업 가이드
| Component | Version |
|---|---|
| Unity | 2021.3+ |
| OpenClaw | 2026.2.3+ |
⚠️ Tested on Unity 6000.3 (Unity 6.3 LTS) only.
While designed for Unity 2021.3+, this plugin has only been tested on Unity 6000.3.7f1 (Unity 6.3 LTS). If you encounter issues on other Unity versions, please:
- 🐛 Open an Issue with your Unity version and error details
- 🔧 Submit a Pull Request if you have a fix
Your contributions help make this plugin work across all Unity versions!
Window > Package Manager)+ → Add package from git URL...https://github.com/TomLeeLive/openclaw-unity-plugin.git
Window > Package Manager → + → Add package from disk...package.json fileCopy the gateway extension files to OpenClaw:
# Copy extension files
cp -r OpenClawPlugin~/* ~/.openclaw/extensions/unity/
# Restart gateway to load the extension
openclaw gateway restart
# Verify
openclaw unity status
Note:
OpenClawPlugin~contains the gateway extension that enablesunity_executeandunity_sessionstools. This is required for OpenClaw to communicate with Unity.
See Installation above for Git URL or local package setup.
Window > OpenClaw Pluginhttp://localhost:18789 (default)Ask OpenClaw to inspect your scene, create objects, or debug issues - all without entering Play mode!
The companion skill provides workflow patterns and tool references for the AI:
# Clone skill to OpenClaw workspace
git clone https://github.com/TomLeeLive/openclaw-unity-skill.git ~/.openclaw/workspace/skills/unity-plugin
The skill provides:
Note: The skill is separate from the gateway extension. The extension enables the tools; the skill teaches the AI how to use them effectively.
| Tool | Description |
|---|---|
console.getLogs |
Get Unity console logs (with type filter) |
console.getErrors |
Get error/exception logs (with optional warnings) |
console.clear |
Clear captured logs |
| Tool | Description |
|---|---|
scene.list |
List all scenes in build settings |
scene.getActive |
Get active scene info |
scene.getData |
Get scene hierarchy data |
scene.load |
Load a scene by name (Play mode) |
scene.open |
Open a scene in Editor mode |
scene.save |
Save active scene (Editor mode) |
scene.saveAll |
Save all open scenes (Editor mode) |
| Tool | Description |
|---|---|
gameobject.find |
Find by name, tag, or component type |
gameobject.getAll |
Get all GameObjects with filtering |
gameobject.create |
Create GameObject or primitive |
gameobject.destroy |
Destroy a GameObject |
gameobject.delete |
Delete a GameObject (alias for destroy) |
gameobject.getData |
Get detailed object data |
gameobject.setActive |
Enable/disable object |
gameobject.setParent |
Change parent |
| Tool | Description |
|---|---|
transform.getPosition |
Get world position (x, y, z) |
transform.getRotation |
Get rotation in Euler angles |
transform.getScale |
Get local scale |
transform.setPosition |
Set world position |
transform.setRotation |
Set rotation (Euler) |
transform.setScale |
Set local scale |
| Tool | Description |
|---|---|
component.add |
Add component to object |
component.remove |
Remove component |
component.get |
Get component data |
component.set |
Set field/property value |
component.list |
List available types |
| Tool | Description |
|---|---|
script.execute |
Execute code/methods (Debug.Log, Time.timeScale, PlayerPrefs, reflection calls) |
script.read |
Read script file contents |
script.list |
List script files in project |
| Tool | Description |
|---|---|
app.getState |
Get play mode, FPS, etc. |
app.play |
Enter play mode (Editor) |
app.pause |
Toggle pause (Editor) |
app.stop |
Exit play mode (Editor) |
| Tool | Description |
|---|---|
debug.log |
Write to console |
debug.screenshot |
Capture screenshot (with UI) |
debug.hierarchy |
Text hierarchy view |
| Tool | Description |
|---|---|
editor.refresh |
Refresh Ass |