Harness Notes

Remote access

Updated 2026-11-25,

On this page

Connect

Cloud tasks

Sessions

Execution

Build an integration

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:4500 on the execution host and codex --remote ws://127.0.0.1:4500 through 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, use codex 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-token or --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-control enables provider-relayed access to a host App Server. start, stop and pair are separate subcommands; pairing creates a short-lived manual code. Default invocation uses a managed daemon when eligible and otherwise a foreground server; --no-daemon forces 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 exec submits a task to a provider cloud environment; codex cloud apply applies 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/list from in-memory thread/loaded/list. thread/read reads metadata; paginated turns/items load history. thread/resume reopens or attaches a thread for subsequent turns and subscribes to events; thread/fork creates 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/interrupt for 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-daemon belongs 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_secs from 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-acp adapter 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.