# Local runner

The local runner executes the checkout's `bun run check` script. Follow the [Quickstart](/docs/quickstart) to submit a run.

| Task                        | Command                  |
| --------------------------- | ------------------------ |
| Show the available commands | `kipivo --help`          |
| Start the runner            | `kipivo serve`           |
| Submit a check              | `kipivo run check`       |
| Read the status             | `kipivo status <run-id>` |
| Read the logs               | `kipivo logs <run-id>`   |
| List recent runs offline    | `kipivo list`            |

`kpvo` is an alias for `kipivo`. Both commands accept `--version`. Run commands from the checkout where you started the runner.

## Inspect runs in a browser

With the runner active, start `bun run kpdev dev --filter=web` and open [Local runs](http://localhost:3000/runs). This page is available on the development server.

To keep a check with a task, sign in to [Workbench](http://localhost:3000/workbench). Open an existing task, select **Link a check**, and choose a recent run. Open the task again and select **View result and logs** to see its status, exit code, and output. The browser stores the run ID for that task, account, and board. The logs stay in the local runner.

## Build the CLI

Install with `npm install -g kipivo` or run `npx kipivo --help`. npm selects the native executable for macOS (Apple Silicon or Intel), Linux with glibc (arm64 or x64), or Windows x64. Building from source requires Rust, and running the checkout’s check script requires Bun. To build from source, run these commands from the repository root.

```sh
bun run kpdev turbo run build --filter=kipivo
./apps/cli/dist/kipivo --help
```

## Troubleshoot a check

- If the CLI cannot connect, check that the runner is still open and that both terminals use the same checkout and `KIPIVO_HOME`.
- The runner accepts one active check and defaults to `127.0.0.1:4310`. If the previous check is still running, inspect its status before submitting another.
- Run history is stored under `~/.kipivo` by default. Set `KIPIVO_HOME` to a private directory in both terminals to use separate runner state.
