CLI Reference
The runsight command starts the Runsight server (FastAPI + Uvicorn). The CLI is intentionally minimal — it launches the server and serves the bundled GUI.
Running with uvx
Section titled “Running with uvx”The recommended way to run Runsight is via uvx, which handles Python package resolution automatically:
uvx runsightThis installs the runsight package (if not already cached) and runs the runsight entry point, which is registered in pyproject.toml as:
[project.scripts]runsight = "runsight_api.cli:main"Command syntax
Section titled “Command syntax”runsight [--host HOST] [--port PORT]Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--host | str | 127.0.0.1 | Bind address for the server |
--port | int | 8000 | Bind port for the server |
--help, -h | — | — | Print usage information and exit |
Unknown arguments cause the CLI to print an error and exit with code 1.
Examples
Section titled “Examples”# Start with defaults (127.0.0.1:8000)uvx runsight
# Custom portuvx runsight --port 3000
# Bind to localhost onlyuvx runsight --host 127.0.0.1 --port 9000
# Bind to all interfaces only when protected by your own network and auth controlsuvx runsight --host 0.0.0.0 --port 8000On startup, the CLI prints:
Runsight running at http://localhost:8000 Press Ctrl+C to stopDocker
Section titled “Docker”Runsight ships a multi-stage Dockerfile that bundles the frontend and backend into a single image.
# Build the imagedocker build -t runsight .
# Run for local-only accessdocker run -p 127.0.0.1:8000:8000 runsight
# Mount the whole workspace root so .runsight state persists toodocker run -p 127.0.0.1:8000:8000 -v "$(pwd)":/workspace runsightEnvironment variables
Section titled “Environment variables”| Variable | Default | Description |
|---|---|---|
RUNSIGHT_BASE_PATH | /workspace | Root path for workflow discovery |
RUNSIGHT_STATIC_DIR | /app/static | Path to the bundled frontend assets |
RUNSIGHT_LOG_FORMAT | text | Log output format |
The container exposes port 8000 and includes a health check at /health.
Passing CLI flags in Docker
Section titled “Passing CLI flags in Docker”The default Docker CMD is ["runsight"]. Override it to pass flags:
docker run -p 127.0.0.1:3000:3000 runsight runsight --host 0.0.0.0 --port 3000Requirements
Section titled “Requirements”- Python >= 3.11
- The
runsightpackage installs FastAPI, Uvicorn, SQLModel, and all other dependencies automatically.