# OMP

Source: https://staging-docs.aiand.com/integrations/omp/

[OMP](https://github.com/can1357/oh-my-pi) is an AI coding agent for the terminal.
ai& is included as a built-in provider.

<Aside type="note">
  Choose a model with the `tool_calling` capability from the [model catalog](/models/catalog/).
</Aside>

## 1. Install OMP

<Tabs syncKey="os">
<TabItem label="macOS / Linux">

```bash
curl -fsSL https://omp.sh/install | sh
```

</TabItem>
<TabItem label="Windows (PowerShell)">

```powershell
irm https://omp.sh/install.ps1 | iex
```

</TabItem>
</Tabs>

You can also install OMP with Bun 1.3.14 or newer:

```bash
bun install -g @oh-my-pi/pi-coding-agent
```

## 2. Add your API key

Create a key in the [ai& console](https://console.aiand.com/api-keys), then set it in your shell:

<Tabs syncKey="os">
<TabItem label="macOS / Linux">

```bash
export AIAND_API_KEY="sk-your-aiand-api-key"
```

</TabItem>
<TabItem label="Windows (PowerShell)">

```powershell
$env:AIAND_API_KEY = "sk-your-aiand-api-key"
```

</TabItem>
</Tabs>

## 3. Run OMP

Start OMP with any ai& model:

```bash
omp --model aiand/<model-id>
```

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

## Verify

Run a one-shot prompt:

```bash
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.
