Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Oh My PiNew to Visual Studio Code? Get it now.
Oh My Pi

Oh My Pi

Kawin.V

|
1 install
| (0) | Free
Embedded terminal panel for the Oh My Pi (omp) coding agent, with multiple sessions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Oh My Pi

Run the Oh My Pi (omp) coding agent in a VS Code sidebar terminal. This is the real omp TUI — composer, slash commands, tool output, themes — embedded via xterm.js and a pseudo-terminal, with multiple sessions as tabs. It is not VS Code's built-in terminal and not a chat reimplementation.

Requirements

  • The omp CLI installed and on your PATH (or set oh-my-pi.executablePath to its full path).
  • VS Code 1.90 or newer, desktop. Virtual workspaces are not supported.

Getting started

  1. Install omp and sign in (omp once in a terminal).
  2. Open the panel: click the Oh My Pi icon in the Activity Bar, run Oh My Pi: Open Terminal, or press Cmd+Shift+Alt+I (macOS) / Ctrl+Shift+Alt+I (Windows/Linux).
  3. Type a prompt and press Enter. Use the + button to open another session.

Features

  • Multiple sessions. Tabbed omp terminals: create, switch, rename (double-click tab or right-click → Rename), close (middle-click or right-click → Close), drag reorder (or Alt+Shift+Left/Right on a focused tab). Tabs auto-rename the omp session topic; hovering a tab shows its full title. Background sessions keep running while you work in another tab.
  • Tab status. Each tab shows a dot: green running, blue running with output you have not seen, grey exited (title dimmed and italic). Hover shows the state; the tab's aria-label carries it for screen readers.
  • Filter tabs. The tab bar's filter button narrows the tab list by title and shows a match count: ArrowUp/ArrowDown walk matches without leaving the box, Enter opens one, Escape clears and returns focus to the terminal.
  • Session persistence. Each tab keeps its own omp session directory. Tabs survive a window reload and resume their conversation (omp --continue).
  • Full omp TUI. Everything the CLI offers, rendered in the panel.
  • Theme and font. Colors follow your VS Code theme; font follows terminal.integrated.fontSize / fontFamily.
  • Find. Cmd/Ctrl+F with case, whole-word, and regex matching.
  • Clickable links. URLs open in the browser; path:line:col opens in the editor.
  • Composer helpers. Shift+Enter inserts a newline; middle-click pastes.
  • Send code to omp. Editor right-click → Oh My Pi:
    • Add Context inserts the selection's file:line reference into the composer without submitting.
    • Send Line(s) / Send Selection / Send File Path send immediately.
  • Terminal right-click menu. The panel's own menu keeps Copy, Paste, New Session, Restart Session, Find. Add Terminal Content to Context lives on VS Code's built-in terminal right-click menu, nested under Oh My Pi like the editor menu: inserts selected terminal text, or the whole buffer when nothing is selected, without submitting.
  • Recovery. If omp exits, press any key in its tab to relaunch; the session resumes.

Keyboard shortcuts

Action macOS Windows/Linux
Open the panel Cmd+Shift+Alt+I Ctrl+Shift+Alt+I
Add editor selection to context Cmd+K Cmd+A Ctrl+K Ctrl+A
Find in terminal Cmd+F Ctrl+F
Newline in composer Shift+Enter Shift+Enter
Paste Middle-click Middle-click
Rename a tab Double-click tab Double-click tab
Switch tab Ctrl+PageUp / Ctrl+PageDown Ctrl+PageUp / Ctrl+PageDown
Close tab Middle-click tab Middle-click tab
Reorder focused tab Alt+Shift+Left/Right Alt+Shift+Left/Right

Settings

Setting Default Description
oh-my-pi.executablePath omp Command to run. Use a full path if omp is not on VS Code's PATH. Shell arguments work (e.g. omp --model opus).
oh-my-pi.profile "" OMP profile for this workspace, passed as OMP_PROFILE. A --profile flag in executablePath wins.
oh-my-pi.autoStart false Open the panel automatically when VS Code starts.
oh-my-pi.sessionStartup restore On panel start: restore reopens saved tabs and continues each omp session; new opens one fresh session; ask prompts when saved sessions exist.
oh-my-pi.workingDirectory "" Working directory for omp. Defaults to the first workspace folder, or home.
oh-my-pi.fontSize 0 Font size (px). 0 inherits terminal.integrated.fontSize.
oh-my-pi.fontFamily "" Font family. Empty inherits terminal.integrated.fontFamily.

Changing executablePath, profile, or workingDirectory restarts all sessions; conversations are preserved.

On macOS/Linux omp runs through a login shell ($SHELL -l -c) so your shell profile PATH is loaded. On Windows it uses PowerShell 7, then Windows PowerShell, then cmd.exe.

Troubleshooting

  • omp: command not found — VS Code's PATH differs from your terminal's. Set oh-my-pi.executablePath to the full path (run which omp in a terminal).
  • Panel is blank after installing or updating — run Developer: Reload Window.
  • Font looks wrong — the panel inherits terminal.integrated.fontSize / fontFamily. Override with oh-my-pi.fontSize / oh-my-pi.fontFamily.

Development

bun install
bun run compile     # bundle to out/ (bun build, CommonJS, node target)
bun run typecheck   # tsc --noEmit (bun build does not type-check)
bun run test        # PTY smoke test against a real omp binary (OMP_PATH to override)
bun run test:ui     # VS Code integration test (VSCODE_EXECUTABLE to override)
bun run package     # .vsix for the current platform -> dist/
bun run package:all # all six platform .vsix -> dist/

Press F5 in VS Code to launch an Extension Development Host.

Bun is the package manager, task runner, and compiler. The extension itself runs on Node.js (VS Code's extension host), and the @lydell/node-pty native addon does not work under Bun's runtime, so the PTY smoke test runs with node. @lydell/node-pty ships per-platform binaries as optional dependencies; package:all uses bun install --os/--cpu to build each target on one host.

License

MIT. See the LICENSE file in the extension package.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft