Codex Managed Channel adds a lifecycle-controlled SSH route from Codex Desktop to an existing remote Mac. It launches the official Codex app-server and the official Computer Use plugin on that remote Mac, while reclaiming abandoned process groups and file descriptors after archive, disconnect, or bounded idle.
This is an unofficial community project. It is not an OpenAI product and does not modify or redistribute ChatGPT Desktop, Codex, or Computer Use components.
Use this project when Codex Desktop already reaches a remote Mac over SSH, you want the remote Mac's official Computer Use and plugin environment, and abandoned app-server/MCP children need a bounded cleanup policy. It is not a general-purpose SSH client, a replacement agent harness, or a Linux/Windows remote-workspace solution.
flowchart LR
A[Local Codex Desktop] -->|dedicated SSH alias| B[Restricted SSH entry]
B --> C[Managed supervisor]
C --> D[Official Codex app-server]
D --> E[Remote workspace]
D --> F[Official Computer Use and plugins]
C -->|ordinary idle| H[Thread unsubscribe]
C -->|archive, lifecycle limit, or hard FD pressure| G[Scoped process-group cleanup]
An ordinary long-lived remote channel can leave app-server, MCP, Node REPL, and pipe resources behind when clients disappear unexpectedly. This project puts a small supervisor at the SSH boundary, gives each connection an isolated app-server socket, observes only lifecycle metadata, and reaps only the process group it created.
Prerequisites: macOS on both sides, ChatGPT Desktop and Codex already installed and authenticated on the remote Mac, and a working administrative SSH alias.
curl -fsSL https://raw.githubusercontent.com/fantasyce/codex-managed-channel/v0.2.1/install.sh | \
sh -s -- --remote example-host --alias example-managed \
--repository fantasyce/codex-managed-channel --version v0.2.1The installer verifies the release checksum before generating a dedicated Ed25519 key or changing either SSH configuration. For a review-first procedure, see Installation.
After installation, restart Codex Desktop if the new SSH alias is not listed,
then open example-managed like any other remote connection.
For a fully synthetic, machine-neutral demonstration of install, use, reclaim, and uninstall, see the 90-second walkthrough.
Version 0.2.0 adds fixed per-client sessions, bounded reattachment, guardian cleanup, and in-place idle-thread unsubscribe. It passed the complete Rust and installer suites, strict linting, isolated official-runtime lifecycle scenarios, source and Git-history privacy scans, and release-archive validation. The acceptance used only synthetic identifiers and retains no machine or account data. See the redacted acceptance record.
Version 0.2.0 does not isolate FD limits per tool call. A descendant can exhaust its own process limit without immediately crossing the app-server thresholds; the hard safety action still stops the whole owned runtime. See Bounded recovery.
- no telemetry and no analytics;
- no private key leaves the client Mac;
- no public network listener is created;
- existing SSH configuration and authorization lines are preserved;
- archive and idle cleanup use a cancelable drain window;
- active turns are not reclaimed by the idle policy;
- ordinary idle cleanup first unloads idle threads without disconnecting SSH;
- unsupported SSH or Desktop layouts fail closed.
See Architecture, Security model, Compatibility, and Troubleshooting.
If you tried the release on a real remote Mac, use the short verified install report to record whether installation, connection, and lifecycle cleanup worked. Use neutral aliases and never paste keys, account identifiers, host details, task IDs, or raw SSH and Desktop configuration.
./uninstall.sh --remote example-host --alias example-managedLogs and managed state are retained by default. Explicit permanent state removal
requires --purge purge.
MIT. Third-party products and trademarks remain the property of their owners.