🌱 Bluesky.Garden

How to Self-Host a Bluesky PDS (Personal Data Server)

Updated

To self-host a Bluesky PDS, rent a small Linux server (Ubuntu or Debian), point your domain and a wildcard subdomain at it, open ports 80 and 443, and run Bluesky’s official installer from github.com/bluesky-social/pds. The installer sets up Docker, the PDS and the Caddy web server with automatic TLS. Once it’s running, you sign in to the regular Bluesky app by entering your server’s URL as the hosting provider.

This guide follows the official README as of November 2026. Check the repo before you start, because the details change.

What a PDS is (and whether you need one)

A Personal Data Server (PDS) stores your account: your posts, likes, follows, media and signing keys. Most people’s accounts live on Bluesky’s own PDS servers. The AT Protocol lets you move your account to any PDS, including one you run yourself, without changing your followers or your handle.

Self-hosting makes sense if you want to control your own data, host accounts for a small group or organisation, or experiment with the protocol. You don’t need it to get a custom handle. For that, see how to use your own domain as your Bluesky handle.

Server requirements

The official README lists these requirements:

It recommends this server size:

ResourceRecommendation
Operating systemUbuntu 24.04 (installer supports Ubuntu 22.04/24.04/26.04 and Debian 11/12/13)
Memory1 GB
CPU1 core
Storage20 GB SSD
Architectureamd64 or arm64
Users1–20

Use a fresh VPS. The installer expects nothing else to be using ports 80 and 443, so don’t run it on a server that already hosts a website. The README also suggests limiting SSH (port 22) to your own IP address.

Step-by-step: install a PDS

1. Open the firewall

In your cloud provider’s firewall settings, allow inbound traffic from anywhere on:

You don’t need to set up HTTPS yourself, because the bundled Caddy server handles certificates and redirects.

2. Add DNS records

At your DNS provider, create two A records that point to your server’s IP:

NameTypeValueTTL
example.comA12.34.56.78600
*.example.comA12.34.56.78600

You need the wildcard record if you want to create accounts on the PDS, because each account gets a subdomain handle such as alice.example.com. Check that example.com and a random subdomain such as test123.example.com both resolve to your IP before you continue. A tool like DNS Checker can confirm this.

3. Run the installer

SSH into the server and run:

curl https://raw.githubusercontent.com/bluesky-social/pds/main/installer.sh > installer.sh
sudo bash installer.sh

The installer asks for your public DNS name, an admin email address (which can be on any domain), and optionally a first user account. When it finishes, it prints the account’s handle, DID and password. Save the password, because it isn’t shown again.

All data lives in /pds, and configuration lives in /pds/pds.env. Back up that directory.

4. Verify it’s online

wsdump "wss://example.com/xrpc/com.atproto.sync.subscribeRepos?cursor=0"

It prints nothing until someone posts, which is expected.

The README warns that most connectivity problems come from moving the Caddy setup to Nginx, Apache or another reverse proxy. Bluesky doesn’t provide support for those setups.

5. Create accounts

The server includes pdsadmin, and the Docker image includes the goat CLI. Common commands:

# Create an account
sudo pdsadmin account create [email protected] alice.example.com

# List accounts
sudo pdsadmin account list

# Create an invite code (invites are required by default)
sudo pdsadmin create-invite-code

# See all commands
sudo pdsadmin help

You can also use goat directly, for example docker exec pds goat pds admin account create .... If a command needs the admin password, it’s PDS_ADMIN_PASSWORD in /pds/pds.env.

6. Sign in with the Bluesky app

In the Bluesky app on the web, iOS or Android, choose to sign in and change the hosting provider to your PDS URL, for example https://example.com. The certificate for each subdomain is issued on first use, so a new handle can take 10–30 seconds to start working.

Set up email (SMTP)

Your PDS has to send email for address verification and password resets. Add your SMTP settings to /pds/pds.env. This example from the README uses Resend:

PDS_EMAIL_SMTP_URL=smtps://resend:<your api key here>@smtp.resend.com:465/
[email protected]

Then restart with sudo systemctl restart pds. If the username or password contains special characters such as @, percent-encode them.

Keeping it updated

The installer sets up Watchtower, which updates the PDS container automatically. To update by hand, run:

sudo pdsadmin update

The repo also ships an optional Prometheus and Grafana monitoring stack in its monitoring/ folder.

Federation and relay limits

A new PDS starts sending its events to Bluesky’s relay (bsky.network, set by PDS_CRAWLERS) on its own. If your posts don’t appear in the app, run sudo pdsadmin request-crawl to ask the relay to crawl your server.

Bluesky’s rate limits documentation lists these default relay limits for new PDS instances at the time of writing:

LimitDefault
Repository events50/second, 2,600/hour, 21,000/day
Accounts100 maximum, 5 created per second

Bluesky says growing instances can ask to have these limits raised.

Moving an existing account to your PDS

You don’t have to start a new account. The AT Protocol supports account migration. Your DID, followers and handle come with you, and your repository and media are copied across. The atproto docs recommend goat (its account migration command) or the community-built PDS MOOver. Back up your data and read the migration guide first, because a failed migration is harder to fix than a fresh account.

Don’t wipe and reinstall a PDS on the same hostname, and don’t change its hostname, without migrating each account properly. Either one can put your PDS out of sync with the relay. The README has a section on fixing a relay desync if it happens.

FAQ

How much does it cost to host a Bluesky PDS?

The PDS software is free and open source (MIT/Apache 2.0). You pay for a small VPS (1 GB RAM, 1 CPU and 20 GB SSD is the recommendation) and a domain name. Prices depend on your provider.

Can I run a PDS on my home computer or Raspberry Pi?

The official installer is built for a VPS with a public IPv4 address and ports 80/443 reachable from the internet. It supports arm64, but home networks often lack a static public IP. Community deployment recipes are listed in the atproto self-hosting docs.

Will people on bsky.social see my posts?

Yes. Once the relay crawls your PDS, your posts appear in the Bluesky app like anyone else’s. If they don’t, check that WebSockets work and run pdsadmin request-crawl.

Do I need a PDS to use a custom domain handle?

No. Any account, including one hosted by Bluesky, can use a domain handle by adding a DNS TXT record. See how to use your own domain as your Bluesky handle.

How many users can one PDS handle?

The README recommends the minimum server size for 1–20 users. Bluesky’s relay also caps new PDS instances at 100 accounts by default, and you can ask Bluesky to raise that limit.

Tools mentioned in this guide

Bluesky Handle Directory

A directory of Bluesky handles sorted by TLD.

Read more
A favicon of Vanity Blue

Vanity Blue

A service to get a custom Bluesky handle.

Read more
A favicon of Bluesky.bot

Bluesky.bot

Claim a free handle for a Bluesky bot and find bots in a searchable directory.

Read more