Authorization notice. Lcu is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. The agent can see and type into any app you approve, including apps that show saved credentials or private messages.
Who it is forA developer running Codex CLI on a Mac or Linux desktop who needs the agent to test or operate a GUI app that has no API.
The problemCodex CLI cannot interact with desktop windows by itself, so GUI-only steps need manual work.
The outcomeCodex CLI can read windows and take screenshots in a desktop app, and each app asks for approval before the agent touches it.
What you need first
- The official ChatGPT desktop app installed locally
- Your agent harness installed (Claude Code, Codex CLI, Pi, or another supported adapter)
- macOS on Apple Silicon, or Linux ARM64 or x86-64 with an active X11 desktop and D-Bus
- Accessibility and screen-recording permissions on macOS, approved during first use
Steps
- Update Codex CLI before setup, as the README requires for hook support.
- Download the archive for your platform and its matching
.sha256file from the latest release, then verify the checksum and extract it. - Run
~/.local/share/lcu/current/bin/lcu setup --agent codexfrom the installed path, since the installer does not addlcuto your PATH. (inferred, check the README) - Follow the setup prompts for desktop-readiness and permission guidance.
- Ask Codex CLI to list the windows of a named app and take a screenshot to confirm the connection. (inferred, check the README)
Prompt for your agent
Using the amontlabs/lcu repo, set up LCU for Codex CLI on this machine by following docs/INSTALLATION.md. Ask me to approve the desktop app named <app name>, then have the agent list its windows and take one screenshot. Report the setup result and confirm the screenshot was taken.
Caveat. The README asks for a Codex CLI update before setup, and Linux support requires an active X11 desktop because native Wayland is unsupported.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page