Skip to main content

Don't Starve Together Dedicated Server

English · 简体中文 · Releases

Run a Don't Starve Together room with a Rust Agent, manage it from the CLI or Python, and review what players did. A room has one container and one Agent for all its shards. The Agent stays reachable on a local Unix socket while the room is closed between scheduled openings.

flowchart LR
    Host["Host CLI / Python Host"] -->|systemd + Podman| Agent
    Client["CLI / Rust / Python client"] <-->|Unix socket| Agent
    Agent <-->|commands and events| Game["Forest, caves, other shards · Lua"]
    Agent -->|stdout| Journal["systemd journal"]
    Agent -->|optional OTLP| Backend["Telemetry backend"]

Open a Room

Use a Linux x86_64 host with systemd and Podman Quadlet. Install the CPython 3.15 wheel from the same release as the game image. The wheel includes the dst-server command. To build a matching image and CLI locally, follow the source build instructions.

The example creates room 299 under /srv/dst using a system service. Run it as the account that manages the system Quadlet directory. Put a Klei server token in /run/secrets/dst_cluster_token and pull the image before the first start.

podman pull quay.io/wh2099/dst-server:latest
import asyncio
from pathlib import Path

from dst_server import Host
from dst_server.settings import Room, build_template

token = Path("/run/secrets/dst_cluster_token").read_text().strip()
room = Room(
    number=299,
    template="pure_survival",
    cluster=build_template("pure_survival", number=299, token=token),
    deployment={"volume_idmap": "uids=0-1000-1;gids=0-1000-1"},
)
asyncio.run(Host("/srv/dst", "/etc/containers/systemd").create(room))

The volume mapping gives the game's UID/GID 1000 access to the example's root-owned files. Adjust it for your host's ownership.

dst-server host start --room 299
dst-server host status --room 299
dst-server call list_players --socket /srv/dst/299/.dst-agent.sock

Everyday Operations

Task Command
List managed rooms dst-server host list
Ask the game to save dst-server call save --socket /srv/dst/299/.dst-agent.sock
Follow the room log dst-server logs journal --unit dst-299.service --follow
Export a backup dst-server archive export 299 --output room-299.7z
Inspect a backup before restoring dst-server archive import room-299.7z
Look up game calls and arguments dst-server describe or dst-server describe --shard

Stop the service before editing its files. A Host edit updates the native settings and the generated Quadlet together.

dst-server host stop --room 299
dst-server host edit --room 299 --set '/cluster/settings/max_players=12'
dst-server host start --room 299

Guides

Steam community · Discord

Metadata

Release files for dst-server 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dst-server 0.6.0
File Size Uploaded Provenance Actions
dst_server-0.6.0.tar.gz 673.5 kB With provenance Details for dst_server-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dst-server 0.6.0
File Interpreter ABI Platform Actions
dst_server-0.6.0-cp315-cp315-manylinux_2_39_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.39+ x86-64 Details for dst_server-0.6.0-cp315-cp315-manylinux_2_39_x86_64.whl

Total release size: 17.7 MB

Release files / dst_server-0.6.0.tar.gz

Download URL dst_server-0.6.0.tar.gz
Size 673.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c727b1cc24f93a8aebf7794fda2a6fa7c23f14dc21134c53f1da815867dc97ea
BLAKE2b-256 checksum
How to use checksums
c307c99697d86bfe3b74231887cc26d3e5c4f293324ba357e54556ce0560ae84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / dst_server-0.6.0-cp315-cp315-manylinux_2_39_x86_64.whl

Download URL dst_server-0.6.0-cp315-cp315-manylinux_2_39_x86_64.whl
Size 17.0 MB
Tags CPython 3.15 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
0d7b22cf2124d3ada04e1ffdf1c6da2749685adc711b4eaf905afdc491411d58
BLAKE2b-256 checksum
How to use checksums
0fa8c9e215d40e16bc78afc692878b271cf4d21d933343b51af9e60ab8f73002
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for dst-server 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dst_server-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page