1# Remote connections1# Remote connections
2 2
3Remote connections let you use Codex from another device or another machine.3Remote connections let you access work running on another device or machine.
4Use Codex in the ChatGPT mobile app to work with Codex on a connected Mac or4In the ChatGPT mobile app, open **Remote** to work with ChatGPT Work or Codex tasks on
5Windows device, continue work from another supported Codex App device, or connect5a connected Mac or Windows device. You can also continue work from another
6the Codex App to projects on an SSH host.6supported device running the ChatGPT desktop app or connect the app to projects
7on an SSH host.
7 8
8Remote access uses the connected host's projects, threads, files, credentials,9Remote access uses the connected host's projects, tasks, files, credentials,
9permissions, plugins, Computer Use, browser setup, and local tools.10permissions, plugins, Computer Use, browser setup, and local tools.
10 11
11## What you can do remotely12## What you can do remotely
12 13
13- Start new threads in projects on the host, or continue existing ones.14- Start new tasks in projects on the host, or continue existing ones.
14- Send follow-up instructions, answer questions, and steer active work.15- Send follow-up instructions, answer questions, and steer active work.
15- Approve commands and other actions.16- Approve commands and other actions.
16- Review outputs, diffs, test results, terminal output, and screenshots.17- Review outputs, diffs, test results, terminal output, and screenshots.
17- Get notified when Codex completes a task or needs your attention.18- Get notified when ChatGPT completes a task or needs your attention.
18- Switch between connected hosts and threads.19- Switch between connected hosts and tasks.
19 20
20The next sections cover using Codex in the ChatGPT mobile app to control a Codex21The next sections cover opening **Remote** in the ChatGPT mobile app to access a
21App host. To connect Codex to a project on an SSH host, see22desktop host. To connect Codex to a project on an SSH host, see
22[connect to an SSH host](#connect-to-an-ssh-host).23[connect to an SSH host](#connect-to-an-ssh-host).
23 24
24<div class="not-prose my-6 max-w-4xl rounded-xl bg-[url('/images/codex/codex-wallpaper-1.webp')] bg-cover bg-center p-4 md:p-8">25<div class="not-prose my-6 max-w-4xl rounded-xl bg-[url('/images/codex/codex-wallpaper-1.webp')] bg-cover bg-center p-4 md:p-8">
25 <CodexScreenshot26 <CodexScreenshot
26 alt="Codex mobile setup screen alongside the ChatGPT mobile Codex project list"27 alt="Remote setup screen in the ChatGPT mobile app"
27 lightSrc="/images/codex/app/mobile-setup-light.webp"28 lightSrc="/images/codex/app/mobile-setup-light.webp"
28 darkSrc="/images/codex/app/mobile-setup-dark.webp"29 darkSrc="/images/codex/app/mobile-setup-dark.webp"
29 variant="no-wallpaper"30 variant="no-wallpaper"
32 />33 />
33</div>34</div>
34 35
35## Before you set up mobile access36<a id="before-you-set-up-mobile-access"></a>
36 37
37Codex mobile setup supports Codex App hosts on macOS and Windows. You can38## Before you set up Remote
38 control a Windows host from ChatGPT on iOS or Android, or from a Mac running39
39 Codex. Windows can't currently control another computer from the Codex App.40Remote supports hosts running the ChatGPT desktop app on macOS and Windows.
41 You can control a host from ChatGPT on iOS or Android, or from another Mac or
42 Windows device when **Control other devices** is available. Availability can
43 vary by rollout.
40 44
41Make sure you have:45Make sure you have:
42 46
43- Codex access in the ChatGPT account and workspace you want to use.47- Codex access in the ChatGPT account and workspace you want to use.
44- The latest ChatGPT mobile app on an iOS or Android device. If you don't see48- The latest ChatGPT mobile app on an iOS or Android device. If **Remote**
45 Codex in the ChatGPT mobile app, update ChatGPT first.49 doesn't appear in the app, update ChatGPT first.
46- The latest Codex App for macOS or Windows running on a host that's awake,50- The latest ChatGPT desktop app for macOS or Windows running on a host that's awake,
47 online, and signed in to the same account and workspace. Mobile setup starts51 online, and signed in to the same account and workspace. Mobile setup starts
48 from the Codex App; you can't set it up from the Codex CLI or IDE Extension.52 from the app; you can't set it up from the Codex CLI or IDE extension.
49- Any required multi-factor authentication, SSO, or passkey configuration for53- Any required multi-factor authentication, SSO, or passkey configuration for
50 that account or workspace.54 that account or workspace.
51 55
52If you use Codex through a ChatGPT workspace, your admin may need to enable56If you use Codex through a ChatGPT workspace, your admin may need to enable
53Remote Control access before you can connect from your phone.57Remote Control access before you can connect from your phone.
54 58
55## Set up mobile access59<a id="set-up-mobile-access"></a>
60
61## Set up Remote
56 62
57Start in the Codex App on the host you want to connect. The setup flow enables63Start in the ChatGPT desktop app on the host you want to connect. The setup flow
58remote access for that host, then shows a QR code you can scan from your phone.64enables remote access for that host, then shows a QR code you can scan from your
59The QR code pairs that phone with that host. Pair every phone or supported Codex65phone.
60App device with every host you want it to control.66The QR code pairs that phone with that host. Pair every phone or supported
67desktop app device with every host you want it to control.
61 68
62Existing connections used since June 8, 2026, remain paired. If you haven't69Existing connections used since June 8, 2026, remain paired. If you haven't
63 used an existing connection since June 8, 2026, update both apps and pair the70 used an existing connection since June 8, 2026, update both apps and pair the
65 72
66<WorkflowSteps variant="headings">73<WorkflowSteps variant="headings">
67 74
681. Start Codex mobile setup.751. Start Remote setup.
69 76
70 Open Codex on the host and select **Set up Codex mobile** in the77 Open the app on the host and select **Set up Remote** in the sidebar.
71 sidebar.
72 78
732. Scan the QR code.792. Scan the QR code.
74 80
75 Use your phone to scan the QR code shown by Codex. The code opens ChatGPT so81 Use your phone to scan the QR code shown by the app. The code opens ChatGPT
76 you can finish connecting the mobile app to the host.82 so you can finish connecting the mobile app to the host.
77 83
783. Finish setup in ChatGPT.843. Finish setup in ChatGPT.
79 85
80 ChatGPT opens the Codex mobile setup flow. Confirm the same ChatGPT account86 ChatGPT opens the Remote setup flow. Confirm the same ChatGPT account
81 and workspace, then complete any required multi-factor authentication, SSO,87 and workspace, then complete any required multi-factor authentication, SSO,
82 or passkey steps. After setup succeeds, the host appears in Codex on your88 or passkey steps. After setup succeeds, the host appears in Remote on your
83 phone.89 phone.
84 90
854. Review host settings.914. Review host settings.
86 92
87 In Codex on the host, use **Settings > Connections** to manage connected93 In the app on the host, use **Settings > Connections** to manage connected
88 devices. You can also choose whether to keep the computer awake, enable94 devices. You can also choose whether to keep the computer awake, enable
89 Computer Use, or install the Chrome extension.95 Computer Use, or install the Chrome extension.
90 96
91</WorkflowSteps>97</WorkflowSteps>
92 98
93<div class="not-prose my-6 max-w-4xl">99<Illustration description="Connections controls for allowing devices to control this Mac and keeping it awake.">
94 <CodexScreenshot100 <RemoteConnectionsIllustration
95 alt="Connections settings showing devices that can control this host and remote access settings"101 view="control-this-mac"
96 lightSrc="/images/codex/app/mobile-control-this-mac-framed-light.webp"102 ariaLabel="Connections controls for allowing devices to control this Mac and keeping it awake."
97 darkSrc="/images/codex/app/mobile-control-this-mac-framed-dark.webp"
98 maxHeight="480px"
99 class="p-3 sm:p-4"
100 imageClass="rounded-xl"
101 />103 />
102</div>104</Illustration>
103 105
104## Choose what to connect106## Choose what to connect
105 107
106Start with the laptop or desktop where you already use Codex. Add an always-on108Start with the laptop or desktop where you already use ChatGPT. Add an always-on
107computer or SSH host when you need continuous access or a different environment.109computer or SSH host when you need continuous access or a different environment.
108 110
109### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Desktop width={17} height={17} /></span><span>Your laptop or desktop</span></span>111### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Desktop width={17} height={17} /></span><span>Your laptop or desktop</span></span>
110 112
111Connect the Mac or Windows PC where you already run Codex day to day. This gives113Connect the Mac or Windows PC where the desktop app is already installed. This
112remote access to the same projects, threads, credentials, plugins, and local114gives remote access to the same projects, tasks, credentials, plugins, and local
113setup you already use.115setup you already use.
114 116
115If that computer sleeps, loses network access, or closes Codex, remote access117If that computer sleeps, loses network access, or closes the app, remote access
116stops until it's available again. If you use this computer as your host device,118stops until it's available again. If you use this computer as your host device,
117keep it plugged in and use the host's connection settings to keep it awake where119keep it plugged in and use the host's connection settings to keep it awake where
118available.120available.
122**Sleep** still stops remote access.124**Sleep** still stops remote access.
123 125
124On a Windows host, keep the session unlocked and available for tasks that use126On a Windows host, keep the session unlocked and available for tasks that use
125[Computer Use](https://developers.openai.com/codex/app/computer-use). Computer use on Windows runs in the127[Computer Use](https://learn.chatgpt.com/docs/computer-use). Computer Use on Windows runs in the
126foreground, so remote control is best for starting or checking work while you128foreground, so remote control is best for starting or checking work while you
127dedicate the host desktop to the task.129dedicate the host desktop to the task.
128 130
129### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Storage width={17} height={17} /></span><span>A dedicated always-on computer</span></span>131### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Storage width={17} height={17} /></span><span>A dedicated always-on computer</span></span>
130 132
131Use a dedicated always-on Mac or Windows PC when you want Codex to stay133Use a dedicated always-on Mac or Windows PC when you want ChatGPT to stay
132reachable for longer-running work.134reachable for longer-running work.
133 135
134Install the projects, credentials, plugins, MCP servers, and tools Codex should136Install the projects, credentials, MCP servers, skills, and tools ChatGPT should
135use on that machine.137use on that machine.
136 138
137### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Terminal width={17} height={17} /></span><span>A remote development environment</span></span>139### <span class="not-prose inline-flex items-center gap-3 align-middle"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-surface-secondary text-secondary"><Terminal width={17} height={17} /></span><span>A remote development environment</span></span>
138 140
139Use an SSH host or managed remote development environment when the project141Use an SSH host or managed remote development environment when the project
140already lives in a remote environment. Connect the Codex App host to that142already lives in a remote environment. Connect the desktop app host to that
141environment first; your phone still connects to the Codex App host, and Codex143environment first; your phone still connects to the same host, and ChatGPT works
142works in the remote environment with its dependencies, security policies, and144in the remote environment with its dependencies, security policies, and compute
143compute resources.145resources.
144 146
145For SSH setup details, see [connect to an SSH host](#connect-to-an-ssh-host).147For SSH setup details, see [connect to an SSH host](#connect-to-an-ssh-host).
146 148
149 151
150## What comes from the connected host152## What comes from the connected host
151 153
152Your phone sends prompts, approvals, and follow-up messages to Codex. The154Your phone sends prompts, approvals, and follow-up messages to ChatGPT. The
153connected host provides the environment Codex uses.155connected host provides the environment ChatGPT uses.
154 156
155That means:157That means:
156 158
157- Repository files and local documents come from the connected host.159- Repository files and local documents come from the connected host.
158- Shell commands run on that host or remote environment.160- Shell commands run on that host or remote environment.
159- Any plugin installed on that host is available when you use Codex remotely.
160- MCP servers, skills, browser access, and Computer Use come from that host's161- MCP servers, skills, browser access, and Computer Use come from that host's
161 configuration.162 configuration.
162- Signed-in websites and desktop apps are available only when the host can163- Signed-in websites and desktop apps are available only when the host can
164- The sandboxing settings, security controls, and action approvals still apply165- The sandboxing settings, security controls, and action approvals still apply
165 to the connected session.166 to the connected session.
166 167
167Codex uses a secure relay layer to keep trusted machines reachable across your168A secure relay layer keeps trusted machines reachable across your authorized
168authorized ChatGPT devices without exposing them directly to the public169ChatGPT devices without exposing them directly to the public internet.
169internet.
170 170
171## Pick up work from another device171## Pick up work from another device
172 172
173You can continue work from another signed-in Codex App device that supports173You can continue work from another signed-in device running the ChatGPT desktop
174remote control. For example, if your laptop is unavailable, you can start174app and supporting remote control. For example, if your laptop is unavailable, you can
175a thread from your phone on an always-on host, then later open Codex on your175start a task from your phone on an always-on host, then later open the app on
176laptop and continue that same thread there.176your laptop and continue that same task there.
177 177
178In Codex on a Mac, use **Settings > Connections > Control other devices** to add178On a Mac or Windows device where the feature is available, use **Settings >
179the other host. A device can allow remote access and control another device at179Connections > Control other devices** to add the other host. A device can allow
180the same time. You can control Windows hosts from a Mac or from ChatGPT on iOS180remote access and control another device at the same time.
181or Android, but you can't use Windows to control another computer. For example,
182you can control a Windows device from your Mac or phone, but you can't use a
183Windows device to control another Windows device.
184 181
185<div class="not-prose my-6 max-w-4xl">182<Illustration description="Connections setup card for controlling another device from this Mac.">
186 <CodexScreenshot183 <RemoteConnectionsIllustration
187 alt="Connections settings showing another device available under Control other devices"184 view="control-other-devices"
188 lightSrc="/images/codex/app/mobile-control-other-devices-framed-light.webp"185 ariaLabel="Connections setup card for controlling another device from this Mac."
189 darkSrc="/images/codex/app/mobile-control-other-devices-framed-dark.webp"
190 maxHeight="360px"
191 class="p-3 sm:p-4"
192 imageClass="rounded-xl"
193 />186 />
194</div>187</Illustration>
195 188
196## Connect to an SSH host189## Connect to an SSH host
197 190
198In the Codex App, add remote projects from an SSH host and run threads against191In the ChatGPT desktop app, add remote projects from an SSH host and run tasks
199the remote filesystem and shell. Remote project threads run commands, read192against the remote filesystem and shell. Remote project tasks run commands,
200files, and write changes on the remote host.193read files, and write changes on the remote host.
201 194
202Keep the remote host configured with the same security expectations you use for195Keep the remote host configured with the same security expectations you use for
203normal SSH access: trusted keys, least-privilege accounts, and no196normal SSH access: trusted keys, least-privilege accounts, and no
217 Codex reads concrete host aliases from `~/.ssh/config`, resolves them with210 Codex reads concrete host aliases from `~/.ssh/config`, resolves them with
218 OpenSSH, and ignores pattern-only hosts.211 OpenSSH, and ignores pattern-only hosts.
219 212
2202. Confirm you can SSH to the host from the machine running the Codex App.2132. Confirm you can SSH to the host from the machine running the app.
221 214
222 ```bash215 ```bash
223 ssh devbox216 ssh devbox
229 user's login shell. Make sure the `codex` command is available on the222 user's login shell. Make sure the `codex` command is available on the
230 remote host's `PATH` in that shell.223 remote host's `PATH` in that shell.
231 224
2324. In the Codex App, open **Settings > Connections**, add or enable the SSH2254. In the app, open **Settings > Connections**, add or enable the SSH host, then
233 host, then choose a remote project folder.226 choose a remote project folder.
234 227
235</WorkflowSteps>228</WorkflowSteps>
236 229
237<CodexScreenshot230<Illustration description="Connections SSH list with three remote hosts.">
238 alt="Codex app settings showing SSH remote connections"231 <RemoteConnectionsIllustration
239 lightSrc="/images/codex/app/remote-connections-light.webp"232 view="ssh"
240 darkSrc="/images/codex/app/remote-connections-dark.webp"233 ariaLabel="Connections SSH list with three remote hosts."
241 maxHeight="420px"234 />
242 class="p-3 sm:p-4"235</Illustration>
243 imageClass="rounded-xl"236
244/>237<a id="hand-off-a-thread-between-hosts"></a>
238<a id="hand-off-a-chat-between-hosts"></a>
245 239
246## Hand off a thread between hosts240## Hand off a task between hosts
247 241
248Handoff moves an existing thread and its Git state between your local computer242Handoff moves an existing task and its Git state between your local computer
249and a connected remote host. Use it to start work locally, continue in a243and a connected remote host. Use it to start work locally, continue in a
250worktree on a remote computer, and bring the thread back later.244worktree on a remote computer, and bring the task back later.
251 245
252Before you hand off a thread, connect the destination host and save a project246Before you hand off a task, connect the destination host and save a project
253for the same Git repository on that host. If the project is a subdirectory of247for the same Git repository on that host. If the project is a subdirectory of
254the repository, save the same subdirectory on both hosts. Codex only shows248the repository, save the same subdirectory on both hosts. Codex only shows
255destinations with a matching saved project.249destinations with a matching saved project.
256 250
257To hand off a thread:251To hand off a task:
258 252
2591. Open the thread in the Codex App.2531. Open the task in the desktop app.
2602. In the thread footer, select the current run location, then select the2542. In the task footer, select the current run location, then select the
261 destination host. Select **This computer** when handing a remote thread back255 destination host. Select **This computer** when handing a remote task back
262 to your local computer.256 to your local computer.
2633. Review the destination and branch, then select **Hand off**.2573. Review the destination and branch, then select **Hand off**.
264 258
265Codex creates or reuses a worktree on the destination host, transfers the259Codex creates or reuses a worktree on the destination host, transfers the
266thread and Git state, and switches the thread to that host. If the thread is260task and Git state, and switches the task to that host. If the task is
267running, handoff interrupts the current response before transferring it.261running, handoff interrupts the current response before transferring it.
268 262
269You can also ask Codex in another thread to hand off a named thread to a263You can also ask Codex in another task to hand off a named task to a
270connected host. Codex can't hand off the thread making the request, and handoff264connected host. Codex can't hand off the task making the request, and handoff
271to a Codex cloud environment isn't supported.265to a Codex cloud environment isn't supported.
272 266
273## Authentication and network exposure267## Authentication and network exposure
283 277
284### You don't see the host on your phone278### You don't see the host on your phone
285 279
286Confirm that the Codex App is running on the host, you've enabled **Allow other280Confirm that the desktop app is running on the host, you've enabled **Allow
287devices to connect**, and both devices use the same ChatGPT account and281other devices to connect**, and both devices use the same ChatGPT account and
288workspace. If you haven't used the connection since June 8, 2026, update both282workspace. If you haven't used the connection since June 8, 2026, update both
289apps and pair the devices again.283apps and pair the devices again.
290 284
295restore the previous connection state.289restore the previous connection state.
296 290
297If you see an error after you turn on **Remote Control** and select **Add**,291If you see an error after you turn on **Remote Control** and select **Add**,
298restart the Codex App on the host, then try again.292restart the ChatGPT desktop app on the host, then try again.
299 293
300### The approval request doesn't appear294### The approval request doesn't appear
301 295
302Open Codex in the ChatGPT mobile app. Confirm that the phone and host use the296In the ChatGPT mobile app, open **Remote**. Confirm that the phone and host use
303same ChatGPT account and workspace, then scan the QR code again or restart setup297the same ChatGPT account and workspace, then scan the QR code again or restart
304from the host. If you use a ChatGPT workspace, ask your admin to confirm that298setup from the host. If you use a ChatGPT workspace, ask your admin to confirm
305they've enabled Remote Control access.299that they've enabled Remote Control access.
306 300
307### The remote session disconnects301### The remote session disconnects
308 302
309Check whether the host went to sleep, lost network access, or closed Codex.303Check whether the host went to sleep, lost network access, or closed the app.
310Keep the host awake and connected while Codex works.304Keep the host awake and connected while ChatGPT works.
311 305
312### Authentication blocks setup306### Authentication blocks setup
313 307
318 312
319## See also313## See also
320 314
321- [Codex App](https://developers.openai.com/codex/app)315- [ChatGPT desktop app](https://learn.chatgpt.com/docs/app)
322- [Codex App features](https://developers.openai.com/codex/app/features)316- [Features](https://learn.chatgpt.com/docs/features)
323- [Codex App settings](https://developers.openai.com/codex/app/settings)317- [ChatGPT desktop app settings](https://learn.chatgpt.com/docs/reference/settings)
324- [Computer Use](https://developers.openai.com/codex/app/computer-use)318- [Computer Use](https://learn.chatgpt.com/docs/computer-use)
325- [Chrome extension](https://developers.openai.com/codex/app/chrome-extension)319- [Chrome extension](https://learn.chatgpt.com/docs/chrome-extension)
326- [Command line options](https://developers.openai.com/codex/cli/reference)320- [Command line options](https://learn.chatgpt.com/docs/developer-commands?surface=cli)
327- [Authentication](https://developers.openai.com/codex/auth)321- [Authentication](https://learn.chatgpt.com/docs/auth)