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

# CLI

> The tracepress command.

Installing TracePress adds one command, `tracepress`.

## tracepress serve

Runs a server that holds one live stream of traces and keeps registered pipelines running on
it. Clients connect with [`tp.connect`](https://docs.tracepress.ai/reference/python#server).

```bash theme={null}
tracepress serve --port 7700 --lm openrouter:openai/gpt-6-luna
```

| Option | Default | |
| - | - | - |
| `--host` | `127.0.0.1` | Interface to listen on. Any non-local host needs `--token`. |
| `--port` | `7700` | Port to listen on. |
| `--token` | `$TRACEPRESS_TOKEN` | Token clients must send. |
| `--retain` | all | Events to keep per table, replayed to pipelines registered later. |
| `--lm` | none | Default model for pipelines that don't name one, e.g. `openrouter:openai/gpt-6-luna`. |

> [!WARNING]
>
> Registered pipelines run pickled code, so only connect clients you trust.

## Next steps

> [card] [Live pipelines](https://docs.tracepress.ai/cookbooks/live.md)
>
> Stream traces in, register pipelines and listen.

> [card] [Python SDK](https://docs.tracepress.ai/reference/python.md)
>
> The client API.


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