Provides integration of any AI agent (Codely CLI, Gemini CLI, Claude Code, Codex CLI, etc.) with the Unity editor using Agent Client Protocol (ACP). Inspired by nuskey's UnityAgentClient package.
Copy the cn.tuanjie.codely.agent-client folder to your Unity project's Packages/ directory.
- Unity 2022.3 or later
-
Configure the AI agent in
Project Settings > Unity Agent Client:- Command: The executable name of your AI agent
- Arguments: Command-line arguments (e.g.,
acp,--experimental-acp) - Environment Variables: API keys and other environment variables
-
Open the AI Agent window from
Window > Unity Agent Client > AI Agent
- AgentWindow.cs: Main editor window for AI agent interaction
- AgentSettingsProvider.cs: Settings provider for project configuration
- AgentSettings.cs: Serializable settings data model
- EditorMarkdownRenderer.cs: Custom markdown renderer for Unity IMGUI
- AgentClientProtocol/: Vendored ACP protocol library
MIT License