Setup guide
One friend sets up the group, either on Sleepingbag Cloud or on their own free Cloudflare account. Everyone else just needs the invite code.
Before you start
Share each farm or world from its host's computer
A co-op world lives on the computer of whoever hosts it. Playing in a friend's world doesn't put a copy on yours, so the host is the one who shares it.
In Stardew, everyone joins once through Co-op
Your farmer is saved inside the host's file, so join each farm once while its host plays. That's when the game creates your farmer. After that, you can play it on your own time. Terraria and Valheim characters skip this step: they stay on your own computer.
Using Sleepingbag Cloud
We run the server, so there's nothing to set up. $4 a month for the whole group, free for the first 30 days.
Make the group
Sign up, name your group and pick its color. Already hosting your own? Choose Move a group instead and paste its invite code: everything comes along.
Join it in Sleepingbag, then share the code
The group's page shows a code like HAY-7KQ2M9XD. In Sleepingbag, choose I have an invite code and paste it, then send it to your friends. They follow the same steps as below.
Hosting it yourself
Do this once for the whole group, not once per farm. You'll need about five minutes.
Create a free Cloudflare account
Sign up at dash.cloudflare.com and confirm your email. You don't need a website or a domain. Already have an account? Skip ahead.
Turn on R2 storage
In the Cloudflare dashboard, open R2 Object Storage and click Enable (it may say Purchase R2). Choose the free plan.
Cloudflare asks for a card here, even on the free tier.
Create an API token
Open your API tokens and click Create Token. Next to Edit Cloudflare Workers, click Use template. Pick your account, then Continue to summary and Create Token. Copy it.
Paste it into Sleepingbag
Install Sleepingbag, open it and choose Set up for my group. Paste the token. Sleepingbag builds your group's private storage and a tiny server in your account. The token is only used for this, so you can delete it afterwards.
Share the invite code
Sleepingbag shows a code like HAY-7KQ2M9XD. Send it to your group chat. You can find it again in Settings any time.
The code is your group's key. Anyone with it can open your farms and worlds, so only share it with your group.
Joining with an invite code
No account needed. Two minutes, tops.
Install Sleepingbag
Download it for Mac or Windows. On a Mac, open Sleepingbag.dmg and drag Sleepingbag to Applications. On Windows, run Sleepingbag-Setup.exe and it opens in your tray a few seconds later. If Windows says it protected your PC, click More info, then Run anyway.
Paste your invite code
Choose I have an invite code and paste the HAY- code your friend sent. Capitals, spaces and dashes don't matter. Then tell Sleepingbag what your friends call you and tick the games you play. You can change the games later in Settings → Games.
Stardew: pick your farmer
For each farm, choose the character you play. Sleepingbag makes that farmer the host whenever you play, so you're always yourself. No farmer of yours there yet? Sleepingbag shows Join and the host's name, as in Join Sam's game: join once through Co-op while they host.
Terraria and Valheim: just play
Your characters stay on your computer and work in any world, so there's nothing to pick. If you like, link your character on a world's page so friends can see how you're doing.
Then, every time you play
Click Play
Sleepingbag grabs your friends' latest progress, then opens the game.
Load it up
Load the farm or world as usual. You're the host, as your own character.
Play as normal
Each time the game saves, like each night in Stardew, your progress goes to the group.
In Stardew, the farmhouse belongs to whoever hosts, so characters trade houses when a different friend plays. Keep personal things in chests outside.
Bringing an existing co-op farm or world? On the host's computer it shows up as Only on this computer. Click Share and your friends can download it. Want updates in a Discord channel? Connect Discord.
More than one group
Sleepingbag can be in as many groups as you like, a bit like Discord servers. Once you're in two, a rail of group icons appears down the side of the window, with a dot when a group has something new.
Joining another group
Got a second invite code? In Sleepingbag, choose Add another group, then Join a group, and paste it. It's the same as the first time.
Setting up another group
Choose Add another group, then Set up a new group, and give it a name and a color. Paste a Cloudflare token as before: the same account you used for your first group works fine, or a different one. On the same account, Sleepingbag notices the group already there and offers Make a new group beside it. Deleted your first token? Make a new one with the same template.
Share the new invite code
Each group has its own invite code, its own farms and worlds, and its own feed. A farm or world belongs to one group.
Setting up another group never touches the groups already on that Cloudflare account. Each one gets its own storage and server, side by side.
Storage and limits
Everything lives in your group's own Cloudflare account. For most groups the free tier is plenty.
2 GB of history per world
Each farm or world keeps its newest 30 versions, up to 2 GB in all, and always at least 3. A Stardew farm is a few megabytes, so it keeps all 30.
1 GiB per world
Worlds bigger than 1 GiB can't be shared. Sleepingbag says so up front instead of failing halfway.
10 GB free per account
Cloudflare's free tier includes 10 GB of storage per account. Whoever set up the group can see how much is used under R2 in the Cloudflare dashboard.
Groups share an account
Several groups on one Cloudflare account share its free 10 GB and its daily request allowance. Setup tells you how many groups an account already runs.
For a sense of scale: a Stardew farm is a few megabytes, and a medium Terraria world uploads at about 3 MB, and Valheim worlds grow as you explore. Past the free 10 GB, Cloudflare charges the account owner for the extra storage.