cannot attach chatgpt desktop app to vscode remote session

Resolved 💬 12 comments Opened Sep 7, 2025 by Gureum-Yeoreum-Tori Closed Dec 9, 2025
💡 Likely answer: A maintainer (aibrahim-oai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.29.0

Which model were you using?

gpt-5

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

I just can't connect chatgpt desktop app (macos) and codex on vscode remote session

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

12 Comments

aibrahim-oai contributor · 10 months ago

Can you add more context? what would you expect to happen?

HeMuling · 10 months ago

when working with remote session and the latest codex extension, (for me in cursor) the chatgpt desktop would show

<img width="420" height="125" alt="Image" src="https://github.com/user-attachments/assets/14cc1b05-7655-4142-a029-38d3efe65dc6" />

and however, when working with local session, it work just fine

it's worth noticing that chatgpt desktop works fine with remote session using old version extension openai.chatgpt

<img width="320" height="362" alt="Image" src="https://github.com/user-attachments/assets/271bb646-d206-4c77-b66a-91321be91bc0" />

<img width="419" height="120" alt="Image" src="https://github.com/user-attachments/assets/9ef47c04-d751-448f-9d28-7e2d3bce26c2" />

stangri · 10 months ago

Me three. Worked fine for a long while, then suddenly stopped working and keeps opening the Codex extension page for remote sessions (macos to Linux). Sorry, can't pinpoint an update which broke it. If clicking on integration button within macos app, says Code - No workspaces available (Set up).
m4 mac mini with macos 26 beta and arm Ubuntu 24.04.3 LTS on remote.
PS. Currently on ChatGPT macOS version 1.2025.245 (1757119478) and remote sessions vscode integration not working.

martian-yan · 10 months ago

The same issue. The VSCode Codex extension cannot work with the ChatGPT macOS app when I'm SSH to a remote server. It shows "no available workspace".
However, it works fine with a local VSCode session. It also worked fine when the extension was named "ChatGPT" before it was upgraded to "Codex"

<img width="360" height="361" alt="Image" src="https://github.com/user-attachments/assets/219262b1-7599-4886-94d3-123295875d10" />

Gureum-Yeoreum-Tori · 10 months ago

<img width="393" height="190" alt="Image" src="https://github.com/user-attachments/assets/21231060-dbf0-42f9-affe-fd7bceab1af9" />
works fine with local session

<img width="739" height="318" alt="Image" src="https://github.com/user-attachments/assets/583c6651-bc84-486c-8517-069780db926c" />
not working with ssh

stangri · 10 months ago

Here's how to restore ChatGPT integration with remote SSH sessions in vscode functionality:

  • if you have Codex extension installed on remote host -- remove it there
  • from extension page on your local machine, click on the gear and select "Download Specific Version VSIX..."
  • scroll down to the very bottom and you'll see the openai.chatgpt-0.1.1741291060 (according to @HeMuling post above, which prompted this guide, the slightly older openai.chatgpt-0.1.1740505811 also works, but I decided to pick a little more recent one)
  • save the vsix file to your computer
  • uninstall the version 4.x or (pre-release) version 5.x from your local vscode
  • manually install the saved vsix to your local vscode by either: code --install-extension /tmp/openai.chatgpt-0.1.1741291060-*.vsix or from vscode UI by going to extensions, click the … menu (in top-right corner of the extensions tab) → Install from VSIX… → choose your .vsix file from your local filesystem.

Disable further extension updates if you want to preserve your working setup.
With this version you do not need to install this extension on a remote host.

If someone succeeds with a newer version of the extension, please comment so I could update this guide to include the reference to the most recent working version.

N33MO · 10 months ago

@stangri Thank you so much for your solution, it works for me. And for Cursor only need to 'Import Settings from VS Code' in top right gear icon to make it work.

scherbatsky-jr · 9 months ago
Here's how to restore ChatGPT integration with remote SSH sessions in vscode functionality: if you have Codex extension installed on remote host -- remove it there from extension page on your local machine, click on the gear and select "Download Specific Version VSIX..." scroll down to the very bottom and you'll see the openai.chatgpt-0.1.1741291060 (according to @HeMuling post above, which prompted this guide, the slightly older openai.chatgpt-0.1.1740505811 also works, but I decided to pick a little more recent one) save the vsix file to your computer uninstall the version 4.x or (pre-release) version 5.x from your local vscode manually install the saved vsix to your local vscode by either: code --install-extension /tmp/openai.chatgpt-0.1.1741291060-*.vsix or from vscode UI by going to extensions, click the … menu (in top-right corner of the extensions tab) → Install from VSIX… → choose your .vsix file from your local filesystem. Disable further extension updates if you want to preserve your working setup. With this version you do not need to install this extension on a remote host. If someone succeeds with a newer version of the extension, please comment so I could update this guide to include the reference to the most recent working version.

Thank you for the fix! Worked for me wonderfully! I do not understand why the new updates limited the Remote files.

FedeltaMedia · 8 months ago

Took me hours searching why it didn't work until I found this comment. Many thanks! Hopefully this bug get fixed soon.

jonasdelacour · 8 months ago

@stangri Very helpful, I was frustrated for weeks about this inexplicable regression. Hopefully some development attention is paid to this soon.

etraut-openai contributor · 7 months ago

The original openai.chatgpt extension was retired, and that property in the VS Code Marketplace was replaced with a new extension. It sounds like you're interested in the old extension, but that is no longer being developed.

stangri · 7 months ago

@etraut-openai Eric, are you planning to obsolete integration with vscode/vscode-insiders from the chatgpt app as well? Attaching screenshot for reference.

<img width="369" height="366" alt="Image" src="https://github.com/user-attachments/assets/07e3ef4c-6cf5-4e78-92cb-05c03ed16148" />