lcu README

The project's README from github.com/amontlabs/lcu. As one markdown file: README.md.

LCU logo

LCU

Codex computer use, decoupled from the Codex app.

https://github.com/user-attachments/assets/bd9d0809-8a6c-4931-a51c-b98daf05cb5f

LCU exposes Codex's original computer-use runtime to your harness without requiring Codex authentication. The official ChatGPT desktop app must still be installed locally: it supplies the runtime and instructions, while LCU handles setup and harness integration.

Quick start

Copy this into your agent:

Install and configure LCU for this harness using the latest release.
Follow https://raw.githubusercontent.com/amontlabs/lcu/main/docs/INSTALLATION.md
Check my OS, architecture, and prerequisites, then guide me through any required permissions.

In Claude Code on an Apple Silicon Mac, two commands do the same through its plugin manager; see Claude Code plugin:

claude plugin marketplace add amontlabs/lcu
claude plugin install lcu@lcu

Features

Approve apps from Claude, natively

The first time an agent controls an app (Zed, Notes, Safari), the computer-use runtime asks you to allow it. The Claude app's Code tab used to fail that request with "Computer Use was not approved". lcu setup --agent claude-code now installs a small Claude Code mod, lcu-approve, that shows the question as a native Computer use approval pane in the Claude app, and in the terminal.

The Computer use approval pane in Claude Code: Allow this conversation, a high-risk app with its warning, and the Approved apps panel

The /computer-use-apps command opens an Approved apps panel in the same place: one line per always-allowed app with Revoke (macOS asks for Touch ID or your password), apps that are no longer installed grouped below, this conversation's grants, and an Allow field.

Only you can answer: the model cannot see, press or fake the pane. High-risk apps show the runtime's own warning (reworded to say "computer use" and "the agent"), and the app hosting the agent is never approved. Needs the Claude app or Claude Code 2.1.287+. How it works, how to remove it.

In the Claude app, register LCU through Claude Code (lcu setup --agent claude-code), not through Settings > Connectors; see installation.

Manage approved apps with Touch ID

"Always allow" is remembered. Review and change that list from the terminal (macOS), without opening the Codex app:

lcu apps                 # what is always allowed today
lcu apps allow Zed       # Touch ID (or your password), then Zed is allowed
lcu apps revoke Zed      # take it back

The Approved apps panel opened with /computer-use-apps

Details.

Permissions

Your harness decides whether the agent may call LCU's tools (Claude's "don't ask again" on the first card, Codex's tool approval, and so on). LCU decides, per app, whether that agent may touch it, in every permission mode. lcu setup --approval auto is optional and meant for unattended machines (VMs, CI): it pre-allows LCU's two model tools in the harness, and leaves per-app approval in force. See approval mode.

Requirements

Install the official ChatGPT desktop app, Python 3.12+, and your harness first. LCU checks the installed app for compatibility and uses its original runtime. For Codex CLI, update before setup to get the required hook support.

Platform Requirements
Linux ARM64 or x86-64 Ubuntu 24.04-compatible glibc system, an active X11 desktop, and D-Bus
macOS on Apple Silicon The signed ChatGPT app, with Accessibility and screen-recording permissions approved during first use

Windows 11 x64 remains a candidate. Intel Macs, native Wayland, and musl Linux are unsupported. See verification and limits for tested behavior.

Install manually

Download the archive and matching .sha256 file from the latest release:

Platform Archive
macOS on Apple Silicon lcu-<version>-darwin-arm64.tar.gz
Linux ARM64 lcu-<version>-linux-arm64.tar.gz
Linux x86-64 lcu-<version>-linux-x64.tar.gz

Follow the installation guide to verify the checksum, extract the archive, and register LCU in your harness. Setup offers an agent chooser and desktop-readiness guidance. Chrome and computer-audio recording are opt-in.

For development, see building from source.

Enable Chrome

Ask your agent:

Enable Chrome control in my LCU setup using the installation guide:
https://raw.githubusercontent.com/amontlabs/lcu/main/docs/INSTALLATION.md#desktop-and-browser

