# CLI

> The commands Loom ships.

Run each from the Loom checkout with `uv run`, or with `uv run --project /path/to/loom` from anywhere.

| Command | Does |
|---|---|
| `python -m loom.config <bundle.yaml>` | Loads and validates a bundle, and describes it. |
| `python -m loom.core <bundle.yaml>` | Turns one cycle and exits. |
| `python -m loom.api <bundle.yaml>` | Serves the agent API. |
| `python -m loom.api.tokens issue <bundle.yaml> <caller>` | Issues a bearer token for a caller. |
| `python -m loom.api.tokens revoke <bundle.yaml> <caller>` | Revokes it. |

## `loom.api` options

| Option | Default | Meaning |
|---|---|---|
| `--host` | `127.0.0.1` | Address to bind. Keep it on loopback unless you mean otherwise. |
| `--port` | `8000` | Port. |
| `--allow-host NAME` | | Also accept this `Host` header. Repeatable. |
| `--viewer DIR` | | Serve the live viewer page (`clients/viewer`) at `/viewer`. |