---
title: "mirror model"
summary: "Model routes: the services an agent's model calls can go to."
read_when: "the arguments or options of mirror model are needed"
url: https://mirrordimensions.com/docs/reference/model/
---

# mirror model

Model routes: the services an agent's model calls can go to.

Its commands: `list`, `add`, `routes`, `remove`.

```sh
mirror model <command>
```

## mirror model list

The model services the catalog knows: where each API lives and how it takes a key.

```sh
mirror model list
```

## mirror model add

Add a model route for a service to this world's mirror.yaml.

```sh
mirror model add <service_id> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `service_id` | Yes | A service from mirror model list. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--name` | text | The route's name (default: the service's id). |
| `--host` | text | The host name, for a gateway you host or a regional endpoint. |
| `--key-env` | text | The environment variable that holds your key. |
| `--scheme` | text | How the key is sent: bearer, x-api-key or api-key. |
| `--base-path` | text | Where the API lives on the host, like /api/v1. |

## mirror model routes

The model routes this world has.

```sh
mirror model routes
```

## mirror model remove

Remove a model route from this world's mirror.yaml.

```sh
mirror model remove [name] [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `name` | No | The route's name. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--all` | nothing (a switch) | Remove every model route this world has. |
