Pithos documentation

Using an AI assistant? Give it this page or the Markdown version, then describe what you want to do. Type recovery phrases and secret keys only into s3d or Pithos on your own computer, never into a chat.

Pithos is a control panel for s3d, the Sia Foundation's S3 gateway. With it you connect s3d to a Sia storage account, create S3 users and access keys, keep files in drives, play and share them, and watch uploads reach the Sia network. Everything Pithos does can also be done by hand with the s3d command line; this page explains both, so you can set it up yourself or hand the page to an AI assistant and let it guide you.

This page is also published as plain Markdown at pithos.sia/docs/pithos-docs.md for AI assistants.

How the pieces fit

PieceWhat it is
SiaA decentralized storage network: independent hosts store your data, paid in siacoin.
IndexerA service that rents space from Sia hosts and keeps track of where your data is. sia.storage is the indexer run by the Sia Foundation; you can run your own (indexd).
Sia accountYour account at an indexer. It holds the storage you pay for (sia.storage's free plan: 50 GB).
s3dA program on your computer that speaks the S3 protocol and stores everything through your Sia account.
S3 userA login inside your own s3d. Each user owns drives and has access keys.
Access keyAn access key ID and secret key pair that S3 apps use to sign in as a user.
DriveTop-level storage owned by one S3 user. S3 apps call it a bucket.
FolderPart of a file's name (photos/2026/beach.jpg). Pithos keeps empty folders visible with a small marker.
PithosThis app. It runs s3d for you and puts a screen over all of the above.

Data flow: your app or Pithos → s3d on your computer → (encrypted, erasure-coded) → Sia hosts, tracked by your indexer account.

Two things to know early:

  1. s3d waits before uploading small files. It packs uploads into blocks of about 40 MB before sending them to Sia. Until a block is full, files exist only on your computer. Pithos shows a "files waiting to upload" banner and uploads leftovers automatically after 10 quiet minutes (Settings › automatic upload); s3d flush or Upload now sends them immediately.
  2. 127.0.0.1 means "this computer". s3d listens on 127.0.0.1:8000 by default, so links that start with it work only on the machine running s3d. Other devices cannot open them.

Getting started (Pithos in Theseus)

Pithos comes with Theseus, the Silent Mode browser. Open it from the Pithos icon in the left-hand strip.

  1. Unlock. Pithos opens only while your Theseus password vault is unlocked (PIN or master password), because it shows access-key secrets.
  2. Accounts › Get started. The guide walks through each step:
    1. Sia Storage account: sign up or sign in at sia.storage (the guide opens it for you). Tick "I have created my Sia Storage account and I am signed in", or choose your own indexer.
    2. Install s3d: Pithos downloads the pinned s3d release and checks its SHA-256.
    3. Recovery phrase: choose From my vault (Pithos derives the phrase from your Theseus vault, so there is nothing to write down) or use your own 12-word phrase.
    4. Connect: Pithos runs s3d login and opens the indexer's approval page. Approve the app named S3d there.
    5. Start gateway: s3d starts and keeps running (Pithos restarts it after a crash and when Theseus starts).
    6. Access key: Pithos creates your first S3 user, its drive and an access key. Save the key (Copy, or Save to encrypted file).
  3. Drives. Open your drive and drag files in.

Which Sia account you end up with depends on two things together: the indexer login that approved the connection and the recovery phrase. The same phrase approved from two different logins makes two different accounts.

The Pithos screen

The menu is in setup order. In the narrow sidebar it is the ☰ button at the top right; the ⤢ button next to it opens Pithos as a full page.

Accounts

Overview

Users & keys

Drives

Settings

Edits s3d.yml; s3d reads it at start, so restart to apply. Also: automatic upload of leftovers (on by default, after 10 minutes with no new uploads) and where your drives live.

Logs

Live output of s3d and Pithos's own notes (why it started or did not start s3d, flushes, errors).

Addresses, updates and the lock

Drives on Silent Mode

By default s3d runs on your computer. Settings › Where your drives live can move it to Silent Mode's server (s3.silentmode.st) instead. It keeps working with your computer off, other devices can reach it, and the Pithos screens stay the same.

Public folders anyone can open. Make a folder public (⋯ › Share… on a drive on Silent Mode) and it gets an address like https://navigate.st/s3/<your-bns-name>/<drive>/<folder>/: a page with its files, small pictures and a player, which works in any browser. A single file is at the same address plus its name. Tools can add ?json to a folder address for a JSON listing.

Other ways to run Pithos

Web console

npm install
node bin/pithos-web.js

It prints a one-time sign-in link for http://127.0.0.1:8700. Options:

FlagMeaning
--listen host:portAddress to serve on (default 127.0.0.1:8700). Anything beyond loopback needs a password.
--config <s3d.yml>Which s3d config to manage.
--s3d <binary>Use this s3d binary.
--bin-dir <dir>Where Pithos installs s3d.
--password-file <file>Password login (or set PITHOS_PASSWORD, at least 12 characters).
--allow-host <name[:port]>Extra Host names allowed (behind a reverse proxy). Repeatable.

Remote access: PITHOS_PASSWORD='long random secret' node bin/pithos-web.js --listen 0.0.0.0:8700 --allow-host pithos.example.org, behind a TLS reverse proxy.

Desktop app

npm run desktop

The window signs itself in; quitting stops s3d.

Which s3d Pithos manages

The same one a hand-run s3d uses: S3D_CONFIG_FILE if set, otherwise %APPDATA%\s3d\s3d.yml (Windows), ~/Library/Application Support/s3d/s3d.yml (macOS), /etc/s3d/s3d.yml (Linux). If another s3d already serves that config, Pithos shows it as external and does not start a second one.

s3d on the command line

Pithos needs s3d v0.2.0 or newer. Download it from the s3d releases on GitHub (SiaFoundation/s3d), or let Pithos install it.

Commands

CommandWhat it does
s3dStart the S3 gateway (runs until stopped).
s3d versionPrint the version.
s3d configInteractive setup; writes s3d.yml.
s3d loginRegister this s3d with an indexer (asks for the indexer URL and the recovery phrase, prints an approval link).
s3d statusUpload pipeline stats from the running s3d.
s3d flushUpload everything waiting to Sia now (blocks until done).
s3d users create <name> / delete <name> / listManage S3 users.
s3d keys create <user>New access key (prints the ID and secret). --access-key <id> --secret-key <secret> sets them yourself (16-128 and 32-128 characters).
s3d keys list [user] / keys delete <access-key-id>List or revoke keys.

A full setup by hand

s3d config                 # set addresses, admin password, data folder
s3d login                  # indexer URL (https://sia.storage) + 12-word phrase, then approve
s3d                        # start the gateway (leave running, or install as a service)
s3d users create alice     # in another terminal
s3d keys create alice      # note the access key ID and secret
aws configure --profile s3d          # paste the key, region us-east-1
aws --profile s3d --endpoint-url http://127.0.0.1:8000 s3 mb s3://alice-files
aws --profile s3d --endpoint-url http://127.0.0.1:8000 s3 cp photo.jpg s3://alice-files/photos/
s3d flush                  # send it to Sia now instead of waiting for a full block

Keep the recovery phrase offline. It is the only way to reconnect this storage on another machine or after a reinstall; never paste it into a chat or a website you did not open yourself.

Where things live

WindowsmacOSLinux
Config%APPDATA%\s3d\s3d.yml~/Library/Application Support/s3d/s3d.yml/etc/s3d/s3d.yml
Data (database, files waiting)%APPDATA%\s3d~/Library/Application Support/s3d/var/lib/s3d

Environment variables: S3D_CONFIG_FILE (use this config file), S3D_DATA_DIR (data folder).

s3d.yml

apiAddress: 127.0.0.1:8000        # S3 API
apiHTTPSAddress: ""               # optional TLS listener (self-signed)
adminAddress: 127.0.0.1:8001      # admin API (must differ from the S3 addresses)
adminPassword: change-me          # required for status/flush
directory: /var/lib/s3d           # data folder
sia:
  diskUsageLimit: 10737418240     # local buffer limit in bytes (default 10 GiB)
  uploadThreads: 4                # parallel uploads to Sia
  dataShards: 10                  # erasure coding: data shards per slab
  parityShards: 20                # recovery shards per slab (10-of-30 by default)
s3:
  hostBases: []                   # host names for virtual-host style buckets
log:
  stdout: { enabled: true, level: info }
  file: { enabled: true, level: info }

Admin API

HTTP Basic auth with an empty user name and adminPassword:

RequestResult
GET /stats/uploadsPending, uploaded, unpinned, failed, orphaned objects and multipart uploads (JSON).
POST /objects/flushUpload everything waiting, now.
POST /snapshotsBack up s3d's database to Sia as a snapshot.
curl -u :change-me http://127.0.0.1:8001/stats/uploads

Using drives from other apps

Any S3 app works. Use the endpoint http://127.0.0.1:8000, region us-east-1, path-style addressing, and an access key from Users & keys.

AWS CLI (~/.aws/config):

[profile s3d]
region = us-east-1
endpoint_url = http://127.0.0.1:8000
s3 =
  addressing_style = path
aws --profile s3d s3 ls
aws --profile s3d s3 sync ./music s3://my-drive/music
aws --profile s3d s3 presign s3://my-drive/music/song.mp3 --expires-in 3600

rclone (rclone config, or ~/.config/rclone/rclone.conf):

[s3d]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY_ID
secret_access_key = YOUR_SECRET_KEY
endpoint = http://127.0.0.1:8000
region = us-east-1
force_path_style = true
rclone ls s3d:my-drive
rclone copy ./photos s3d:my-drive/photos --progress

Environment variables for SDKs and tools: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION=us-east-1, AWS_ENDPOINT_URL=http://127.0.0.1:8000.

Common tasks

Troubleshooting

What you seeWhat it means / what to do
"N files waiting to upload", or "0 B on Sia"Files are still in the local buffer. Click Upload now (or s3d flush); automatic upload does it after 10 quiet minutes.
s3d "stopped" or "crashed"Overview › Start; read Logs for the reason. "Not registered" means s3d login has not been done for this config.
A link with 127.0.0.1 does not open elsewhereExpected: it points to the computer running s3d.
SignatureDoesNotMatch in an S3 appWrong secret, or the app uses virtual-host style; switch to path-style and region us-east-1.
"address already in use"Another program (or another s3d) uses port 8000/8001; change apiAddress/adminAddress or stop the other one.
Pithos shows "external"Another s3d is already running for this config; Pithos reads its stats but leaves it alone.
Pithos is lockedYour Theseus vault is locked; Unlock asks for the PIN.
A different account than expectedThe account is the indexer login plus the phrase. Accounts › Which Sia account this is shows the account key; compare it on sia.storage under My apps › S3d.

Limits

For AI assistants

You are helping someone run s3d (the Sia S3 gateway), optionally through Pithos. Facts to rely on:

Rules: never ask the user to paste their recovery phrase or secret keys into the conversation; have them type secrets only into s3d or Pithos on their own machine. Prefer read-only checks (s3d status, s3d users list, aws s3 ls) before changing anything, and confirm before deleting users, keys, drives or files.