---
title: "Install"
description: "Install dexcli with Homebrew on macOS or Linux, then start Dex and run an example from the playground."
canonical_url: "https://docs.superdurable.io/install/"
source: "docs/content/install.mdx"
locale: "en"
language: "python"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Install

Code on this page is in Python. Other languages: [Go](https://docs.superdurable.io/install.go.md) · [Java](https://docs.superdurable.io/install.java.md) · [TypeScript](https://docs.superdurable.io/install.typescript.md) · [Rust](https://docs.superdurable.io/install.rust.md)

Install `dexcli`, the Dex command-line tool, on macOS or Linux. Then start Dex on your machine.

## Install dexcli

With Homebrew:

```bash
brew install superdurable/tap/dexcli
```

Without Homebrew, install from a release archive.

<a id="install-from-a-release-archive"></a>

### Install from a release archive

Download the archive for your system from the [`dexcli` releases](https://github.com/superdurable/dex/releases?q=cli-v\&expanded=true). There is one for macOS and Linux, each on amd64 and arm64, such as `dexcli_vVERSION_linux_amd64.tar.gz`. It holds `dexcli` and **dex-server-zd**. Keep both in the same directory on your `PATH`:

```bash
tar xzf dexcli_vVERSION_linux_amd64.tar.gz   # VERSION is the release you downloaded
sudo mv dexcli dex-server-zd /usr/local/bin/
dexcli version
```

The release's `checksums.txt` verifies the download.

<a id="start-dex"></a>

## Start Dex

<a id="check-that-dex-starts"></a>

Start Dex Server and Dex Web:

```bash
dexcli dev
```

Wait for `Dex development environment is ready`. Dex Web then opens automatically in your browser when you run it in an interactive terminal outside CI. If the browser stays closed, open the Dex Web address it prints. The [CLI reference](https://docs.superdurable.io/reference/cli.md#start-locally) explains the ports, the state directory, and the logs.

To keep the browser closed, add [`--open=false`](https://docs.superdurable.io/reference/cli.md#start-locally):

```bash
dexcli dev --open=false
```

Keep it running for the steps below. Ctrl+C stops it.

<a id="run-an-example-from-the-playground"></a>

## Run an example from the playground

<a id="run-all-the-examples"></a>

In a second terminal, start the examples of one language. The first command extracts only that language's examples folder from the repository archive:

**Python**

```bash
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/python
cd python
uv sync --locked
uv run --frozen python main.py
```

You need Python 3.11 or later and uv 0.12.2.

Example: [examples/python](https://github.com/superdurable/dex/tree/main/examples/python)

The example starts a Worker and an HTTP server on port 8080 by default. If **dexcli dev** prints a Dex Server address other than `127.0.0.1:8801`, set `DEX_FLOW_SERVICE_ADDRESS` to that address (`DEX_SERVER_ADDRESS` for Rust). [Examples](https://docs.superdurable.io/examples.md) describes each example.

In a third terminal, download and start the [examples playground](https://github.com/superdurable/dex/tree/main/examples/playground). It needs Python 3. If **dexcli dev** printed another Dex Web address, pass it to `--dex-web`:

```bash
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/playground
cd playground
./start.sh --port 3333 --example-server http://127.0.0.1:8080 --dex-web http://127.0.0.1:8802
```

The playground opens at `http://127.0.0.1:3333`. Pick an example and call its APIs in order. Here Customer refund with manager approval calls **Start** to start a refund, **Approve or reject** to approve it, and **Describe** to read the result:

[![The examples playground: selecting Customer refund with manager approval, then calling Start, Approve or reject, and Describe, which returns a completed refund](https://docs.superdurable.io/img/install/playground-customer-refund.gif)](https://docs.superdurable.io/img/install/playground-customer-refund.gif)

In Dex Web, select the run on **Flows**. **Graph** shows the Steps it ran:

[![Dex Web: selecting the refund run on Flows, then switching from Timeline to Graph](https://docs.superdurable.io/img/install/dex-web-open-run-graph.gif)](https://docs.superdurable.io/img/install/dex-web-open-run-graph.gif)

On **Timeline**, select an event to see its input and output in the selected event panel. [Dex Web](https://docs.superdurable.io/reference/web/dex-web.md) describes every view.

[![Dex Web Timeline: selecting the Issue Refund event shows its Step input, Step decision, and the Attributes it wrote](https://docs.superdurable.io/img/install/dex-web-timeline-event.gif)](https://docs.superdurable.io/img/install/dex-web-timeline-event.gif)

<a id="if-something-does-not-work"></a>

## Fix connection problems

- **A Worker or Client fails to connect.** Check that **dexcli dev** still runs and printed **Dex development environment is ready**. Then check that the failing Worker or Client uses the **Dex Server** address it printed.
- **dexcli dev fails with `127.0.0.1:8801 is already in use`.** A port you passed with `-dex-port` or `-web-port` is taken. Pass a free one, or leave the flag out.
- **The Worker is ready, but nothing runs.** Check that the Worker registers the Flow type you start, and that both connect to the same **Dex Server**. If the Flow exists, inspect its pending or waiting reason in Dex Web.
- **dexcli dev stops with an error.** If the server fails to start, dexcli can print its last log lines and the log path. See [Server logs](https://docs.superdurable.io/reference/cli.md#server-logs) for the default path.

## Next

- [Quick Start](https://docs.superdurable.io/quick-start.md): run and operate one example end to end.
- [CLI reference](https://docs.superdurable.io/reference/cli.md#start-locally): ports, the state directory, logs, and a second Dex.
