Skip to content

    Agent Connect

    Agent Connect lets an agent you already use on your own computer (Codex, Claude Code, Cursor, Gemini CLI, VS Code, or any agent that speaks MCP) work on the open canvas. You copy one setup text into the agent. It installs the Rayzia skill and a small helper, and you press Connect in the tab. After that you type requests in the column, your agent picks them up and draws on the canvas step by step, and every change can be undone. It uses no Rayzia AI credits.

    Where to find it

    In /editor/, press the AI Agent button in the centre of the app bar to open the AI column. In its title menu, choose My agent. The choice is kept. The AI Agent button shows a small green dot while an agent is connected, even with the column closed.

    How to set up your agent once

    1. Open the AI column and choose My agent in its title menu.
    2. Under Which agent do you use?, pick Codex, Claude Code, Cursor, Gemini CLI, VS Code or Other MCP.
    3. Press Copy setup for {agent}. It shows “Copied. Paste it into {agent}”.
    4. Paste the text into a chat with your agent. The agent sets itself up. Then restart the agent once.
    5. As another way, press Download SKILL.md, or press Set it up by hand instead. It shows the config text with its own Copy button and the agent’s own steps.

    How to connect this tab

    1. Under Connect this tab, press Connect.
    2. The status reads “Looking for {agent}…” (“Waiting for the helper on 127.0.0.1:{port}. Is {agent} open?”). Then it reads Connected (“{agent} · this tab · port {port}”).
    3. Check the AI Agent button in the app bar. It shows a green dot while connected.
    4. To cut the link, press Disconnect. The agent loses access at once.

    How to ask your agent

    1. When connected, the column becomes a chat. Type in Ask {agent} to make or change something…, or press a suggestion (Make a jazz night poster, navy and gold; Draw a simple logo for a bakery; Tidy up and name the layers).
    2. Press Send (Enter). “{agent} is working” shows. On the canvas, a cursor labelled “{agent} is drawing” moves where it works.
    3. To stop, press Stop (or Escape). The column says “Stopped. {agent} will wait for your next message.”
    4. To go back to the setup steps, press Setup.

    How to use Marks with your agent

    1. Switch to the Marks tab beside Chat.

    Options

    Control What it does Values Default
    agent Which agent do you use? changes the setup text and the names in the copy. Codex, Claude Code, Cursor, Gemini CLI, VS Code, Other MCP the first
    copy-setup Copy setup for {a} copies the skill, the helper and the private key in one text. button none
    download Download SKILL.md saves the skill file. button none
    manual Set it up by hand instead shows the config text and Copy. link closed
    connect Connect / Disconnect opens or closes the link to the helper. button off
    status Status line: Not connected, Looking for {a}… or Connected. status line Not connected
    safe Is this safe? explains the local helper and the private key. expandable note closed
    prompt Ask {a} to make or change something… holds your request. free text empty
    send Send / Stop sends your request, or stops the agent. button none
    setup Setup goes back to the setup steps. button none
    tabs Chat / Marks switches between the chat and the marks. tabs Chat

    Keys

    Keys When What happens
    Enter In the prompt Sends
    Shift+Enter In the prompt New line
    Escape The agent is working Stops it

    Limits

    • The helper listens only on your own computer, 127.0.0.1, on port 8765 by default, and it answers only the Rayzia editor’s own web address: any other website you have open is refused and can read nothing. Every request needs a private key of 12 random bytes, kept in this browser. The tab proves it holds the key without sending the key itself. If the key changes, copy the setup again. With a wrong key the agent is told “bad token”, the status reads The private key does not match, and you copy the setup again.
    • A helper saved before 12 November 2026 is refused: no command from it runs, and the status reads Update the Rayzia helper with one line to run. Copy the setup again and paste it into your agent (it saves the new helper over the old one), or run the line shown, curl -fsSL https://raw.githubusercontent.com/RayziaOfficial/rayzia-mcp/main/server.mjs -o /full/path/to/rayzia-mcp-server.mjs, with the full path of your copy. Then restart the agent. The tab connects by itself once the new helper answers.
    • If the agent does not pick up a message within 45 seconds, the column says: “{agent} did not take it. Ask it in its own window to “listen for Rayzia prompts”.”
    • The link belongs to one tab (“this tab”). Signing in to another account closes it.
    • Stop tells the agent: “Stopped by the user in Rayzia. Stop working on this task now, do not retry.”
    • The locked card reads “Your agent works on your canvas”, with three steps (Pick your agent; Paste the setup into it; Connect this tab), then Start 14-day free trial (“No card needed”) or Go Pro, $8 a month (“Or $72 a year, save 25%”). Signed out, it reads “Sign in to start the 14-day trial”. Pressing Connect without the plan shows: “Agent Connect is part of Rayzia Pro. Start your 14-day trial to connect your own agent, no card needed.”
    • The column is 300 to 760 px wide (380 by default). It is open by default on screens at least 1280 px wide. On a touch screen under 1024 px it is a bottom sheet.
    • Your agent can use these tools of the helper: get_state, get_svg, get_render, get_catalog, run_command, run_verb, draw, search_assets, preview_assets, place_asset, reply_to_user, wait_for_prompt, and the mark tools (get_marks, add_mark, update_mark, remove_mark, reorder_marks, set_mark_status, report_mark, undo_mark, finish_marks). Extra page verbs include the layers list and the 96 text styles in 13 groups.
    • When a job of the in-app AI Agent runs out of AI credits part way (a request, a Marks run, a comment it was asked to fix), it pauses (see Paused: out of AI credits). Your agent reads it with get_agent_run (the run id, the step, what it needs, the top-up link and what to tell you), goes on with resume_agent_run after you top up, or ends it with stop_agent_run. While the balance is still short, resume_agent_run and ask_agent_on_comment are refused with code no_credits, the top-up link and the run to resume. Nothing of the step that ran out was charged, and it is charged once when the job goes on.

    Plan

    Agent Connect needs Pro or the live 14-day trial. Signed in on another plan, the column shows the locked card.

    See also