Enable the official extension in your Chrome profile and restart your harness. Then ask it to use LCU to list Chrome tabs. Sites still require approval. Claude Code's Chrome support remains experimental because some interruptions do not trigger tab cleanup; see adapter limitations.

Enable computer-audio recording

Pass --audio when setting up a maintained harness, for example:

~/.local/share/lcu/current/bin/lcu setup --agent pi --audio

The installer does not add lcu to your PATH; run its installed path (/opt/lcu/current/bin/lcu on Linux). See the lcu command.

This enables the installed original runtime's optional computer-audio recording API and its original approval flow. LCU does not add audio-specific instructions, and a saved recording is not audio delivered to the model. See the audio opt-in verification record.

Pi commands

In interactive Pi, /lcu stop requests original Computer Use Stop for a selected app during the active LCU turn (macOS only). /lcu pick selects an original app or browser target and appends it to the editor draft while Pi is idle; review and submit the draft yourself. See adapter command behavior and limits.

Documentation

LCU is MIT licensed. Release archives contain LCU and third-party setup dependencies. The OpenAI app and its instructions come from your local installation and retain their own terms; see dependency provenance.

lcu (amontlabs/lcu)

Searching Database…

1.1K ·GitHub
这是什么?LCU 把 Codex 内置的计算机操作(computer-use)运行时从 ChatGPT 桌面应用中提取出来,暴露给任何 AI 编程 harness(Claude Code、Codex CLI、Pi),让智能体可以在你的机器上点击、输入、读取窗口和截屏,而无需 Codex 认证。
LCU 会取代 ChatGPT 桌面应用,还是仍然需要它?仍然需要它。官方 ChatGPT 桌面应用必须保留在本地安装,因为计算机操作运行时和指令实际上由它提供;LCU 只负责安装配置,并把这个运行时接入你的 harness。
怎么安装和配置?从最新的 GitHub release 下载与你平台(macOS Apple Silicon、Linux ARM64 或 Linux x86-64)匹配的压缩包及其 .sha256 文件,校验校验和,解压,然后把 LCU 注册到你的 harness;在 Claude Code 上也可以改用插件管理器,两条命令即可安装。
运行之前需要装好什么?你需要先装好官方 ChatGPT 桌面应用、Python 3.12+ 和一个受支持的 harness(Pi、Codex CLI 或 Claude Code);如果用 Codex CLI,必须先更新它以获得所需的 hook 支持。
目前哪些平台真正可用?只有带活跃 X11 桌面和 D-Bus 的 Linux ARM64/x86-64,以及 Apple Silicon 上使用签名版 ChatGPT 应用的 macOS。Windows 11 只是「候选」平台,Intel Mac、原生 Wayland 和 musl Linux 均不受支持。
智能体在我机器上操作某个应用时,究竟由谁来批准?只有你自己。批准操作发生在一个模型看不见、按不到也无法伪造的原生面板中,之后你还可以按应用撤销访问权限,在 macOS 上这需要 Touch ID 或你的密码确认。
智能体也能控制我的 Chrome 标签页吗?可以,前提是你在配置中启用了官方 Chrome 扩展。之后 LCU 就能读取和控制标签页,但每个网站仍需单独批准,而且 Claude Code 的 Chrome 支持仍处于实验阶段。
智能体能录制我电脑上的音频吗?只有当你在配置时传入 --audio 才可以。这只是开启底层 ChatGPT 运行时自带的录音 API 和审批流程,LCU 本身不会添加任何音频相关的指令。
在 Pi 里具体能用 LCU 做什么?Pi 会获得两个斜杠命令:/lcu stop 请求对选定的应用执行 Computer Use 停止操作(仅限 macOS),/lcu pick 则选择一个应用或浏览器目标并把它追加到你的草稿中,供你审阅后提交。
为什么要做 LCU,而不是直接使用 Codex 的计算机操作功能?Codex 的计算机操作运行时通常被锁定在 Codex 应用及其自身登录上;LCU 把这个运行时解耦出来,让 Claude Code 或 Pi 等其他 harness 无需 Codex 账号也能使用它。
Creator
amontlabs
Size
13.3 MB
Stars
1.1K
Age
25d
Commits · 90 Days