DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to give Codex CLI control of desktop apps on macOS or Linux with Lcu

Register LCU with Codex CLI so the agent can see windows, click, type, and capture screenshots.

Short answer: Update Codex CLI before setup, as the README requires for hook support; then download the archive for your platform and its matching .sha256 file from the latest release, then verify the checksum and extract it; run ~/.local/share/lcu/current/bin/lcu setup --agent codex from the installed path, since the installer does not add lcu to your PATH. All steps.

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

  1. Update Codex CLI before setup, as the README requires for hook support.
  2. Download the archive for your platform and its matching .sha256 file from the latest release, then verify the checksum and extract it.
  3. Run ~/.local/share/lcu/current/bin/lcu setup --agent codex from the installed path, since the installer does not add lcu to your PATH. (inferred, check the README)
  4. Follow the setup prompts for desktop-readiness and permission guidance.
  5. 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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for amontlabs/lcu and "Give Codex CLI control of desktop apps on macOS or Linux"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer