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

> Usage and flags for oz0 replay start.

For: Operators and developers looking up a command.

Start a replay of the tenant's jobs that finished within --since (7 days by default, never past the namespace's history retention: a longer window is cut to it and the report says so), newest first, at most --max-jobs. Give exactly one candidate:

--policy FILE        a whole tool-policy document (JSON, the stored form: read_only, destructive, open_world, undeclared, rules, ...)
--promote ID,...     shadow rules to make act, by ID (oz0 tenant tool-policy show lists them)
--preset NAME        a shipped preset (untrusted-then-consequential, confidential-then-egress), or with --preset-rules
FILE a proposed level change: a JSON list of tool rules that act with NAME as their origin
--budget-usd, --budget-model-calls, --budget-children
budget and tree limits per job, decided again from the recorded usage

One replay per tenant runs at a time.

## Usage

```bash
oz0 replay start (--policy FILE | --promote ID,... | --preset NAME [--preset-rules FILE] | --budget-usd USD ...) [--since 7d] [--agent A] [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --agent
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only this agent's or flow's jobs
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --budget-children
      </code>
    </td>
    
    <td>
      int32
    </td>
    
    <td>
      
    </td>
    
    <td>
      the most child jobs one job may start
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --budget-model-calls
      </code>
    </td>
    
    <td>
      int32
    </td>
    
    <td>
      
    </td>
    
    <td>
      the most model calls one job may make
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --budget-usd
      </code>
    </td>
    
    <td>
      float
    </td>
    
    <td>
      
    </td>
    
    <td>
      the most one job may spend on model calls, in dollars
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --kind
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        policy
      </code>
    </td>
    
    <td>
      the replay's kind
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --max-jobs
      </code>
    </td>
    
    <td>
      int32
    </td>
    
    <td>
      <code>
        2000, at most 10000
      </code>
    </td>
    
    <td>
      at most this many jobs, newest first
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --plugin
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only the jobs of this plugin's agents and flows
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --policy
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      a whole tool-policy document, as JSON
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --poll
      </code>
    </td>
    
    <td>
      duration
    </td>
    
    <td>
      <code>
        2s
      </code>
    </td>
    
    <td>
      with --wait, how often to look
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --preset
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      a shipped preset, or the name of the level change --preset-rules proposes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --preset-rules
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      a JSON list of tool rules: a proposed level change
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --promote
      </code>
    </td>
    
    <td>
      strings
    </td>
    
    <td>
      
    </td>
    
    <td>
      IDs of shadow rules to make act
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --since
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        7d; cut to the history retention
      </code>
    </td>
    
    <td>
      how far back to read finished jobs: 7d, 36h, 90m
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --wait
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      wait for the report and print it
    </td>
  </tr>
</tbody>
</table>

## 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.
