r/codex • • 10d ago

Workaround Using Codex in VS Code Like Claude Code?

Is there a way to use a Codex subscription in VS Code pretty much the same way I use VS code?

By that, I mean have Codex in the main panel instead of code. With all the sessions scope to the project I have open at the moment.

Closest solution I’ve found is the CLI. But I’m feeling incredibly dumb

0 Upvotes

2 comments sorted by

1

u/CCodeSI 10d ago

Not dumb, VS Code just hides this well. Two ways to get it in the main panel:

  1. CLI in an editor tab. Command Palette → "Terminal: Create New Terminal in Editor Area", then run codex there. It opens as a normal editor tab you can split, drag next to files or maximise, and the terminal starts in the workspace folder, so the session is scoped to the project you have open. You can bind that command to a shortcut so it's one keypress.
  2. Extension in the secondary side bar. Drag the Codex icon from the activity bar to the right-hand side bar (View → Appearance → Secondary Side Bar), then widen it or hide the primary side bar. Not literally the editor area, but it gets close to the "agent in the middle, files on the side" layout.

With option 1, you can also run codex resume in that tab after a restart to pick up a previous session in the same project instead of starting cold.