> ## Documentation Index
> Fetch the complete documentation index at: https://docs.restate.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Restate Cloud

> Learn how to use Restate Cloud, the fully managed version of Restate.

Restate Cloud is a fully managed serverless version of Restate.
This allows you to focus on implementing your services, while Restate Cloud handles all aspects of availability and durability for your invocations, workflows, and state.

> [card] [Restate Cloud](https://restate.dev/cloud/)
>
> Learn more about what Restate Cloud has to offer and pricing plans.

Your services can run anywhere: on Kubernetes, as serverless functions, or in private environments.
Restate Cloud lets you connect your services securely, and provides a great local developer experience.

> [!TIP]
>
> If you want the advantages of Restate Cloud but running within your cloud account, check out [Restate BYOC](https://docs.restate.dev/byoc/overview.md).

## Get started with the free tier

### 1. Sign up

Restate Cloud offers a free tier that lets you get started quickly, with no credit card required.

> [card] [Sign up for Restate Cloud Free Tier](https://cloud.restate.dev/)

After signing up, you'll be prompted to create an account and an environment.

An environment is a unique Restate cluster instance, managed by Restate.

![Cloud login quickstart](https://mintcdn.com/restate-6d46e1dc/JE_5lF_32wyDbugn/img/cloud/cloud-login.png?fit=max\&auto=format\&n=JE_5lF_32wyDbugn\&q=85\&s=79e0fa17ab75de41dea9d0a3d8b5dce7)

### 2. Connect your CLI

You can start using your new environment straight away using the [Restate CLI](https://docs.restate.dev/installation.md#install-restate-server-&-cli).

Log in to Restate Cloud:

```bash theme={null}
restate cloud login
```

Set up a new CLI profile for your environment:

```bash theme={null}
restate cloud env configure
```

Tell the CLI to use the new environment:

```bash theme={null}
restate config use-env <name>
```

> [!NOTE]
>
> At any time, you can switch your CLI back to point to a Restate server running
> on your machine with `restate config use-environment local` (see the
> [CLI config docs](https://docs.restate.dev/references/cli-config.md)).

### 3. Run your service

Run your own Restate service on `localhost:9080`, or get and run one with the [quickstart](https://docs.restate.dev/quickstart.md).

### 4. Expose your service to Restate Cloud

After connecting the CLI to your environment, you can use the CLI tunnel feature to expose your local service to Restate Cloud.

For example to expose a service running on `localhost:9080`, run:

```bash theme={null}
restate cloud env tunnel --tunnel-name my-tunnel
restate deployments register --tunnel-name my-tunnel http://localhost:9080
```

### 5. Invoke your service

To invoke your service locally via Restate Cloud, create a tunnel that exposes the ingress port of your Restate Cloud environment as if it were running on your machine:

```bash theme={null}
restate cloud env tunnel --remote-port 8080
```

Now you can call your service handlers over HTTP on `localhost:8080` (Restate Cloud's ingress port):

```bash theme={null}
curl localhost:8080/restate/call/MyService/myHandler
```

## Connect your services

For a guided introduction, watch this walkthrough of getting started with Restate Cloud:

[Getting started with Restate Cloud](https://www.youtube.com/embed/W2iDBqSIbqU?si=2RlVO-4C25mLeVbv\&start=242)

When using Restate Cloud, you can run your services anywhere: on Kubernetes, Google Cloud Run, other serverless platforms, or in private environments. The only requirement is that your services need to be reachable from Restate Cloud’s infrastructure.

Choose where your service runs and follow the corresponding deployment guide:

> [card] [Kubernetes](https://docs.restate.dev/services/deploy/kubernetes.md#deploy-a-service-to-restate-cloud-or-byoc)
>
> Recommended
>
> Deploy with the Restate Operator and connect services to Restate Cloud.

> [card] [Google Cloud Run](https://docs.restate.dev/services/deploy/cloud-run.md)
>
> Recommended
>
> Deploy your services as containers on Google Cloud Run.

> [card] [Vercel](https://docs.restate.dev/services/deploy/vercel.md)
>
> Deploy TypeScript services to Vercel and secure their public endpoints.

> [card] [AWS Lambda](https://docs.restate.dev/services/deploy/lambda.md)
>
> Let Restate Cloud invoke versioned Lambda functions through an IAM role.

> [card] [Cloudflare Workers](https://docs.restate.dev/services/deploy/cloudflare-workers.md)
>
> Deploy TypeScript services to Cloudflare Workers.

> [card] [Other serverless platforms](https://docs.restate.dev/services/deploy/other-serverless-platforms.md)
>
> Connect services running on other serverless, AI compute, and application platforms.

> [card] [Containers and VMs](https://docs.restate.dev/services/deploy/standalone.md)
>
> Connect services through public endpoints or a secure tunnel client.

## Invoke services with API keys

To call your services from other apps or scripts, send HTTP requests to your environment’s ingress URL using your API key.

You can find the ingress URL in the Developers tab of the Cloud UI.
Usually it has the form `https://<env_id>.env.<region>.restate.cloud:8080`, where the `<env_id>` is your environment ID without the `env_` prefix, and `<region>` is either `us` or `eu`.

To create an API key, go to the Developers tab in the Cloud UI.

Now you can call your service handlers by including the API Key as a Bearer token like this:

```bash theme={null}
curl -H "Authorization: Bearer $RESTATE_AUTH_TOKEN" https://201hy10cd3h6426jy80tb32n6en.env.us.restate.cloud:8080/restate/call/MyService/MyHandler
curl -H "Authorization: Bearer $RESTATE_AUTH_TOKEN" https://201hy10cd3h6426jy80tb32n6en.env.us.restate.cloud:9070/deployments
```

You can also use the CLI with this token:

```bash theme={null}
export RESTATE_HOST_SCHEME=https RESTATE_HOST=201hy10cd3h6426jy80tb32n6en.env.us.restate.cloud RESTATE_AUTH_TOKEN=$RESTATE_AUTH_TOKEN
restate whoami
```

> [!NOTE]
>
> You can use this approach for sending requests to the Admin API from scripts, CI pipelines, API gateways, or services that exist outside Restate.


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