# Cairnflow Cloud

> The hosted service — organizations, environments, region, and what the Beta includes.

Source: https://cairnflow.dev/docs/cloud

:::caution[Early-access waitlist]
Cairnflow Cloud is not open yet — [join the waitlist](/#pricing) to hear when early access opens.
This page describes the hosted service as it is built for its Beta, and details may change before
it opens. To run cairnflow today, [host it yourself](/docs/self-hosting).
:::

Cairnflow Cloud runs cairnflow for you. You write and host your service; Cloud keeps the journals,
state and timers, calls your service when a handler has work to do, and gives you a console for
each environment.

Cloud is planned to start as a **private Beta**: invite-only, free during the Beta, and with no
SLA. Only invited email addresses will be able to create organizations and environments, and
invitations have not started. How many organizations, environments and keys an account can create
is in [Account limits](/docs/cloud/limits#account-limits).

## Organizations

Everything in Cloud belongs to an **organization**: usually your company or team. You create one
the first time you sign in, and invite teammates by email (an invitation link is shown once and
expires after 7 days).

Each member has a role in the organization:

| Role | Can |
|---|---|
| Owner | Everything an admin can, plus inviting, promoting, demoting and removing owners. An organization always keeps at least one owner. Deleting an organization is not in the web app yet: ask support |
| Admin | Manage environments, API keys and members |
| Member | Create and revoke API keys; cannot manage members |
| Viewer | Read-only access |
| Billing | Billing only; no access to environments |

The same roles decide what you can do in an environment's console: owners, admins and members
open it with full rights, viewers read only, and billing members cannot open it.

## Environments

An **environment** is where your invocations run: for example `prod` and `staging`. Each one has
its own:

- **endpoint**: the URL your service and scripts talk to, such as
  `https://e0123456789a.iad.cairnflow.cloud`;
- **API keys**: see [API keys](/docs/cloud/api-keys);
- **identity key**: the public key your service uses to check that requests really come from this
  environment;
- **data**: journals, state, schedules, streams, archives and audit log;
- **console**.

An environment is an **isolated tenant on a shared cell**. A cell is a group of cairnflow nodes
and its storage bucket, shared by many environments. Isolation between environments is enforced by
the runtime: every request, query and stored object is scoped to its environment, and one
environment cannot read, call or list another's data. An environment is not a dedicated cell, and
you cannot bring your own bucket.

A new environment usually becomes **Active** within a few seconds; the endpoint, identity key and
API keys appear then. If it is still pending after a couple of minutes, write to
[support@cairnflow.dev](mailto:support@cairnflow.dev).

## Region

Cloud runs in one region: **iad (US East, Virginia)**. Every resume of a handler is a round trip
between the cell and your service, so host your service close to it.

## How Cloud calls your service

- Only **`https://`** endpoints on the public internet. Private and internal addresses are refused.
- Your service must check the **identity key**: `identityKeys` in `serve()` or `fetchHandler()`.
  Registering an endpoint that does not is refused.
- `https://` endpoints are called in **request-response** mode unless you register them with
  `"transport": "declared"`. Each turn is then one HTTP request and must finish within the
  [turn time limit](/docs/cloud/limits#turn-time-limit); tokens reach the browser when a step
  finishes, not as they are generated. Streaming mode needs HTTP/2 all the way to your app.

Details in [Deployments](/docs/cloud/deployments).

## What the Beta includes

- Every environment has the same plan. See [Limits](/docs/cloud/limits) for the numbers.
- No billing page: the Beta is free.
- One region, no SLA, no uptime credit.
- Backups of each cell to a second storage provider, kept for about 45 days. See
  [Data and deletion](/docs/cloud/data-and-deletion).

What is not there yet is listed in [Known limitations](/docs/cloud/known-limitations).

## Self-hosting

Cloud runs the same runtime you can run yourself. Most of this section (deployments, the console,
the query API) applies to a self-hosted cluster too; the plan limits, organizations and the
shared-cell rules are specific to Cloud. See [Self-hosting](/docs/self-hosting).

## Support

Write to [support@cairnflow.dev](mailto:support@cairnflow.dev). Include your organization name and,
for a problem with an invocation, its ID (shown in the console).

To report a security issue, write to [security@cairnflow.dev](mailto:security@cairnflow.dev).

## Next

- [Quickstart](/docs/quickstart)
- [API keys](/docs/cloud/api-keys)
- [Deployments](/docs/cloud/deployments)
