﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> Fetch the complete documentation index at: https://openworkflow.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ### When to use OpenWorkflow
>
> Use OpenWorkflow in TypeScript or JavaScript apps for:
>
> - Background jobs that need retries and must resume after a crash or deploy.
> - Multi-step integrations and data pipelines that need to save progress between operations.
> - AI workflows with multiple model or tool calls that need durable checkpoints.
> - Workflows that wait for a human approval, a webhook, or a timer before continuing.
>
> OpenWorkflow runs on Node.js 22.22+ or Bun, with PostgreSQL or SQLite storing workflow state. Your app enqueues runs, and a worker executes them.
>
> ### How to use OpenWorkflow
>
> Read and follow https://openworkflow.dev/skills/setup.md to set up OpenWorkflow.
>
> Define workflows with `defineWorkflow`, wrap operations in `step.run`, and enqueue runs with `ow.runWorkflow(workflow.spec, input)`. Start a worker with `npx @openworkflow/cli worker start` to execute them. See [Workflows](https://openworkflow.dev/docs/workflows.md), [Steps](https://openworkflow.dev/docs/steps.md), and [Signals](https://openworkflow.dev/docs/signals.md) for the APIs.

# Dashboard

> Web interface for monitoring workflows, checking which steps completed or failed, and inspecting results and errors

OpenWorkflow includes a built-in web dashboard for monitoring and debugging your
workflows. It lets you browse workflow runs, see which steps completed or
failed, inspect errors, and track the state of long-running workflows.

## Starting the Dashboard

```bash npm theme={null}
npx @openworkflow/cli dashboard
```

```bash pnpm theme={null}
pnpx @openworkflow/cli dashboard
```

```bash bun theme={null}
bunx @openworkflow/cli dashboard
```

The dashboard starts on `http://localhost:3000` by default.

To use a custom port:

```bash npm theme={null}
npx @openworkflow/cli dashboard --port 4000
```

```bash pnpm theme={null}
pnpx @openworkflow/cli dashboard --port 4000
```

```bash bun theme={null}
bunx @openworkflow/cli dashboard --port 4000
```

## Requirements

The dashboard requires:

1. A valid `openworkflow.config.ts` in your project
2. A running backend (PostgreSQL or SQLite)

The dashboard connects to the same backend as your workers. It shows data for
the namespace configured in your config file.

## Prometheus Metrics

The dashboard serves a Prometheus endpoint at `GET /metrics`. See the
[Prometheus guide](https://openworkflow.dev/docs/prometheus.md) for setup and alert examples.

> [!NOTE]
>
> The dashboard does not include built-in authentication. For production use,
> deploy it behind a VPN, private network, or reverse proxy with Basic Auth.


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