> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnitude.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Oh My Pi

> Connect Oh My Pi to your downloaded Magnitude models.

## Connect

1. [Install Oh My Pi](https://github.com/can1357/oh-my-pi#installation) if needed.
2. Download a compatible model in Magnitude.
3. Open **Connections → Oh My Pi** and click **Connect**.
4. Open or restart Oh My Pi and choose your Magnitude model.

Restart Oh My Pi and choose a Magnitude model. If you use named profiles, connect the profile you actually run: check the paths shown in Connections rather than editing a different profile.

## Select a model from the terminal

To configure the connection and select a specific downloaded model, first find its exact ID:

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
magnitude models status
magnitude connections add oh-my-pi --set-model "MODEL_ID"
```

Replace `MODEL_ID` with the ID from the first command, not the friendly display name. Restart the agent after changing its configuration.

## Configuration

Default configuration files:

* `~/.omp/agent/models.yml`
* `~/.omp/agent/config.yml`

On Windows, `~` means your user profile directory.

Supported location overrides: `OMP_PROFILE`, `PI_PROFILE`, `PI_CONFIG_DIR`, `PI_CODING_AGENT_DIR`. The paths displayed in Connections show which files Magnitude is actually checking.

## Repair or disconnect

If Connections shows **Connection needs repair**, click **Repair connection**. To stop using the integration, click **Disconnect**, then restart the agent.

Terminal equivalents:

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
magnitude connections sync oh-my-pi
magnitude connections remove oh-my-pi
```

See [connection states](/integrations/overview#connection-states) if the agent is not detected or its configuration cannot be verified.
