You can run your own AI agent in the Unreal Assistant panel instead of the Unreal Assistant service. The panel looks the same, but your agent provides the replies, the model, and the tool calls, using your own account with that agent's provider. While an external agent is selected, the panel sends your chat to that agent, not to the Unreal Assistant service.
Use an external agent if you already work with one of these agents and want to keep your own model, settings, and subscription while you work in UEFN.
UEFN starts the agent as a local program and communicates with it over the Agent Client Protocol (ACP). The editor also connects the agent to its UEFN MCP server, so the agent can use the same tools as any other MCP client. For more information, see UEFN MCP.
The panel supports the following AI agents:
Agent | Adapter or Command UEFN Runs | Install |
Claude Code | claude-agent-acp | npm install -g @agentclientprotocol/claude-agent-acp |
Codex | codex-acp | npm install -g @agentclientprotocol/codex-acp |
Cursor | agent acp | Install the Cursor CLI. |
OpenCode | opencode acp | Install the OpenCode CLI. |
Custom | Your own command and arguments | Your own ACP agent |
The npm adapters are published by the Agent Client Protocol project, not by Epic Games.
The panel uses whatever model your agent is set up with. Epic Games hasn't tested local models in the panel.
The OpenCode choice runs a program named opencode on your PATH with the argument acp. If your OpenCode install uses another name, select Custom, enter the full path as the Custom Agent Command, and enter acp as the Custom Agent Arguments.
Prerequisites
Before you start, ensure you have:
Confirmed the UEFN MCP server is running. By default, it starts with the editor, and you can check the Model Context Protocol settings in Editor Preferences. For more information, see UEFN MCP.
Installed Node.js, if you use one of the npm adapters.
Installed the ACP adapter or CLI for your agent. For install commands, see the table above. On Windows, run the install as the Windows account that runs the editor, in a terminal that is not elevated as another account. After the install, restart the editor so it can find the adapter or CLI on your
PATH.Signed in to your own account for your agent. If you already signed in with the agent's own CLI, you don't need to sign in again. Otherwise, run the command for your agent. On Windows, sign in as the Windows account that runs the editor, in a terminal that is not elevated as another account.
Claude Code:
claude-agent-acp --cli auth loginCodex:
codex-acp cli loginCursor:
agent loginOpenCode:
opencode auth login
On macOS, start the editor from Terminal, not from the Dock, Finder, or the Epic Games Launcher. Otherwise, the editor can't find the adapter or Node.js.
The MCP server has no authentication. Any local process, and any browser page served from localhost, 127.0.0.1, or [::1], can call the editor's tools. For more information, see Known Issues in UEFN MCP.
Set Up Your Agent in the Unreal Assistant Panel
To run your own AI agent in the panel, open the panel, then turn on and approve your agent.
Open the Unreal Assistant Panel
To open the panel, in UEFN’s main menu, go to Window > Unreal Assistant, or click Assistant on the right side of the status bar at the bottom of the editor.
Turn On Your Agent
To turn on your agent, follow these steps:
Go to Edit > Editor Preferences. Under General settings, select Unreal Assistant.
Expand External Agent.
In the External Agent dropdown, select your agent (Claude Code, Codex, Cursor, OpenCode, or Custom).
Enable Use External Agent. When your agent is set up, External Agent Status shows the full path to the adapter or command the editor runs.
If you select Custom, two more fields appear, Custom Agent Command and Custom Agent Arguments. Don’t put credentials in either field. This text is visible in the panel and written to the editor log when the agent starts. To pass secrets, use the agent’s environment variables or its own config file instead.
If External Agent Status shows an error with an install command, restart the editor first. If the error is still there after you restart, run the listed install command in a terminal, then restart the editor again.
Approve Your Agent
The first time the editor runs an agent's command in a project (when you enable Use External Agent or change the agent), an approval prompt appears.
If you click Allow, the editor saves your approval for this project and starts the agent in the panel.
If you click Don't Allow, the editor turns Use External Agent off and keeps using the Unreal Assistant service.
After you allow the agent, External Agent Status shows Runs <adapter-path>.
The editor stores approvals per user, per project, and per command line. Learn how to remove an approval in the Troubleshooting section.
Switch Agents in the Panel
The Agent selector in the top-left corner of the panel lists Unreal Assistant and each external agent. Agents whose adapter isn't installed are grayed out.
When you select an external agent, the panel asks you to confirm the switch. If you haven't approved that agent's command in this project yet, clicking Switch also saves your approval, so no second prompt appears.
Selecting Unreal Assistant from the list switches the panel back to the Unreal Assistant service without a prompt. Each agent keeps its own chat history.
Chat with Your Agent
The prompt bar shows your agent's own settings, such as permission mode, model, and reasoning effort. These settings change when you switch agents. For example, Claude Code’s prompt bar looks like this:
With Codex, the prompt bar shows Codex's settings:
The available permission modes (shield icon) depend on the selected agent. For example, Claude Code's modes are Manual, Accept edits, Plan, Auto, and Bypass permissions.
When you prompt the agent to work in or get information from the editor, it calls UEFN MCP tools. To see each call, expand Required Actions.
Troubleshooting
Problem | Solution |
External Agent Status shows | Install the adapter, then restart the editor. The editor reads your |
On Windows, External Agent Status still shows | npm installed the adapter into a folder that isn't on your |
External Agent Status shows | Enter a full path, or a program name on your |
The panel shows "The Unreal Assistant is unavailable". | Click Reconnect. If that doesn't work, restart the editor. Your conversation is kept. |
The panel shows "The agent exited … before it finished replying." | The agent's program stopped. The alert quotes the agent's own error, so follow that error. If it says |
The panel shows "The agent did not answer within 30 seconds." | Check that the command in External Agent Status, in Editor Preferences, starts an ACP adapter, such as |
The prompt bar still shows the previous agent's model. | The agent starts when you send your first message. Send a message, and the settings update. |
Pressing Enter adds a new line. | To send your message, click the send arrow. |
The agent replies but can't see the editor. | Check that the MCP server is running. For more information, see Prerequisites. |