Connect
Cloud tasks
| Task | CodexCodex 0.163.0 |
|---|---|
| Send to cloud | Cloud CLI codex cloud exec |
| Bring work back | Cloud CLI codex cloud applytask diff only |
Sessions
| Task | CodexCodex 0.163.0 |
|---|---|
| List sessions | App Server RPC thread/listthread/loaded/list for running threads |
| Read history | App Server RPC thread/readpaginated turns/items |
| Resume | App Server RPC thread/resume |
| Fork | App Server RPC thread/fork |
| Join running work | App Server Same App Server thread multiple subscribed clients |
| Answer approvals | App Server protocol Server approval requests |
| Receive updates | App Server protocol Server events |
| Stop a turn | App Server RPC turn/interrupt |
Execution
| Task | CodexCodex 0.163.0 |
|---|---|
| When the client disconnects | Remote Control daemon Daemon stays running foreground needs its process |
| Restart and recovery | Remote Control daemon Stop, restart or updates may interrupt work 60s shutdown grace |
| Where tools run | App Server and desktop SSH App Server: server host Desktop SSH project: SSH host |
Build an integration
| Task | CodexCodex 0.163.0 |
|---|---|
| ACP | Community ACP adapter Community @agentclientprotocol/codex-acpstdio |
| API or SDK | App Server protocol App Server JSON-RPC |
| Custom relay clients | Hosted Remote Control relay No supported public custom-client relay API established |
Research and evidence
Codex CLI, Source inspected, Remote execution not tested
- App Server and daemon remain experimental; account, managed policy and client rollout can gate relay use.
- Direct listener authentication and provider-relay enrollment are separate.
- Hosted relay internals, cross-device rollout and end-to-end pairing were not runtime verified.
- Source inspection and official documentation establish implementation or documented behavior, not a passing end-to-end remote probe.
- connect: Run
codex app-server --listen ws://127.0.0.1:4500on the execution host andcodex --remote ws://127.0.0.1:4500through an SSH forward. App Server also has stdio and local Unix-socket transports; these carry its own JSON-RPC protocol, not ACP. Since 0.171.0, usecodex exec --remote ws://127.0.0.1:4500 "Summarize this project"for a noninteractive turn. The remote client sends thread/start for a new thread or thread/resume for a resume request. - auth: At 0.163.0 an unauthenticated non-loopback WebSocket listener is refused. Configure
--ws-auth capability-tokenor--ws-auth signed-bearer-token; supply client credentials through--remote-auth-token-env. Use TLS termination or an SSH/VPN boundary for network traffic. This replaces the August rollout claim that unauthenticated non-loopback listeners were allowed. - The client rejects sending remote auth tokens over non-loopback plain ws://; use wss:// or loopback ws:// through a secure forward. Listener TLS termination is separate from the listener itself.
- 0.164.0 remote credential masking is gated by credential_masking (under development; default off at this source pin), executor capabilities and network-proxy configuration. Supported Bash/Zsh paths can broker credentials, including snapshot handling. Unsupported conditions can warn and run unmasked; do not promise universal secret redaction.
- relay:
codex remote-controlenables provider-relayed access to a host App Server.start,stopandpairare separate subcommands; pairing creates a short-lived manual code. Default invocation uses a managed daemon when eligible and otherwise a foreground server;--no-daemonforces foreground. This is a managed-device relay path, not documentation of a public custom-client relay API. App Server also registers remoteControl enable/disable/status, pairing start/status, and paired-client list/revoke RPCs; those control-plane methods do not make the hosted relay a supported public transport for arbitrary clients. - Relay authentication requires ChatGPT account credentials; API-key authentication is rejected. Managed allow_remote_control requirements and host/client enrollment still apply.
- cloud:
codex cloud execsubmits a task to a provider cloud environment;codex cloud applyapplies an attempt's diff locally. This is a cloud task/diff workflow, not attachment to the original local process or full conversation teleport. Desktop SSH projects are another host choice, with execution on the SSH host. - history: App Server separates stored
thread/listfrom in-memorythread/loaded/list.thread/readreads metadata; paginated turns/items load history.thread/resumereopens or attaches a thread for subsequent turns and subscribes to events;thread/forkcreates a new thread from stored history. Listing or reading history alone does not attach to active work. - 0.164.0 resume lookup includes compressed rollouts. App Server restores persisted approval/profile/model settings while preserving explicit override and managed-policy boundaries; this does not establish identical desktop host UI behavior.
- attach: Clients can subscribe to a thread already loaded in the same App Server. A live attachment shares that server-owned thread; resuming a historical rollout in another process is a separate operation. Disconnect removes connection bookkeeping rather than automatically shutting down every loaded thread.
- controls: Clients receive server-initiated approval requests and streamed events. Use
turn/interruptfor turn cancellation; unsubscribing or dropping the connection is a separate action. Pending connection-scoped requests and command-execution resources have their own disconnect cleanup. - lifetime: The managed daemon is detached from an individual TUI; leaving that client does not stop the daemon.
remote-control --no-daemonbelongs to the foreground process. Explicit stop, restart and eligible automatic updates can interrupt active or queued work; shutdown grace defaults to 60 seconds. Shared clients inherit the daemon environment, without per-client environment isolation. - 0.166.0 lowers the default
thread_unload_delay_secsfrom 1800 to 60. An App Server thread with no subscribers and no activity becomes eligible for unloading after one minute unless that setting is raised. - workspace: Repository files and shell execution belong to the selected local or SSH host. The viewing phone or desktop does not acquire its own copy of the workspace through attachment. App-specific host support, account access and connectivity remain separate from the open-source transport. Codex 0.172.0 carries the server working directory and runtime workspace roots as path strings in App Server thread responses. The server resolves incoming turn workspace roots, so clients on another operating system can preserve server paths.
- acp: Codex ACP uses the community
@agentclientprotocol/codex-acpadapter over stdio, which drives App Server. Native App Server network connectivity does not make Codex a native ACP server. - ACP adapter research retains its 2026-10-15 version boundary; this remote refresh is not a new adapter runtime probe.
- embedding: App Server is the custom-client integration surface. CLI dispatch constructs the runtime, selects a listener, applies managed remote-control policy, and starts transport handling. The hosted relay service and desktop/mobile clients are outside this source audit; matching RPC names do not prove a supported third-party relay protocol.
- codex rust-v0.163.0: codex-rs/cli/src/main.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server-transport/src/transport/websocket.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server/src/lib.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/cli/src/remote_control_cmd.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server-transport/src/transport/remote_control/auth.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server-daemon/README.md, Documentation, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server/src/request_processors/thread_processor.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server/src/message_processor.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server-protocol/src/protocol/v2/thread.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server/src/message_processor.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server-client/src/remote.rs, Source code, checked 2026-10-19
- codex rust-v0.163.0: codex-rs/app-server/src/request_processors/remote_control_processor.rs, Source code, checked 2026-10-19
- Codex 0.163.0 cloud CLI operations, Source code, checked 2026-10-19
- Codex documentation: connect the CLI terminal UI, Documentation, checked 2026-10-20
- codex rust-v0.163.0: thread list and loaded-thread list handlers, Source code, checked 2026-10-20
- Codex App Server documentation: list, Documentation, checked 2026-10-20
- codex rust-v0.163.0: thread read and paginated history handlers, Source code, checked 2026-10-20
- Codex App Server documentation: read, Documentation, checked 2026-10-20
- codex rust-v0.163.0: thread resume handler, Source code, checked 2026-10-20
- Codex App Server documentation: resume, Documentation, checked 2026-10-20
- codex rust-v0.163.0: thread fork handler, Source code, checked 2026-10-20
- Codex App Server documentation: fork, Documentation, checked 2026-10-20
- codex rust-v0.163.0: server-initiated command approval request, Source code, checked 2026-10-20
- Codex App Server documentation: approvals, Documentation, checked 2026-10-20
- codex rust-v0.163.0: thread notifications sent to subscribed connections, Source code, checked 2026-10-20
- Codex App Server documentation: stream, Documentation, checked 2026-10-20
- codex rust-v0.163.0: turn interrupt implementation, Source code, checked 2026-10-20
- Codex App Server documentation: cancel, Documentation, checked 2026-10-20
- Codex documentation: App Server protocol, Documentation, checked 2026-10-20
- Codex exec remote thread requests, Source code, checked 2026-11-24
- Codex CLI remote endpoint dispatch, Source code, checked 2026-11-24
- Codex exec endpoint selection, Source code, checked 2026-11-24
- 2026-10-24 release review: codex mask-gate, Source code, checked 2026-10-24
- 2026-10-24 release review: codex mask-caller, Source code, checked 2026-10-24
- 2026-10-24 release review: codex mask-warning, Source code, checked 2026-10-24
- 2026-10-24 release review: codex snapshot-mask, Source code, checked 2026-10-24
- Codex remote host connections (hosted client boundary), Documentation, checked 2026-10-19
- Codex App Server client protocol, Documentation, checked 2026-10-19
- 2026-10-24 release review: codex resume-files, Source code, checked 2026-10-24
- 2026-10-24 release review: codex resume-settings, Source code, checked 2026-10-24
- 2026-10-24 release review: codex resume-caller, Source code, checked 2026-10-24
- Codex 0.163.0 daemon start and restart implementation, Source code, checked 2026-10-20
- Codex 0.166.0: codex-rs/core/src/config/mod.rs, Source code, checked 2026-10-30
- Codex 0.166.0: codex-rs/app-server/src/request_processors/thread_lifecycle.rs, Source code, checked 2026-10-30
- Codex 0.172.0 App Server thread path fields, Source code, checked 2026-11-25
- Codex 0.172.0 thread response workspace roots, Source code, checked 2026-11-25
- Codex 0.172.0 turn workspace root resolution, Source code, checked 2026-11-25
- codex-acp README at v2.2.2 (install, auth, runtime env), Documentation, checked 2026-10-15
- codex-acp package.json at v2.2.2 (bin, bundled @openai/codex dependency), Source code, checked 2026-10-15
- Codex 0.162.1 top-level commands (no acp subcommand), live observation, checked 2026-10-15
- openai/codex workspace Cargo.lock at rust-v0.162.1 (no agent-client-protocol crate), Source code, checked 2026-10-15
- initialize probe against codex-acp 2.2.2 with local Codex 0.162.1, live observation, checked 2026-10-15