---
title: "Use Dex Cloud"
description: "Dex Cloud runs Dex Server for you, with its storage, upgrades, capacity, and monitoring. Your Workers run your code anywhere and connect to the server's endpoint over TLS with an API key."
canonical_url: "https://docs.superdurable.io/production-operations/use-dex-cloud/"
source: "docs/content/components/dex-cloud.mdx"
locale: "en"
---

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

# Use Dex Cloud

Dex Cloud runs Dex Server for you, with its storage, upgrades, capacity, and monitoring. Your Workers run anywhere, so your code and credentials stay with you.

<a id="get-started"></a>

## Get started

[Sign up for Dex Cloud](https://dex.superdurable.io/register), then create a server. For pricing, regions, and SLA, [contact Super Durable](https://superdurable.io/about/#contact).

Dex Cloud also runs whole applications. A [Managed Dex App](https://docs.superdurable.io/production-operations/managed-dex-app.md) is built from your GitHub repository and runs your Workers too.

<a id="connect"></a>

## Connect Workers and Clients

Each server you create in Dex Cloud has its own endpoint and API key. Your Workers and Clients connect to that endpoint over TLS with the key:

- The key goes in an [API key credential](https://docs.superdurable.io/reference/server/authentication.md#sdk-credentials).
- TLS is the SDK's [TLS option](https://docs.superdurable.io/reference/server/authentication.md#tls).

The values come from the Dex Server page in Dex Cloud. Open **Management**, then the **Connect** tab. Its **Connection values** list the **Endpoint**, **Server ID**, and **Token URL**, each with a Copy button. The **API keys** tab creates an API key. Dex Cloud shows its secret once, when you create it.

The Dex Agents CLI commands, such as `dex-agents-claude-sdk`, connect with the same values. Set `dex.server` in the configuration file to `https://` plus the endpoint. Set `dex.auth` to `api_key`, with the **Token URL** and **Server ID** you copied. Export the secret as `DEX_API_KEY`:

```yaml
dex:
  server: https://ENDPOINT
  auth:
    mode: api_key
    token_url: TOKEN_URL
    server_id: SERVER_ID
```

```bash
export DEX_API_KEY=...
dex-agents-claude-sdk
```

[Run against a remote Dex server](https://docs.superdurable.io/reference/agents/cli-first-run.md#remote-server) lists every setting, including `DEX_TOKEN_URL` and `DEX_SERVER_ID` as alternatives to the file.

<a id="what-runs-where"></a>

## What runs where

|                                                         | Who runs it                                                  |
| ------------------------------------------------------- | ------------------------------------------------------------ |
| Dex Server: storage, upgrades, capacity, and monitoring | Super Durable                                                |
| Flow state: Flow inputs, Attributes, and Step results   | Stored by Dex Server, in storage that Super Durable operates |
| Your Workers and your Flow code                         | You, wherever you deploy them                                |
| The credentials your code uses for your own APIs        | You. They stay in your Workers.                              |

[Where to run Dex Server](https://docs.superdurable.io/production-operations.md#where-to-run) compares Dex Cloud with a self-hosted server.

## Next

- [Managed Dex App](https://docs.superdurable.io/production-operations/managed-dex-app.md): let Dex Cloud build and run your whole application from a GitHub repository.
- [Production checklist](https://docs.superdurable.io/production-operations/production-checklist.md): the checklist items for your Workers, code changes, and database apply in Dex Cloud too.
- [Operate and Debug](https://docs.superdurable.io/production-operations/operate-and-debug.md): find a Flow and fix one that is stuck or failed.
