Get started · On your own server

Installing Subduction on your own server

This guide is for the IT team that will run Subduction on a server your organization controls. You end up with Subduction at a name on your network, such as https://subduction.example.com, with every piece of it running on one Linux machine under Docker. Its data stays on that machine.

One command-line tool, subd, does every step. It writes all of the configuration, so you never edit a Docker Compose file by hand. Each command that changes something prints its plan first. Add --dry-run to any of them to see the plan without doing anything, --help to see what a command takes (subd --help lists them all), and --verbose to see Docker's own output as each step runs.

The steps, in order:

  1. Agree on a name, and add the DNS records we send
  2. Prepare the server and the network
  3. Install subd
  4. Configure the deployment
  5. Fetch Subduction and start it
  6. Check that it works

After that, running it day to day points to the Self-hosting docs: backups, updates and getting help.

1. The name and the DNS records

Choose the name first. It is the address your people will type, for example subduction.example.com. It must be in a domain whose public DNS you control, even if the name itself only resolves inside your network. Everything on our side is tied to this name, so changing it later means setting things up again.

Tell us the name. We then create your sign-in service. Subduction uses Clerk for sign-in, and every installation gets its own Clerk application, held in our account. When it exists, we send you:

Sign-in cannot work until Clerk has verified the DNS records. That usually takes minutes, but DNS changes can take up to 48 hours to reach everyone. We tell you when it is done.

2. The server and the network

The server

The certificate

A TLS certificate for the name, issued by a certificate authority your people's browsers already trust (usually your organization's own). You need two PEM files on the server:

The network

Inbound, from the network your people use:

Port Why
443 Subduction itself, over HTTPS.
80 Optional: redirects plain-HTTP visits to HTTPS. sudo subd config unset httpPort stops publishing it.

DNS: the name must resolve to the server for everyone who uses it. An internal DNS record is fine.

Outbound, over HTTPS (port 443), from the server and from your people's browsers. If your network restricts outbound traffic, allow these hosts:

Host Who needs it Why
clerk.<your domain> (the first record we send) browsers and the server Sign-in. The preflight check (subd doctor) reads its settings from the server.
accounts.<your domain> (the second record) browsers The sign-in pages an invitation opens
api.clerk.com the server Sign-in. The server checks every session and reads memberships here; with it blocked, nobody can sign in.
api.anthropic.com, api.openai.com the server AI models. Only the providers your organization adds keys for are used; their data terms are between you and them.
shelf.subd.app the server Downloading Subduction itself, the database and web-server images it runs beside, and the list of versions this deployment may install, all with the access token; and installing and updating subd, which needs no token
pkg-containers.githubusercontent.com the server The downloads' content: shelf.subd.app sends the server there for each layer and each subd file

3. Install subd

On the server:

curl -fsSL https://shelf.subd.app/install.sh | sh
subd --version

The script picks the build for your server's architecture, checks it against the release's published checksums, and installs it as /usr/local/bin/subd. It asks for sudo if it needs to.

If the server cannot run the script, read the release to install from https://shelf.subd.app/downloads/subd/latest (it answers a name like subd-v2026.10.24), then download https://shelf.subd.app/downloads/subd/<that name>/subd-linux-x64.gz and https://shelf.subd.app/downloads/subd/<that name>/SHA256SUMS. Check the file with sha256sum -c --ignore-missing SHA256SUMS, unzip it with gunzip, and install it as /usr/local/bin/subd with mode 0755.

4. Configure

subd keeps everything in one directory, /var/lib/subd, readable by root alone. Create it, and the deployment's own generated secrets:

sudo subd init

Set the name and the certificate. The paths are wherever you keep the two PEM files; subd copies them in each time it starts Subduction.

sudo subd config set origin https://subduction.example.com
sudo subd config set tls.certificate /etc/ssl/subduction/fullchain.pem
sudo subd config set tls.key /etc/ssl/subduction/privkey.pem

Add the two sign-in keys we sent. subd secret set reads the value from its standard input, so it never appears in your shell history or the process list:

sudo subd secret set CLERK_PUBLISHABLE_KEY < publishable-key.txt
sudo subd secret set CLERK_SECRET_KEY < secret-key.txt

Delete those two text files afterwards. sudo subd secret list shows which secrets are set, never their values.

Add the access token we issued for this deployment the same way. It is what lets the server download Subduction, and it is the only credential of ours you hold:

sudo subd secret set REGISTRY_TOKEN < access-token.txt

Delete that file too. If we ever issue a replacement, set it the same way at your own pace; the old one keeps working until the new one is first used.

Optional: your own PostgreSQL. By default Subduction runs its own PostgreSQL beside it, and that is what we recommend. To use a database server you already run instead:

sudo subd config set postgres.mode external
sudo subd secret set SUITE_DATABASE_URL < database-url.txt

The URL's role needs permission to create databases (CREATEDB). If it cannot have that, ask us for the list of databases to create beforehand.

Backups, updates and rollbacks treat your PostgreSQL as they treat the bundled one: subd dumps each of Subduction's databases on it, and rollback replaces them with the backup. If your server will not let the role dump one, subd stops and says which; take that backup with your own tools and name it, for example sudo subd update --declare workflow=<backup name>@<when it was taken>. If the role cannot drop and re-create a database, rollback asks you to restore that one from your own backup, then to finish with --confirm-restored.

Then run the preflight check, and repeat it until it reports no failures:

sudo subd doctor

It checks the configuration, the certificate against the name, DNS, the sign-in settings, that the database is reachable, that every stored credential can be read, and that the download hosts answer. Lines marked hand are settings no automated check can read; we confirm those on our side. Lines marked -- are notes.

5. Fetch and start

sudo subd install
sudo subd up

install downloads the newest version you may install and pins it by its exact content. It starts nothing. A version becomes installable seven days after it ships on the web.

up writes the configuration and starts everything: the database first, then Subduction's own setup step, then the application, then the web server that serves your name. It returns once every part of Subduction reports ready, usually within a minute. sudo subd status shows the same picture at any time: each service — the case, document, workflow, entity, chat, notification and suite services — with ready beside it.

6. Check that it works

  1. Open the name in a browser. You should see Subduction's sign-in page, served with your certificate.

  2. Your first administrator signs in. Nobody can create an account in Subduction for themselves; people join by invitation. We create your organization and send the invitation to the person you name as its first administrator. They accept it, sign in, and from then on they invite everyone else from inside Subduction. People sign in with a Google account unless we agree another way with you, so name the address of one; if your people sign in some other way, tell us before we set up your sign-in.

  3. The isolation check. On the server:

    sudo subd probe
    

    It sends a few hundred requests to your installation with no signed-in person and checks that every one is refused or answered exactly as designed. It ends with a line starting clean:. Any other ending, tell us and send the output.

  4. AI models. Your administrator adds your organization's model keys in Subduction, under Admin › AI Management. Until a key is added, chat and the assistant cannot answer. If your provider account limits which models a key may use, allow every model AI Management shows for that provider: one chat message uses more than one of them. A change to that list can take up to 20 minutes to apply.

Running it day to day

Once Subduction is running, the Self-hosting docs cover everything after the install:

Getting help

Run sudo subd bundle and send the file it writes, with your question, to support@subduction.net. Checking it says what the file holds.