AI Assistant

Build and change your scene by chatting with an AI assistant inside the Creator Hub.

The Creator Hub can run an AI assistant that sees your open scene and edits it for you. Ask it to place items, wire up behavior, write scripts, or run the preview and check the result.

πŸ“” Note: The assistant runs a coding CLI that you install and sign into, with full access to your machine, the same reach it has in your terminal. Only enable it if you trust what you ask it to do.

Where its settings live

The assistant is on by default. Its settings have their own tab:

  1. Click the Creator Hub logo in the top-left corner and select Settings.
  2. Go to the AI tab.

That tab holds the Enable AI Assistant switch, the Bill this to an API key instead option, the Connect list of coding CLIs, and the Expose AI assistant MCP server settings.

When the assistant is on, an AI Assistant button (the sparkles icon) appears in the editor's top bar, to the left of the Code button. Click it to open the chat panel beside your scene.

The editor top bar, with the scene name on the left and the sparkles AI Assistant icon, Code, Preview and Publish buttons on the right.

The AI Assistant panel when first opened: a New chat dropdown and a CLI dropdown reading Claude at the top, a welcome message, an About AI usage card, a Selection chip naming the selected entity, and the Ask Assistant input at the bottom.

Connect a coding CLI

The assistant does not use an API key of its own. It runs a coding CLI that you install and sign into, so the work is billed to that tool's own subscription.

Four are supported:

CLI Install Sign in
Claude npm i -g @anthropic-ai/claude-code claude
Codex npm i -g @openai/codex codex login
Cursor npm i -g cursor-agent cursor-agent login
Gemini npm i -g @google/gemini-cli gemini

You can do this from inside the Creator Hub. In the settings, on the AI tab under Connect, each detected CLI shows its status and a Sign in link that runs the login for you and opens your browser. A green dot and Connected mean it is ready. Sign out disconnects it.

If you prefer to do it yourself, open the Via Terminal section under a CLI. It gives you the exact Install and Sign In commands to copy.

πŸ“” Note: Gemini has no Sign in button. Its login only runs as an interactive session, so sign in by running gemini in a terminal, or set a GEMINI_API_KEY in your environment.

The same setup card appears in the chat panel itself the first time you open it with no CLI connected.

πŸ’‘ Tip: If you have more than one CLI signed in, a dropdown in the chat panel lets you switch between them.

Bill to an API key instead

If you would rather pay per token than use a CLI subscription, switch on Bill this to an API key instead on the AI tab of the settings. It reads your provider's API key from your environment: ANTHROPIC_API_KEY, OPENAI_API_KEY, CURSOR_API_KEY or GEMINI_API_KEY. This is off by default.

What it can do

The assistant works on the scene you have open. It can:

  • Edit the scene: create and delete entities, change components, place smart items, attach scripts, and read and write scene.json.
  • Write code in your scene's files.
  • Run the preview and drive it: take screenshots, walk around, click things, read the logs, and check performance.
  • Read your selection, so you can select an entity and say "make this one taller".

Changes are saved as they happen and go into the normal undo history. To take back a whole exchange at once, use Undo AI changes on the assistant's reply.

The AI Assistant panel docked at the right of the editor after a request to rename an entity and add a Mesh Renderer: the reply lists the tools it ran, describes the result, and shows an Undo AI changes button beneath it.

While the assistant works, its changes show up live in the entity tree and the canvas.

The full Scene Editor with the AI Assistant panel docked on the right, the renamed Stage entity visible in the entity tree, and the assistant's reply ending with Undo AI changes.

Working with the chat

  • New chat starts a fresh conversation.
  • Chat history lists earlier conversations with how long ago they ran. Conversations are saved per project, so reopening a scene brings its chats back.
  • Open in a separate window pops the assistant out into its own window, which is handy on a second monitor. Dock back in the editor returns it.
  • The panel can be dragged wider or narrower.

An About AI usage card reminds you that the assistant consumes tokens from your connected account. Keep an eye on that account's usage.

If your Claude CLI is too old, the panel shows a warning. Run claude update in a terminal to fix it.

Decentraland skills are installed for you

When the assistant runs, the Creator Hub downloads the official Decentraland SDK Skills and links them into your project, so the assistant follows verified SDK7 patterns instead of guessing.

They are linked at .claude/skills and .agents/skills inside your project folder, and both are added to a .gitignore for you, so they never end up in your repo.

Files the assistant leaves in your scene folder

The assistant can read and edit your open scene through a local MCP server. Each CLI is told about that server differently, so depending on which one you use, you may find new files in your project:

CLI What appears in the scene folder
Cursor .cursor/mcp.json, plus .cursor/rules/creator-hub.mdc
Gemini .gemini/settings.json
Claude Nothing. The configuration goes in a temporary file outside your project.
Codex Nothing. The configuration is passed on the command line.

If you already have one of those configuration files, the Creator Hub merges its entry into it instead of overwriting your own servers.

πŸ“” Note: .cursor/mcp.json is the one file that contains the access token itself, because Cursor's configuration format has no way to read it from the environment. The Creator Hub adds it to your .gitignore before writing it, so don't commit it or remove that line. The Gemini file references the token through a $CREATOR_HUB_MCP_TOKEN environment variable instead, so it holds no secret and isn't ignored.

Use your own AI tool instead

If you already work in Claude Code, Cursor, Codex, or another tool that speaks MCP, you can point it at the open scene rather than using the built-in panel. MCP (Model Context Protocol) is a standard way for an AI tool to call out to another program.

  1. Open the main menu from the Creator Hub logo, select Settings, and on the AI tab expand Expose AI assistant MCP server.
  2. Click Copy configuration.
  3. Paste it into your tool's MCP configuration.

The copied configuration looks like this, with a real port and token filled in:

{
  "mcpServers": {
    "creator-hub": {
      "type": "http",
      "url": "http://127.0.0.1:<PORT>/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" }
    }
  }
}

For Claude Code, you can instead add it from a terminal in your scene folder:

claude mcp add --transport http --scope local creator-hub http://127.0.0.1:<PORT>/mcp \
  --header "Authorization: Bearer <TOKEN>"

πŸ“” Note: The port and the token are new every time the Creator Hub starts. If your tool suddenly gets a 401 error, copy the configuration again. The server only listens on your own machine, and only ever acts on the scene you have open.