---
title: "Install Podstead"
description: "Set up hosting in your own Cloudflare account."
---

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

# Install Podstead

You need a terminal-capable agent or a terminal on your computer for installation. After setup, a compatible chat app can connect remotely.

## Before you start

Have these ready:

- Node.js 24.11.1 or newer, npm, and Git.
- A Cloudflare account with R2 enabled.
- A domain whose DNS is managed in that account.
- A Cloudflare Zero Trust organization and its team domain, such as `your-team.cloudflareaccess.com`.
- The email address you will use to sign in.
- Two hostnames: one for managing the podcast, one for public media.

The installer does not buy a domain, enable R2 billing, or create the Zero Trust organization. See [costs](https://podstead.wking.dev/docs/reference/costs/) before choosing a paid plan.

If this is an existing installation, follow [upgrades and adoption](https://podstead.wking.dev/docs/guides/upgrades/) first. Keep its original resource names and deployment state.

## Download and build

The packages are not published to npm yet. Build from source:

```sh
git clone https://github.com/wking-io/podstead.git
cd podstead
npm ci
npm run build
```

If you already have a checkout, use it and preserve any local changes.

## Choose the account and settings

Podstead uses Alchemy to create and update infrastructure. Authenticate Alchemy for the intended Cloudflare account using its profile workflow or supported environment credentials. Run the installed Alchemy CLI's `profile --help` for the current options. Keep credentials in the provider's private credential store, not in chat or Git.

```sh
cp infra/installation.example.json installation.local.json
```

Edit the file with your two hostnames, team domain, owner email, and unique bucket names. Leave `adopt` false for a fresh installation. Leave `createEmailIdentityProvider` false if your organization already has a sign-in method. [Configuration reference](https://podstead.wking.dev/docs/reference/configuration/)

The setting named `studioHost` is the management hostname. It does not create a dashboard.

## Check the plan, then deploy

```sh
npm run infra:validate -- --file installation.local.json
npm run infra:plan -- --file installation.local.json
```

Check the selected account, hostnames, buckets, and proposed changes. Stop if an existing bucket or Durable Object would be replaced or deleted. Once the plan is approved:

```sh
npm run deploy -- --file installation.local.json
```

The stack creates two R2 buckets, a Worker, SQLite-backed Durable Objects, an OAuth KV namespace, and Cloudflare Access applications. It can also create email PIN sign-in when requested.

## Check that it works

1. Let DNS and TLS become ready.
2. Open your management hostname. Its root shows service information, not a dashboard.
3. Connect an agent to `https://YOUR_MANAGEMENT_HOST/mcp` and complete owner sign-in.
4. [Create a show and publish a test episode](https://podstead.wking.dev/docs/start/first-episode/).
5. Open the returned RSS and audio URLs.

Keep `installation.local.json` and `.alchemy/state` privately backed up. Future upgrades need the same checkout, stack name, stage, and state.

Next: [Connect your agent](https://podstead.wking.dev/docs/start/connect/).

Source: https://podstead.wking.dev/docs/start/install/index.mdx
