---
title: "oz0 model map"
description: "Usage and flags for oz0 model map."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/model/map"
---
# oz0 model map

> Usage and flags for oz0 model map.

For: Operators and developers looking up a command.

A mapping rule sends what an agent's definition asks for (an alias, \<provider>/\<model>, or every model of a provider with \<provider>/*) to another model, for the whole tenant, one plugin (--plugin) or one agent of a plugin (--plugin and --agent). The most specific rule wins: an agent's over its plugin's over the tenant's, then an exact source over \<provider>/*. A rule is applied once: its target is an alias or a model, never another rule.

A rule is checked when it is set against every agent of the tenant's plugins it reaches: what each needs, its harness's model formats and the tenant's data rules. A rule that reaches no agent, or does not fit one, is refused with the reason. Rules apply to jobs that start after the change; a job keeps the model it started on, and its trace says which rule chose it.

A rule that no longer fits when a job starts (a provider removed, a data rule tightened) fails the job before any model call; it never falls back to the agent's own model.

The plugin itself is untouched: its signature, pins and updates stay as they are, and its page says the model was changed by the tenant.

## Usage

```bash
oz0 model map [command]
```

## Subcommands

- [`delete`](https://docs.oz0.ai/reference/cli/oz0/model/map/delete)
- [`list`](https://docs.oz0.ai/reference/cli/oz0/model/map/list)
- [`presets`](https://docs.oz0.ai/reference/cli/oz0/model/map/presets)
- [`set`](https://docs.oz0.ai/reference/cli/oz0/model/map/set)

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
