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 | 0.0.0.0 | 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 (0.0.0.0:8000)uvx runsight
# Custom portuvx runsight --port 3000
# Bind to localhost onlyuvx runsight --host 127.0.0.1 --port 9000On 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 with defaultsdocker run -p 8000:8000 runsight
# Mount a workspace directory for your workflows, souls, and toolsdocker run -p 8000:8000 -v $(pwd)/custom:/workspace/custom 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 3000:3000 runsight runsight --port 3000Requirements
Section titled “Requirements”- Python >= 3.11
- The
runsightpackage installs FastAPI, Uvicorn, SQLModel, and all other dependencies automatically.