Skip to content

oh-my-pi ​

Prerequisites ​

  1. Node.js 22.23.4+ or 24.22.1+
  2. oh-my-pi (omp) installed and configured

Install & Run ​

bash
# Install daemon
npm install -g @cmdctrl/omp

# Register
cmdctrl-omp register -s https://api.cmd-ctrl.ai

# Start
cmdctrl-omp start

How It Works ​

The omp daemon spawns omp once per task and reads message history from omp's session store at ~/.omp/agent/sessions/ (or $PI_CODING_AGENT_DIR/sessions), so omp --resume works in both directions. The composer menu offers your markdown commands (~/.omp/agent/commands/, .omp/commands/); omp's built-in TUI commands such as /model are left out because they don't run outside the TUI.

It registers as its own device, so one machine can run both Pi and oh-my-pi through Cmd+Ctrl at the same time.

Override the omp binary location with OMP_BIN=/path/to/omp if needed. It ignores PI_BIN, which only Pi's daemon reads.

Troubleshooting ​

"omp not found" – Ensure omp is in your PATH: which omp. Otherwise set OMP_BIN=/absolute/path/to/omp.