AI Game Newsaigame.news
Home / Tools and guides / Guide

LGUI, a game UI framework for agents

Build and test game UI in the browser with FairyGUI and TypeScript, then export to Unity. Official plugins cover Claude Code, Codex, and OpenCode. Checked on December 3, 2026.

LGUI, a game UI framework for agents
Image source: LGUI ↗

Overview

LGUI is a source-available game UI framework from Lumio Games, made for AI agents. Screens live as FairyGUI data in a ui/ folder, and game logic is TypeScript in an MVC layout. You preview, test, and take screenshots in the browser, without opening a game engine first.

What it can do

It can build layouts, interactions, landscape/portrait variants, and localization, then check rules, run flow tests, and capture screenshots by command. The same screens and code can be exported to Unity with lgui unity export. Game code should call only the lgui API, not engine APIs directly. The official README lists working web and Unity backends; adapters for Cocos Creator, LayaAir, Unreal, and others are described as possible but not provided yet.

How to install

The simplest path is to send the official repository URL, https://github.com/LumioGames/LGUI, to the agent you already use and ask it to follow the README. The documented clients are Claude Code, Codex, and OpenCode. You need Node 24 or later, plus Chrome or Edge.

If you prefer to do it yourself: on Claude Code run claude plugin marketplace add LumioGames/LGUI, then claude plugin install lgui@lumio-lgui. On Codex run codex plugin marketplace add LumioGames/LGUI, then codex plugin add lgui@lumio-lgui. For OpenCode and other clients, follow the README, clone the repo, and use the plugin/ folder. You can also skip skills and use the CLI: node <plugin-dir>/tools/lgui.mjs.

How to use

After install, the README says skills take effect in a new session. From there you can just tell the agent what interface you want, for example: “Use LGUI to build a shop screen that works in both landscape and portrait.” or “Use LGUI to make an in-game inventory and equipment panel with multiple languages.”

If you prefer to drive the steps yourself, run lgui doctor, then lgui init, then lgui dev to open a browser preview. Later commands include lgui check, lgui test, lgui verify, and lgui unity export. See the official README for the full loop.

Compatible platforms

The install section documents Claude Code, Codex, and OpenCode. The repository description also names Cursor and DeepSeek Harness / DSH, but the README treats them as “other clients” that load plugin/skills/; this page did not verify those paths separately. Unity export targets Unity 6000.6.x with PuerTS Core/V8 3.0.3; other Unity versions need your own adaptation. The Unity backend has no WebSocket yet and reports LGUI-RT-001 when that is used.

Notes and license

Checked on December 3, 2026 (Beijing time): the README version badge was 0.6.0, and GitHub showed 183 stars. The license is PolyForm Shield 1.0.0 plus LumioGames terms: you may use it to make products, including commercial games, but not to build a competing UI framework, editor, or game-development tool. The LICENSE text is authoritative. This page is a short intro; follow the official README for commands.