Skip to content

OMP

OMP is an AI coding agent for the terminal. ai& is included as a built-in provider.

Terminal window
curl -fsSL https://omp.sh/install | sh

You can also install OMP with Bun 1.3.14 or newer:

Terminal window
bun install -g @oh-my-pi/pi-coding-agent

Create a key in the ai& console, then set it in your shell:

Terminal window
export AIAND_API_KEY="sk-your-aiand-api-key"

Start OMP with any ai& model:

Terminal window
omp --model aiand/<model-id>

The model name must use the aiand/<model-id> format.

Run a one-shot prompt:

Terminal window
omp --print --model aiand/<model-id> "reply with only: ok"

If OMP reports an unauthorized request, confirm that AIAND_API_KEY is set in the same shell.