# Pi (https://inference.net/docs/integrations/pi)

`fast pi on` adds an `inference-net` provider to Pi's `models.json`, stores the
key in `auth.json`, and makes it the default in `settings.json`. All three
files live under `~/.pi/agent`.

## Connect Pi

<ConnectAgent integration="pi" />

## Choose a model

Pi uses `kimi-k3-fast` unless you pick another ID from the
[model catalog](/models/):

```bash
fast pi on --model kimi-k3-fast
```

Run `on` again to change the default. Restart Pi afterward.

### Switch models in Pi

Every model from the [model catalog](/models/) is registered under the
`inference-net` provider, and `enabledModels` is scoped to it, so Ctrl+P
cycles through them and `/model` (Ctrl+L) opens on them (Tab shows every
provider). A `/model` choice lasts for the session unless you press Ctrl+S in
the picker to save it as the default.

## Check status

```bash
fast pi status
```

Shows the connection, model, and config paths.

## Disconnect

```bash
fast pi off
```

Restores all three files to the backups taken by `on`, so edits made after
connecting are lost. Restart Pi afterward.

## Troubleshooting

- **Inference.net is not listed in Pi** — restart Pi and check that
  `models.json` has an `inference-net` provider.
- **Requests return 401** — run `fast status`, then `fast pi on`.
- **Model rejected** — pick an ID from the [model catalog](/models/).