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

# simforge closed-loop

> Reference for simforge closed-loop: usage, arguments and flags, generated from the CLI.

Generated from the CLI's own help (CLI 0.2.0-rc.5). Global flags and exit codes are on the [command reference](/cli).

## closed-loop

Run a hosted closed-loop evaluation of a scripted or trajectory policy on a scenario revision

```sh theme={null}
simforge closed-loop [OPTIONS] --revision <REVISION_ID> <SCENARIO_ID>
```

| Argument / flag | Notes | What |
| - | - | - |
| `<scenario_id>` | required | The hosted scenario |
| `--revision REVISION_ID` | required | Its immutable revision |
| `--policy POLICY` | one of scripted, trajectory; default scripted | The policy that drives the ego |
| `--steps STEPS` | | Simulation steps to run |
| `--seed SEED` | | Simulation seed |
| `--wait` | | Wait for the run to finish |
| `--download` | | Download a succeeded run's artifacts into --out; implies --wait |
| `--out DIR` | | Wait and download a succeeded run's artifacts here |
| `--max-cost CENTS` | | Explicit maximum cloud cost in cents; required for billable cloud jobs |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.